CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ParameterComposition.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id:
3#include "CLHEP/GenericFunctions/ParameterComposition.hh"
4#include "CLHEP/GenericFunctions/Parameter.hh"
5#include "CLHEP/GenericFunctions/AbsFunction.hh"
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)
Definition: AbsParameter.hh:86
virtual double getValue() const =0
virtual Parameter * parameter()
Definition: AbsParameter.hh:42
virtual double getValue() const
ParameterComposition(const AbsFunction *arg1, const AbsParameter *arg2)
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:95
Definition: Abs.hh:14