Back to home page

EIC code displayed by LXR

 
 

    


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

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