Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:34

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