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

#include <ParameterNegation.hh>

+ Inheritance diagram for Genfun::ParameterNegation:

Public Member Functions

 ParameterNegation (const AbsParameter *arg1)
 
 ParameterNegation (const ParameterNegation &right)
 
virtual ~ParameterNegation ()
 
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 ParameterNegation.hh.

Constructor & Destructor Documentation

◆ ParameterNegation() [1/2]

Genfun::ParameterNegation::ParameterNegation ( const AbsParameter arg1)

Definition at line 9 of file ParameterNegation.cc.

9 :
10 _arg1(arg1->clone())
11{
12 if (arg1->parameter() && _arg1->parameter()) _arg1->parameter()->connectFrom(arg1->parameter());
13}
virtual Parameter * parameter()
Definition: AbsParameter.hh:42
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:95

◆ ParameterNegation() [2/2]

Genfun::ParameterNegation::ParameterNegation ( const ParameterNegation right)

Definition at line 15 of file ParameterNegation.cc.

15 :
17_arg1(right._arg1->clone())
18{}

◆ ~ParameterNegation()

Genfun::ParameterNegation::~ParameterNegation ( )
virtual

Definition at line 21 of file ParameterNegation.cc.

22{
23 delete _arg1;
24}

Member Function Documentation

◆ getValue()

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

Implements Genfun::AbsParameter.

Definition at line 27 of file ParameterNegation.cc.

27 {
28 return - _arg1->getValue();
29}
virtual double getValue() const =0

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