CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: ConstTimesParameter.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $ 00003 //--------------------------ConstTimesParameter-----------------------------// 00004 // // 00005 // ConstTimesParameter, result of subtracting a parameter from a constant. // 00006 // Joe Boudreau, Petar Maksimovic, November 1999 // 00007 // // 00008 //--------------------------------------------------------------------------// 00009 00010 #ifndef ConstTimesParameter_h 00011 #define ConstTimesParameter_h 1 00012 #include "CLHEP/GenericFunctions/AbsParameter.hh" 00013 00014 namespace Genfun { 00015 00020 class ConstTimesParameter : public AbsParameter { 00021 00022 PARAMETER_OBJECT_DEF(ConstTimesParameter) 00023 00024 public: 00025 00026 // Constructor 00027 ConstTimesParameter(double, const AbsParameter *); 00028 00029 // Copy constructor 00030 ConstTimesParameter(const ConstTimesParameter &right); 00031 00032 // Destructor 00033 virtual ~ConstTimesParameter(); 00034 00035 // Retreive function value 00036 virtual double getValue() const; 00037 00038 private: 00039 00040 // It is illegal to assign a ConstTimesParameter 00041 const ConstTimesParameter & operator=(const ConstTimesParameter &right); 00042 00043 double _constant; 00044 AbsParameter *_parameter; 00045 }; 00046 } // namespace Genfun 00047 #endif