Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:03:26

0001 // -*- C++ -*-
0002 // $Id: ParameterNegation.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //--------------------------ParameterNegation-------------------------------//
0004 //                                                                          //
0005 // ParameterNegation, result of negating a parameters.                      //
0006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 
0010 #ifndef ParameterNegation_h
0011 #define ParameterNegation_h 1
0012 #include "CLHEP/GenericFunctions/AbsParameter.hh"
0013 
0014 namespace Genfun {
0015 
0016   /**
0017    * @author
0018    * @ingroup genfun
0019    */
0020   class ParameterNegation : public AbsParameter  {
0021   
0022     PARAMETER_OBJECT_DEF(ParameterNegation)
0023 
0024       public:
0025   
0026     // Constructor
0027     ParameterNegation(const AbsParameter *arg1);
0028   
0029     // Copy constructor
0030     ParameterNegation(const ParameterNegation &right);
0031 
0032     // Destructor
0033     virtual ~ParameterNegation();
0034   
0035     // Retreive parameter value
0036     virtual double getValue() const;
0037 
0038   private:
0039 
0040     // It is illegal to assign a ParameterNegation
0041     const ParameterNegation & operator=(const ParameterNegation &right);
0042 
0043     // The parameter to be negated:
0044     AbsParameter *_arg1;
0045 
0046   };
0047 } // namespace Genfun
0048 #endif