CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP/GenericFunctions/ParameterSum.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: ParameterSum.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //--------------------------ParameterSum------------------------------------//
4 // //
5 // ParameterSum, result of addition of two parameters. //
6 // Joe Boudreau, Petar Maksimovic, November 1999 //
7 // //
8 //--------------------------------------------------------------------------//
9 
10 #ifndef ParameterSum_h
11 #define ParameterSum_h 1
13 
14 namespace Genfun {
15 
20  class ParameterSum : public AbsParameter {
21 
23 
24  public:
25 
26  // Constructor
27  ParameterSum(const AbsParameter *arg1, const AbsParameter *arg2);
28 
29  // Copy constructor
30  ParameterSum(const ParameterSum &right);
31 
32  // Destructor
33  virtual ~ParameterSum();
34 
35  // Retreive function value
36  virtual double getValue() const;
37 
38  private:
39 
40  // It is illegal to assign a ParameterSum
41  const ParameterSum & operator=(const ParameterSum &right);
42 
43  AbsParameter *_arg1;
44  AbsParameter *_arg2;
45  };
46 } // namespace Genfun
47 #endif
#define PARAMETER_OBJECT_DEF(classname)
ParameterSum(const AbsParameter *arg1, const AbsParameter *arg2)
Definition: ParameterSum.cc:9
virtual double getValue() const
Definition: ParameterSum.cc:31