1 // -*- C++ -*-
2 // $Id: ConstTimesParameter.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //--------------------------ConstTimesParameter-----------------------------//
4 //                                                                          //
5 // ConstTimesParameter, result of subtracting a parameter from a constant.  //
6 // Joe Boudreau, Petar Maksimovic, November 1999                            //
7 //                                                                          //
8 //--------------------------------------------------------------------------//
9 
10 #ifndef ConstTimesParameter_h
11 #define ConstTimesParameter_h 1
12 #include "CLHEP/GenericFunctions/AbsParameter.hh"
13 
14 namespace Genfun {
15 
16   /**
17    * @author
18    * @ingroup genfun
19    */
20   class ConstTimesParameter : public AbsParameter  {
21 
22     PARAMETER_OBJECT_DEF(ConstTimesParameter)
23 
24       public:
25 
26     // Constructor
27     ConstTimesParameter(double, const AbsParameter *);
28 
29     // Copy constructor
30     ConstTimesParameter(const ConstTimesParameter &right);
31 
32     // Destructor
33     virtual ~ConstTimesParameter();
34 
35     // Retreive function value
36     virtual double getValue() const;
37 
38   private:
39 
40     // It is illegal to assign a ConstTimesParameter
41     const ConstTimesParameter & operator=(const ConstTimesParameter &right);
42 
43     double        _constant;
44     AbsParameter *_parameter;
45   };
46 } // namespace Genfun
47 #endif
48