laura is hosted by Hepforge, IPPP Durham
Laura++  v3r0
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 - 2014.
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 
30 #include "LauComplex.hh"
31 #include "LauParameter.hh"
32 
33 class LauDaughters;
34 class LauKinematics;
35 class LauResonanceInfo;
36 
38 
39  public:
42  BW,
44  GS,
49  LASS,
60  MIPW,
62  };
63 
65 
70  LauAbsResonance(LauResonanceInfo* resInfo, const Int_t resPairAmpInt, const LauDaughters* daughters);
71 
73 
78  LauAbsResonance(const TString& resName, const Int_t resPairAmpInt, const LauDaughters* daughters);
79 
81  virtual ~LauAbsResonance();
82 
84  virtual void initialise() = 0;
85 
87 
91  virtual LauComplex amplitude(const LauKinematics* kinematics);
92 
94 
97  virtual LauResonanceModel getResonanceModel() const = 0;
98 
100 
103  const TString& getResonanceName() const {return resName_;}
104 
106 
109  const TString& getSanitisedName() const {return sanitisedName_;}
110 
112 
115  Int_t getPairInt() const {return resPairAmpInt_;}
116 
118 
121  Int_t getSpin() const {return resSpin_;}
122 
124 
127  Int_t getCharge() const {return resCharge_;}
128 
130 
133  Double_t getMass() const {return (resMass_!=0) ? resMass_->value() : -1.0;}
134 
136 
139  Double_t getWidth() const {return (resWidth_!=0) ? resWidth_->value() : -1.0;}
140 
142 
146 
148 
152 
154 
157  virtual const std::vector<LauParameter*>& getFloatingParameters() { return this->getParameters(); };
158 
160 
163  Bool_t flipHelicity() const {return flipHelicity_;}
164 
166 
169  void flipHelicity(const Bool_t boolean) {flipHelicity_ = boolean;}
170 
172 
175  Bool_t ignoreMomenta() const {return ignoreMomenta_;}
176 
178 
181  void ignoreMomenta(const Bool_t boolean) {ignoreMomenta_ = boolean;}
182 
184 
193  void changeResonance(const Double_t newMass, const Double_t newWidth, const Int_t newSpin);
194 
196 
204  void changeBWBarrierRadii(const Double_t resRadius, const Double_t parRadius);
205 
207 
211  virtual void setResonanceParameter(const TString& name, const Double_t value);
212 
214 
217  virtual void floatResonanceParameter(const TString& name);
218 
220 
224  virtual LauParameter* getResonanceParameter(const TString& name);
225 
227 
230  void fixMass(const Bool_t parFixed) { if (resMass_!=0) { resMass_->fixed(parFixed); } }
231 
233 
236  void fixWidth(const Bool_t parFixed) { if (resWidth_!=0) { resWidth_->fixed(parFixed); } }
237 
239 
242  Bool_t fixMass() const { return (resMass_!=0) ? resMass_->fixed() : kTRUE; }
243 
245 
248  Bool_t fixWidth() const { return (resWidth_!=0) ? resWidth_->fixed() : kTRUE; }
249 
251 
256  {
257  resBWFactor_ = resFactor;
258  parBWFactor_ = parFactor;
259  }
260 
262  void fixBarrierRadii(const Bool_t fixResRadius, const Bool_t fixParRadius);
263 
265  Bool_t fixResRadius() const;
266 
268  Bool_t fixParRadius() const;
269 
271  Double_t getResRadius() const;
272 
274  Double_t getParRadius() const;
275 
276  protected:
278  TString getNameParent() const;
280  TString getNameDaug1() const;
282  TString getNameDaug2() const;
284  TString getNameBachelor() const;
286  Double_t getMassParent() const;
288  Double_t getMassDaug1() const;
290  Double_t getMassDaug2() const;
292  Double_t getMassBachelor() const;
294  Int_t getChargeParent() const;
296  Int_t getChargeDaug1() const;
298  Int_t getChargeDaug2() const;
300  Int_t getChargeBachelor() const;
301 
303  Double_t getQ() const {return q_;}
305  Double_t getP() const {return p_;}
307  Double_t getPstar() const {return pstar_;}
308 
315 
318 
320  const LauDaughters* getDaughters() const {return daughters_;}
321 
323 
327  virtual LauComplex resAmp(Double_t mass, Double_t spinTerm) = 0;
328 
331 
333 
336  void addFloatingParameter( LauParameter* param );
337 
339  std::vector<LauParameter*>& getParameters() { return resParameters_; }
340 
341 
342  private:
344  LauAbsResonance(const LauAbsResonance& rhs);
345 
348 
351 
354 
356  TString nameParent_;
358  TString nameDaug1_;
360  TString nameDaug2_;
362  TString nameBachelor_;
363 
367  Int_t chargeDaug1_;
369  Int_t chargeDaug2_;
372 
374  Double_t massParent_;
376  Double_t massDaug1_;
378  Double_t massDaug2_;
379  // Bachelor mass
380  Double_t massBachelor_;
381 
383  TString resName_;
384 
386  TString sanitisedName_;
387 
392 
394  std::vector<LauParameter*> resParameters_;
395 
397  Int_t resSpin_;
399  Int_t resCharge_;
406 
411 
413  Double_t q_;
415  Double_t p_;
417  Double_t pstar_;
418 
419  ClassDef(LauAbsResonance,0) // Abstract resonance class
420 
421 };
422 
423 #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.
LauParameter * getMassPar()
Get the mass parameter of the resonance.
Bool_t fixed() const
Check whether the parameter is fixed or floated.
Double_t massDaug2_
Daughter 2 mass.
Double_t getMassBachelor() const
Get the mass of the bachelor daughter.
void setBarrierRadii(LauBlattWeisskopfFactor *resFactor, LauBlattWeisskopfFactor *parFactor)
Set the form factor model and parameters.
LauAbsResonance(LauResonanceInfo *resInfo, const Int_t resPairAmpInt, const LauDaughters *daughters)
Constructor (for use by standard resonances)
Bool_t fixWidth() const
Get the status of resonance width (fixed or released)
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.
void changeResonance(const Double_t newMass, const Double_t newWidth, const Int_t newSpin)
Allow the mass, width and spin of the resonance to be changed.
LauAbsResonance & operator=(const LauAbsResonance &rhs)
Copy assignment operator (not implemented)
Double_t getMassParent() const
Get the parent particle mass.
Double_t massDaug1_
Daughter 1 mass.
Class for defining the properties of a resonant particle.
LauResonanceInfo * resInfo_
Information on the resonance.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:33
TString nameDaug2_
Daughter 2 name.
virtual void floatResonanceParameter(const TString &name)
Allow the various parameters to float in the fit.
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.
const TString & getSanitisedName() const
Get the name of the resonance.
TString getNameDaug2() const
Get the name of the second daughter of the resonance.
LauParameter * resWidth_
Resonance width.
void ignoreMomenta(const Bool_t boolean)
Set the ignore p_ and q_ flag.
LauParameter * resMass_
Resonance mass.
LauBlattWeisskopfFactor * resBWFactor_
Blatt Weisskopf barrier for resonance decay.
const LauBlattWeisskopfFactor * getParBWFactor() const
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 fixResRadius() const
Get the status of resonance barrier radius (fixed or released)
Bool_t flipHelicity() const
Get the helicity flip flag.
Double_t getParRadius() const
Get the radius of the parent barrier factor.
Bool_t fixMass() const
Get the status of resonance mass (fixed or released)
Double_t getMassDaug2() const
Get the mass of daughter 2.
virtual LauParameter * getResonanceParameter(const TString &name)
Access the given resonance parameter.
void flipHelicity(const Bool_t boolean)
Set the helicity flip flag.
void addFloatingParameter(LauParameter *param)
Add parameter to the list of floating parameters.
LauBlattWeisskopfFactor * getParBWFactor()
Get the centrifugal barrier for the parent decay.
TString sanitisedName_
Resonance name with illegal characters removed.
Int_t chargeBachelor_
Bachelor charge.
File containing declaration of LauBlattWeisskopfFactor class.
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.
File containing declaration of LauParameter class.
std::vector< LauParameter * > resParameters_
All parameters of the resonance.
virtual void setResonanceParameter(const TString &name, const Double_t value)
Set value of the various parameters.
Int_t getChargeParent() const
Get the Charge of the parent particle.
File containing declaration of LauComplex class.
virtual ~LauAbsResonance()
Destructor.
LauBlattWeisskopfFactor * parBWFactor_
Blatt Weisskopf barrier for parent decay.
virtual LauComplex resAmp(Double_t mass, Double_t spinTerm)=0
Complex resonant amplitude.
TString getNameParent() const
Get the name of the parent particle.
std::vector< LauParameter * > & getParameters()
Access the list of floating parameters.
Int_t getCharge() const
Get the charge of the resonance.
LauParameter * getWidthPar()
Get the width parameter of the resonance.
TString nameBachelor_
Bachelor name.
Int_t chargeDaug2_
Daughter 2 charge.
Bool_t flipHelicity_
Boolean to flip helicity.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:34
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 getResRadius() const
Get the radius of the resonance barrier factor.
Double_t getWidth() const
Get the width of the resonance.
Bool_t fixParRadius() const
Get the status of parent barrier radius (fixed or released)
void fixBarrierRadii(const Bool_t fixResRadius, const Bool_t fixParRadius)
Fix or release the Blatt-Weisskopf barrier radii.
void fixWidth(const Bool_t parFixed)
Fix or release the resonance width.
Abstract class for defining type for resonance amplitude models (Breit-Wigner, Flatte etc...
void changeBWBarrierRadii(const Double_t resRadius, const Double_t parRadius)
Allow the Blatt-Weisskopf radius for the resonance and parent factors to be changed.
TString resName_
Resonance name.
LauResonanceInfo * getResInfo() const
Access the resonance info object.
Int_t resPairAmpInt_
DP axis identifier.
const LauBlattWeisskopfFactor * getResBWFactor() const
LauBlattWeisskopfFactor * getResBWFactor()
Get the centrifugal barrier for the resonance decay.
Int_t chargeDaug1_
Daughter 1 charge.
Class for defining a complex number.
Definition: LauComplex.hh:47
Class that implements the Blatt-Weisskopf barrier factor.
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.
Double_t value() const
The value of the parameter.
virtual const std::vector< LauParameter * > & getFloatingParameters()
Retrieve the resonance parameters, e.g. so that they can be loaded into a fit.
void fixMass(const Bool_t parFixed)
Fix or release the resonance mass.
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.
Double_t pstar_
Bachelor momentum in parent rest frame.
Double_t q_
Daughter momentum in resonance rest frame.
void clearFloatingParameters()
Clear list of floating parameters.