CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::ConstOverParameter Class Reference

#include <ConstOverParameter.hh>

+ Inheritance diagram for Genfun::ConstOverParameter:

Public Member Functions

 ConstOverParameter (double, const AbsParameter *)
 
 ConstOverParameter (const ConstOverParameter &right)
 
virtual ~ConstOverParameter ()
 
virtual double getValue () const
 
- Public Member Functions inherited from Genfun::AbsParameter
 AbsParameter ()
 
 AbsParameter (const AbsParameter &)
 
virtual ~AbsParameter ()
 
virtual double getValue () const =0
 
AbsParameterclone () const
 
virtual Parameterparameter ()
 
virtual const Parameterparameter () const
 

Detailed Description

Author

Definition at line 20 of file ConstOverParameter.hh.

Constructor & Destructor Documentation

◆ ConstOverParameter() [1/2]

Genfun::ConstOverParameter::ConstOverParameter ( double  xconstant,
const AbsParameter aparm 
)

Definition at line 9 of file ConstOverParameter.cc.

9 :
10 _constant(xconstant),
11 _parameter(aparm->clone())
12{
13 if (aparm->parameter() && _parameter->parameter()) _parameter->parameter()->connectFrom(aparm->parameter());
14}
virtual Parameter * parameter()
Definition: AbsParameter.hh:42
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:95

◆ ConstOverParameter() [2/2]

Genfun::ConstOverParameter::ConstOverParameter ( const ConstOverParameter right)

Definition at line 16 of file ConstOverParameter.cc.

16 :
17AbsParameter(right),
18_constant(right._constant),
19_parameter(right._parameter->clone())
20{}

◆ ~ConstOverParameter()

Genfun::ConstOverParameter::~ConstOverParameter ( )
virtual

Definition at line 23 of file ConstOverParameter.cc.

24{
25 delete _parameter;
26}

Member Function Documentation

◆ getValue()

double Genfun::ConstOverParameter::getValue ( ) const
virtual

Implements Genfun::AbsParameter.

Definition at line 29 of file ConstOverParameter.cc.

29 {
30 return _constant / _parameter->getValue();
31}
virtual double getValue() const =0

The documentation for this class was generated from the following files: