MINT2
NonRes.h
Go to the documentation of this file.
1 #ifndef NONRES_LINESHAPE_HH
2 #define NONRES_LINESHAPE_HH
3 // author: Nunya Business (ya.mum@bristol.ac.uk)
4 // status: Mon 22 Jul 2014 19:17:59 GMT
5 
6 #include <complex>
7 
8 #include "Mint/ILineshape.h"
9 #include "Mint/BW_BW.h"
10 #include "Mint/NamedParameter.h"
11 #include "Mint/FitParDependent.h"
12 
13 class NonRes : public BW_BW, virtual public ILineshape{
14  public:
18  NonRes( const AssociatedDecayTree& tree
19  , const std::string& type=""
20  , const std::string& namePrefix=""
21  );
22 
26  virtual std::complex<double> getVal( IDalitzEvent& evt );
27 
31  virtual void print( std::ostream& out = std::cout ) const;
32 
36  virtual void print( IDalitzEvent& evt, std::ostream& out = std::cout );
37 
41  virtual std::string name() const{
42  return "NonRes("+_theDecay.oneLiner() +")";
43  }
44 
48  virtual ~NonRes(){}
49 
50  protected:
55  double GetAlpha() const;
56  double c1() const {
57  return _RPL->get(mumsPID())->c1();
58  }
59  double c2() const {
60  return _RPL->get(mumsPID())->c2();
61  }
62  double c3() const {
63  return _RPL->get(mumsPID())->c3();
64  }
65  double c4() const {
66  return _RPL->get(mumsPID())->c4();
67  }
68  double c5() const {
69  return _RPL->get(mumsPID())->c5();
70  }
71  const std::string _type;
72  //const MINT::NamedParameter<double> _alpha;
73 };
74 
75 std::ostream& operator<<( std::ostream& out, const NonRes& amp );
76 
77 #endif
78 //
virtual std::complex< double > getVal(IDalitzEvent &evt)
Definition: NonRes.cpp:23
ResonancePropertiesList * _RPL
Definition: BW_BW.h:97
Definition: NonRes.h:13
const AssociatedDecayTree & _theDecay
Definition: BW_BW.h:69
virtual int mumsPID() const
Definition: BW_BW.cpp:517
const ResonanceProperties * get(int i) const
const std::string _type
Definition: NonRes.h:71
Definition: BW_BW.h:30
virtual ~NonRes()
Definition: NonRes.h:48
std::ostream & operator<<(std::ostream &out, const NonRes &amp)
Definition: NonRes.cpp:86
virtual void print(std::ostream &out=std::cout) const
Definition: NonRes.cpp:61
double GetAlpha() const
Definition: NonRes.cpp:82
double c2() const
Definition: NonRes.h:59
void oneLiner(std::stringstream &seam, int generation=0) const
Definition: DDTree.h:375
double c3() const
Definition: NonRes.h:62
double c1() const
Definition: NonRes.h:56
NonRes(const AssociatedDecayTree &tree, const std::string &type="", const std::string &namePrefix="")
Definition: NonRes.cpp:14
double c4() const
Definition: NonRes.h:65
double c5() const
Definition: NonRes.h:68
virtual std::string name() const
Definition: NonRes.h:41