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 
7 namespace Genfun {
8 PARAMETER_OBJECT_IMP(ParameterComposition)
9 
11  AbsParameter(),
12  _arg1(arg1->clone()),
13  _arg2(arg2->clone())
14 {
15  if (arg2->parameter() && _arg2->parameter()) _arg2->parameter()->connectFrom(arg2->parameter());
16 }
17 
19 AbsParameter(),
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
virtual double getValue() const
virtual double getValue() const =0
#define PARAMETER_OBJECT_IMP(classname)
ParameterComposition(const AbsFunction *arg1, const AbsParameter *arg2)
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:93