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

#include <ConstMinusParameter.hh>

+ Inheritance diagram for Genfun::ConstMinusParameter:

Public Member Functions

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

Constructor & Destructor Documentation

◆ ConstMinusParameter() [1/2]

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

Definition at line 10 of file ConstMinusParameter.cc.

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

◆ ConstMinusParameter() [2/2]

Genfun::ConstMinusParameter::ConstMinusParameter ( const ConstMinusParameter right)

Definition at line 17 of file ConstMinusParameter.cc.

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

◆ ~ConstMinusParameter()

Genfun::ConstMinusParameter::~ConstMinusParameter ( )
virtual

Definition at line 24 of file ConstMinusParameter.cc.

25{
26 delete _parameter;
27}

Member Function Documentation

◆ getValue()

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

Implements Genfun::AbsParameter.

Definition at line 30 of file ConstMinusParameter.cc.

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

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