ROOTPWA
TPWAConstraint.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Abstract Base class for constraints
7 //
8 //
9 // Environment:
10 // Software developed for the PANDA Detector at FAIR.
11 //
12 // Author List:
13 // Sebastian Neubert TUM (original author)
14 //
15 //
16 //-----------------------------------------------------------
17 
18 #ifndef TPWACONSTRAINT_HH
19 #define TPWACONSTRAINT_HH
20 
21 // Base Class Headers ----------------
22 
23 
24 // Collaborating Class Headers -------
25 #include <complex>
26 #include <string>
27 
28 // Collaborating Class Declarations --
29 
31 public:
32 
33  // Constructors/Destructors ---------
35  virtual ~TPWAConstraint(){}
36 
37  virtual TPWAConstraint* clone()=0;
38 
39  // Accessors -----------------------
40  virtual int npar() const =0; // returns number of free parameters 0,1 or even 2
41  virtual std::string type() const =0;
42  virtual std::string parname(unsigned int i) const =0;
43  // Modifiers -----------------------
44 
45 
46  // Operations ----------------------
47  virtual std::complex<double> cAmp(const std::complex<double>& amp)=0;
48  virtual std::complex<double> dampdpar(unsigned int i)=0;
49 
50 
51 private:
52 
53  // Private Data Members ------------
54 
55 
56  // Private Methods -----------------
57 
58 };
59 
60 #endif
61 
62 //--------------------------------------------------------------
63 // $Log$
64 //--------------------------------------------------------------