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

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 $
5 
6 namespace Genfun {
7 PARAMETER_OBJECT_IMP(ParameterNegation)
8 
10  _arg1(arg1->clone())
11 {
12  if (arg1->parameter() && _arg1->parameter()) _arg1->parameter()->connectFrom(arg1->parameter());
13 }
14 
16 AbsParameter(),
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)
virtual double getValue() const =0
virtual double getValue() const
ParameterNegation(const AbsParameter *arg1)
void connectFrom(const AbsParameter *source)
Definition: Parameter.cc:93