CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

ParameterComposition.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id:
6
7namespace Genfun {
8PARAMETER_OBJECT_IMP(ParameterComposition)
9
12 _arg1(arg1->clone()),
13 _arg2(arg2->clone())
14{
15 if (arg2->parameter() && _arg2->parameter()) _arg2->parameter()->connectFrom(arg2->parameter());
16}
17
20_arg1(right._arg1->clone()),
21_arg2(right._arg2->clone())
22{}
23
24
26{
27 delete _arg1;
28 delete _arg2;
29}
30
31
33 return _arg1->operator() (_arg2->getValue());
34}
35
36} // namespace Genfun
#define PARAMETER_OBJECT_IMP(classname)
virtual double getValue() const =0
virtual double getValue() const
ParameterComposition(const AbsFunction *arg1, const AbsParameter *arg2)
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:93