Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:03:26

0001 // -*- C++ -*-
0002 // $Id: 
0003 //--------------------------ParameterComposition----------------------------//
0004 //                                                                          //
0005 // ParameterComposition, result of composition of two functions.            //
0006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 
0010 #ifndef ParameterComposition_h
0011 #define ParameterComposition_h 1
0012 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0013 #include "CLHEP/GenericFunctions/AbsParameter.hh"
0014 
0015 namespace Genfun {
0016 
0017   /**
0018    * @author
0019    * @ingroup genfun
0020    */
0021   class ParameterComposition : public AbsParameter {
0022 
0023     PARAMETER_OBJECT_DEF(ParameterComposition)
0024 
0025       public:
0026 
0027     // Constructor
0028     ParameterComposition(const AbsFunction *arg1, const AbsParameter *arg2);
0029 
0030     // Copy constructor
0031     ParameterComposition(const ParameterComposition &right);
0032   
0033     // Destructor
0034     virtual ~ParameterComposition();
0035 
0036     // Retreive parameter value
0037     virtual double getValue() const;
0038 
0039 
0040   private:
0041 
0042     // It is illegal to assign a ParameterComposition
0043     const ParameterComposition & operator=(const ParameterComposition &right);
0044 
0045     const AbsFunction  *_arg1;
0046     AbsParameter *_arg2;  
0047   };
0048 } // namespace Genfun
0049 #endif