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

ParameterDifference.hh

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

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7