laura is hosted by Hepforge, IPPP Durham
Laura++  v2r1
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauAbsResonance.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2004 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
24 #ifndef LAU_ABS_RESONANCE
25 #define LAU_ABS_RESONANCE
26 
27 #include "TString.h"
28 
29 #include "LauComplex.hh"
30 
31 class LauDaughters;
32 class LauKinematics;
33 
35 
36  public:
39  BW,
41  GS,
46  LASS,
54  };
55 
57  enum BarrierType {
61  };
62 
64 
73  LauAbsResonance(const TString& resName, Double_t resMass, Double_t resWidth,
74  Int_t resSpin, Int_t resCharge, Int_t resPairAmpInt,
75  const LauDaughters* daughters);
76 
78  virtual ~LauAbsResonance();
79 
81  virtual void initialise() = 0;
82 
84 
88  virtual LauComplex amplitude(const LauKinematics* kinematics);
89 
91 
94  virtual LauResonanceModel getResonanceModel() const = 0;
95 
97 
100  const TString& getResonanceName() const {return resName_;}
101 
103 
106  Int_t getPairInt() const {return resPairAmpInt_;}
107 
109 
112  Int_t getSpin() const {return resSpin_;}
113 
115 
118  Int_t getCharge() const {return resCharge_;}
119 
121 
124  Double_t getMass() const {return resMass_;}
125 
127 
130  Double_t getWidth() const {return resWidth_;}
131 
133 
136  Bool_t flipHelicity() const {return flipHelicity_;}
137 
139 
142  void flipHelicity(Bool_t boolean) {flipHelicity_ = boolean;}
143 
145 
148  Bool_t ignoreMomenta() const {return ignoreMomenta_;}
149 
151 
154  void ignoreMomenta(Bool_t boolean) {ignoreMomenta_ = boolean;}
155 
157 
162  void changeResonance(Double_t newMass, Double_t newWidth, Int_t newSpin);
163 
165 
169  virtual void setResonanceParameter(Double_t value, const TString& name);
170 
171  protected:
173  TString getNameParent() const;
175  TString getNameDaug1() const;
177  TString getNameDaug2() const;
179  TString getNameBachelor() const;
181  Double_t getMassParent() const;
183  Double_t getMassDaug1() const;
185  Double_t getMassDaug2() const;
187  Double_t getMassBachelor() const;
189  Int_t getChargeParent() const;
191  Int_t getChargeDaug1() const;
193  Int_t getChargeDaug2() const;
195  Int_t getChargeBachelor() const;
196 
198  Double_t getQ() const {return q_;}
200  Double_t getP() const {return p_;}
202  Double_t getPstar() const {return pstar_;}
203 
205  const LauDaughters* getDaughters() const {return daughters_;}
206 
208 
212  virtual LauComplex resAmp(Double_t mass, Double_t spinTerm) = 0;
213 
214  private:
217 
219  TString nameParent_;
221  TString nameDaug1_;
223  TString nameDaug2_;
225  TString nameBachelor_;
226 
230  Int_t chargeDaug1_;
232  Int_t chargeDaug2_;
235 
237  Double_t massParent_;
239  Double_t massDaug1_;
241  Double_t massDaug2_;
242  // Bachelor mass
243  Double_t massBachelor_;
244 
246  TString resName_;
248  Double_t resMass_;
250  Double_t resWidth_;
252  Int_t resSpin_;
254  Int_t resCharge_;
257 
262 
264  Double_t q_;
266  Double_t p_;
268  Double_t pstar_;
269 
270  ClassDef(LauAbsResonance,0) // Abstract resonance class
271 
272 };
273 
274 #endif
virtual void initialise()=0
Initialise the model.
Double_t getQ() const
Get the current value of the daughter momentum in the resonance rest frame.
Int_t getChargeBachelor() const
Get the charge of the bachelor daughter.
Double_t massDaug2_
Daughter 2 mass.
Double_t resMass_
Resonance mass.
Double_t getMassBachelor() const
Get the mass of the bachelor daughter.
Bool_t ignoreMomenta_
Boolean to ignore q_ and p_ in spinTerm.
Double_t getMass() const
Get the mass of the resonance.
const TString & getResonanceName() const
Get the name of the resonance.
Double_t getMassParent() const
Get the parent particle mass.
Double_t massDaug1_
Daughter 1 mass.
void ignoreMomenta(Bool_t boolean)
Set the ignore p_ and q_ flag.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:33
TString nameDaug2_
Daughter 2 name.
Double_t getPstar() const
Get the current value of the bachelor momentum in the parent rest frame.
Double_t getP() const
Get the current value of the bachelor momentum in the resonance rest frame.
TString getNameDaug2() const
Get the name of the second daughter of the resonance.
Double_t resWidth_
Resonance width.
Double_t massParent_
Parent mass.
Double_t getMassDaug1() const
Get the mass of daughter 1.
const LauDaughters * getDaughters() const
Access the daughters object.
Int_t getPairInt() const
Get the integer to identify which DP axis the resonance belongs to.
Bool_t flipHelicity() const
Get the helicity flip flag.
Double_t getMassDaug2() const
Get the mass of daughter 2.
Int_t chargeBachelor_
Bachelor charge.
Int_t getChargeDaug1() const
Get the charge of daughter 1.
const LauDaughters * daughters_
Information on the particles.
virtual LauResonanceModel getResonanceModel() const =0
Get the resonance model type.
Int_t getChargeParent() const
Get the Charge of the parent particle.
File containing declaration of LauComplex class.
virtual ~LauAbsResonance()
Destructor.
void flipHelicity(Bool_t boolean)
Set the helicity flip flag.
virtual LauComplex resAmp(Double_t mass, Double_t spinTerm)=0
Complex resonant amplitude.
TString getNameParent() const
Get the name of the parent particle.
Int_t getCharge() const
Get the charge of the resonance.
TString nameBachelor_
Bachelor name.
Int_t chargeDaug2_
Daughter 2 charge.
Bool_t flipHelicity_
Boolean to flip helicity.
Bool_t ignoreMomenta() const
Get the ignore momenta flag.
Int_t resCharge_
Resonance charge.
TString nameParent_
Parent name.
Int_t chargeParent_
Parent charge.
TString getNameBachelor() const
Get the name of the daughter that does not originate form the resonance.
Int_t getChargeDaug2() const
Get the charge of daughter 2.
LauResonanceModel
Define the allowed resonance types.
Double_t getWidth() const
Get the width of the resonance.
Abstract class for defining type for resonance amplitude models (Breit-Wigner, Flatte etc...
TString resName_
Resonance name.
Int_t resPairAmpInt_
DP axis identifier.
LauAbsResonance(const TString &resName, Double_t resMass, Double_t resWidth, Int_t resSpin, Int_t resCharge, Int_t resPairAmpInt, const LauDaughters *daughters)
Constructor.
Int_t chargeDaug1_
Daughter 1 charge.
Class for defining a complex number.
Definition: LauComplex.hh:47
BarrierType
Define the allowed types of barrier factors.
TString getNameDaug1() const
Get the name of the first daughter of the resonance.
Class for calculating 3-body kinematic quantities.
Int_t resSpin_
Resonance spin.
void changeResonance(Double_t newMass, Double_t newWidth, Int_t newSpin)
Allow the mass, width and spin of the resonance to be changed.
TString nameDaug1_
Daughter 1 name.
virtual LauComplex amplitude(const LauKinematics *kinematics)
Calculate the complex amplitude.
Int_t getSpin() const
Get the spin of the resonance.
Double_t p_
Bachelor momentum in resonance rest frame.
virtual void setResonanceParameter(Double_t value, const TString &name)
Set the updated parameters from changeResonance.
Double_t pstar_
Bachelor momentum in parent rest frame.
Double_t q_
Daughter momentum in resonance rest frame.