CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ParameterNegation.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: ParameterNegation.cc,v 1.3 2003/09/06 14:04:14 boudreau Exp $
3#include "CLHEP/GenericFunctions/ParameterNegation.hh"
4#include "CLHEP/GenericFunctions/Parameter.hh"
5
6namespace Genfun {
7PARAMETER_OBJECT_IMP(ParameterNegation)
8
10 _arg1(arg1->clone())
11{
12 if (arg1->parameter() && _arg1->parameter()) _arg1->parameter()->connectFrom(arg1->parameter());
13}
14
17_arg1(right._arg1->clone())
18{}
19
20
22{
23 delete _arg1;
24}
25
26
28 return - _arg1->getValue();
29}
30
31} // 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
ParameterNegation(const AbsParameter *arg1)
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:95
Definition: Abs.hh:14