laura is hosted by Hepforge, IPPP Durham
Laura++  v1r2
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 
42 
44 
53  LauAbsResonance(const TString& resName, Double_t resMass, Double_t resWidth,
54  Int_t resSpin, Int_t resCharge, Int_t resPairAmpInt,
55  const LauDaughters* daughters);
56 
58  virtual ~LauAbsResonance();
59 
61  virtual void initialise() = 0;
62 
64 
68  virtual LauComplex amplitude(const LauKinematics* kinematics);
69 
71 
74  virtual LauResonanceModel getResonanceModel() const = 0;
75 
77 
80  const TString& getResonanceName() const {return resName_;}
81 
83 
86  Int_t getPairInt() const {return resPairAmpInt_;}
87 
89 
92  Int_t getSpin() const {return resSpin_;}
93 
95 
98  Int_t getCharge() const {return resCharge_;}
99 
101 
104  Double_t getMass() const {return resMass_;}
105 
107 
110  Double_t getWidth() const {return resWidth_;}
111 
113 
116  Bool_t flipHelicity() const {return flipHelicity_;}
117 
119 
122  void flipHelicity(Bool_t boolean) {flipHelicity_ = boolean;}
123 
125 
130  void changeResonance(Double_t newMass, Double_t newWidth, Int_t newSpin);
131 
133 
137  virtual void setResonanceParameter(Double_t value, const TString& name);
138 
139  protected:
141  TString getNameParent() const;
143  TString getNameDaug1() const;
145  TString getNameDaug2() const;
147  TString getNameBachelor() const;
149  Double_t getMassParent() const;
151  Double_t getMassDaug1() const;
153  Double_t getMassDaug2() const;
155  Double_t getMassBachelor() const;
157  Int_t getChargeParent() const;
159  Int_t getChargeDaug1() const;
161  Int_t getChargeDaug2() const;
163  Int_t getChargeBachelor() const;
164 
166  Double_t getQ() const {return q_;}
168  Double_t getP() const {return p_;}
170  Double_t getPstar() const {return pstar_;}
171 
173  const LauDaughters* getDaughters() const {return daughters_;}
174 
176 
180  virtual LauComplex resAmp(Double_t mass, Double_t spinTerm) = 0;
181 
182  private:
185 
187  TString nameParent_;
189  TString nameDaug1_;
191  TString nameDaug2_;
193  TString nameBachelor_;
194 
198  Int_t chargeDaug1_;
200  Int_t chargeDaug2_;
203 
205  Double_t massParent_;
207  Double_t massDaug1_;
209  Double_t massDaug2_;
210  // Bachelor mass
211  Double_t massBachelor_;
212 
214  TString resName_;
216  Double_t resMass_;
218  Double_t resWidth_;
220  Int_t resSpin_;
222  Int_t resCharge_;
225 
228 
230  Double_t q_;
232  Double_t p_;
234  Double_t pstar_;
235 
236  ClassDef(LauAbsResonance,0) // Abstract resonance class
237 
238 };
239 
240 #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.
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.
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.
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.