ROOTPWA
TPWANullConstraint.h
Go to the documentation of this file.
1 
2 //
3 // Copyright 2009 Sebastian Neubert
4 //
5 // This file is part of rootpwa
6 //
7 // rootpwa is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // rootpwa is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with rootpwa. If not, see <http://www.gnu.org/licenses/>.
19 //
21 
22 //-----------------------------------------------------------
23 // File and Version Information:
24 // $Id$
25 //
26 // Description:
27 // Contraints an amplitude to 0
28 //
29 //
30 // Environment:
31 // rootpwa
32 //
33 // Author List:
34 // Sebastian Neubert TUM (original author)
35 //
36 //
37 //-----------------------------------------------------------
38 
39 #ifndef TPWANULLCONSTRAINT_HH
40 #define TPWANULLCONSTRAINT_HH
41 
42 // Base Class Headers ----------------
43 #include "TPWAConstraint.h"
44 
45 // Collaborating Class Headers -------
46 #include <complex>
47 
48 // Collaborating Class Declarations --
49 
51 public:
52 
53  // Constructors/Destructors ---------
55  virtual ~TPWANullConstraint(){}
56 
57  virtual TPWAConstraint* clone(){return new TPWANullConstraint();}
58 
59  // Accessors -----------------------
60  virtual int npar()const {return 0;} // returns number of free parameters 0,1 or even 2
61  virtual std::string type()const {return "NullConstraint";}
62  virtual std::string parname(unsigned int i) const {return "_NONE";}
63 
64  // Operations ----------------------
65  virtual std::complex<double> cAmp(const std::complex<double>& amp)
66  {return std::complex<double>(0,0);}
67  virtual std::complex<double> dampdpar(unsigned int i)
68  {return std::complex<double>(0,0);}
69 
70 };
71 
72 #endif
73 
74 //--------------------------------------------------------------
75 // $Log$
76 //--------------------------------------------------------------