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 _arg1(right._arg1->clone())
17 {}
18 
19 
21 {
22  delete _arg1;
23 }
24 
25 
27  return - _arg1->getValue();
28 }
29 
30 } // namespace Genfun