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

#include <ConstTimesParameter.hh>

+ Inheritance diagram for Genfun::ConstTimesParameter:

Public Member Functions

 ConstTimesParameter (double, const AbsParameter *)
 
 ConstTimesParameter (const ConstTimesParameter &right)
 
virtual ~ConstTimesParameter ()
 
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 ConstTimesParameter.hh.

Constructor & Destructor Documentation

◆ ConstTimesParameter() [1/2]

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

Definition at line 9 of file ConstTimesParameter.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

◆ ConstTimesParameter() [2/2]

Genfun::ConstTimesParameter::ConstTimesParameter ( const ConstTimesParameter right)

Definition at line 16 of file ConstTimesParameter.cc.

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

◆ ~ConstTimesParameter()

Genfun::ConstTimesParameter::~ConstTimesParameter ( )
virtual

Definition at line 23 of file ConstTimesParameter.cc.

24{
25 delete _parameter;
26}

Member Function Documentation

◆ getValue()

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

Implements Genfun::AbsParameter.

Definition at line 29 of file ConstTimesParameter.cc.

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

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