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

ParameterNegation.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: ParameterNegation.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
00003 //--------------------------ParameterNegation-------------------------------//
00004 //                                                                          //
00005 // ParameterNegation, result of negating a parameters.                      //
00006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
00007 //                                                                          //
00008 //--------------------------------------------------------------------------//
00009 
00010 #ifndef ParameterNegation_h
00011 #define ParameterNegation_h 1
00012 #include "CLHEP/GenericFunctions/AbsParameter.hh"
00013 
00014 namespace Genfun {
00015 
00020   class ParameterNegation : public AbsParameter  {
00021   
00022     PARAMETER_OBJECT_DEF(ParameterNegation)
00023 
00024       public:
00025   
00026     // Constructor
00027     ParameterNegation(const AbsParameter *arg1);
00028   
00029     // Copy constructor
00030     ParameterNegation(const ParameterNegation &right);
00031 
00032     // Destructor
00033     virtual ~ParameterNegation();
00034   
00035     // Retreive parameter value
00036     virtual double getValue() const;
00037 
00038   private:
00039 
00040     // It is illegal to assign a ParameterNegation
00041     const ParameterNegation & operator=(const ParameterNegation &right);
00042 
00043     // The parameter to be negated:
00044     AbsParameter *_arg1;
00045 
00046   };
00047 } // namespace Genfun
00048 #endif

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7