MINT2
AmpInitialiser.h
Go to the documentation of this file.
1 #ifndef AMPINITIALISER_HH
2 #define AMPINITIALISER_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:18:02 GMT
5 
6 #include <string>
7 #include "Mint/DecayTree.h"
9 #include "Mint/LineshapeMaker.h"
12  char _SPD;
13  bool _valid;
14  std::string _prefix; // prefix for fit parameter names, default "".
15  std::string _lsPrefix;
16 
17  std::string _lopt; // note: the linshape maker
18  // figures out which lineshape to use by
19  // knowing the particle types involved.
20  // This is for additional options
21  // One could be: ALWAYS_BREIT_WIGNER
22  // or USE_XYZMODEL_FOR_RHO, or CLEO2012, or None
23 
24  std::vector<double> _numOpts; // numerical options
25  // (introduced for min/max in piece-wise defined functions)
26  bool _autoSwap;
27  int _index;
28 
29  public:
31  AmpInitialiser(const std::string& StandardisedDecayTreeName
32  , const std::string& lopt =""
33  , const std::string& namePrefix=""
34  , const std::string& linshapePrefix=""
35  , const std::vector<double>& numOpts = std::vector<double>()
36  , bool autoSwap=true
37  , int index=-1
38  );
39  AmpInitialiser(const DecayTree& dt_in
40  , char SPD_in='?'
41  , const std::string& lopt =""
42  , const std::string& namePrefix=""
43  , const std::string& linshapePrefix=""
44  , const std::vector<double>& numOpts = std::vector<double>()
45  , bool autoSwap=true
46  , int index=-1
47  );
48  AmpInitialiser(const DecayTree& dt_in
49  , const std::string& lopt
50  , const std::string& namePrefix = ""
51  , const std::string& linshapePrefix=""
52  , const std::vector<double>& numOpts = std::vector<double>()
53  , bool autoSwap = true
54  , int index=-1
55  );
56  AmpInitialiser(const AmpInitialiser& other
57  , const std::string& addedPrefix=""
58  , const std::string& addedLineshapePrefix="");
60 
61 
62  const DecayTree& tree() const;
64 
65  void setTree(const DecayTree& dt_in);
66  char SPD() const;
67  void setSPD(char SPD_in);
68 
69  const std::string& lopt() const;
70  void setLopt(const std::string& lopt_in);
71  void addLopt(const std::string& lopt_in);
72 
73  void setNumOpts(const std::vector<double>& numOpts_in=std::vector<double>());
74  void setNumOpts(double n1);
75  void setNumOpts(double n1, double n2);
76  void setNumOpts(double n1, double n2, double n3);
77 
78  const std::vector<double>& numOpts() const;
79 
80  bool autoSwap() const;
81  bool setAutoSwap(bool autoSwap_in=true);
82 
83  const std::string& prefix() const;
84  void addPrefix(const std::string& namePrefix);
85 
86  const std::string& lsPrefix() const;
87  void addLsPrefix(const std::string& linshapePrefix);
88 
89  int index() const;
90  void setIndex(int index);
91  std::string indexString() const;
92 
93  std::string uniqueName() const;
94  std::string name() const; // same as unique name.
95 
97  }
98 };
99 
100 #endif
101 //
const std::string & lopt() const
void setIndex(int index)
std::string uniqueName() const
const DecayTree & tree() const
std::string name() const
std::string _lsPrefix
std::string indexString() const
int index() const
void setSPD(char SPD_in)
char SPD() const
void setTree(const DecayTree &dt_in)
const std::string & lsPrefix() const
std::string _lopt
bool setAutoSwap(bool autoSwap_in=true)
void setLopt(const std::string &lopt_in)
const std::string & prefix() const
std::string _prefix
const std::vector< double > & numOpts() const
AmpInitialiser & operator=(const AmpInitialiser &rhs)
bool autoSwap() const
void addLopt(const std::string &lopt_in)
DalitzEventPattern getEventPattern() const
void addPrefix(const std::string &namePrefix)
void addLsPrefix(const std::string &linshapePrefix)
void setNumOpts(const std::vector< double > &numOpts_in=std::vector< double >())
std::vector< double > _numOpts