CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
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
6
namespace
Genfun {
7
PARAMETER_OBJECT_IMP
(ParameterNegation)
8
9
ParameterNegation
::
ParameterNegation
(const
AbsParameter
*arg1):
10
_arg1(arg1->clone())
11
{
12
if
(arg1->parameter() && _arg1->parameter()) _arg1->
parameter
()->
connectFrom
(arg1->parameter());
13
}
14
15
ParameterNegation::ParameterNegation
(
const
ParameterNegation
& right) :
16
AbsParameter
(),
17
_arg1(right._arg1->clone())
18
{}
19
20
21
ParameterNegation::~ParameterNegation
()
22
{
23
delete
_arg1;
24
}
25
26
27
double
ParameterNegation::getValue
()
const
{
28
return
- _arg1->
getValue
();
29
}
30
31
}
// namespace Genfun
Generated on Mon May 6 2013 04:04:11 for CLHEP by
1.8.1.2