laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauBreitWignerRes.cc
Go to the documentation of this file.
1 
2 /*
3 Copyright 2004 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
29 #include "LauBreitWignerRes.hh"
30 
32 
33 
34 LauBreitWignerRes::LauBreitWignerRes(LauResonanceInfo* resInfo, const Int_t resPairAmpInt, const LauDaughters* daughters) :
35  LauAbsResonance(resInfo, resPairAmpInt, daughters)
36 {
37 }
38 
40 {
41 }
42 
44 {
45 }
46 
47 LauComplex LauBreitWignerRes::resAmp(Double_t mass, Double_t spinTerm)
48 {
49  // This function returns the complex dynamical amplitude for a Breit-Wigner resonance,
50  // given the invariant mass and cos(helicity) values.
51 
52  Double_t resMass = this->getMass();
53  Double_t deltaM = mass - resMass;
54 
55  Double_t resWidthO2 = 0.5 * this->getWidth();
56  Double_t resWidthO2Sq = resWidthO2*resWidthO2;
57 
58  LauComplex resAmplitude(deltaM, resWidthO2);
59 
60  resAmplitude.rescale(spinTerm/(deltaM*deltaM + resWidthO2Sq));
61 
62  return resAmplitude;
63 }
64 
65 const std::vector<LauParameter*>& LauBreitWignerRes::getFloatingParameters()
66 {
68 
69  if ( ! this->fixMass() ) {
70  this->addFloatingParameter( this->getMassPar() );
71  }
72  if ( ! this->fixWidth() ) {
73  this->addFloatingParameter( this->getWidthPar() );
74  }
75 
76  return this->getParameters();
77 }
78 
LauParameter * getMassPar()
Get the mass parameter of the resonance.
Bool_t fixWidth() const
Get the status of resonance width (fixed or released)
virtual ~LauBreitWignerRes()
Destructor.
Double_t getMass() const
Get the mass of the resonance.
ClassImp(LauAbsCoeffSet)
Class for defining the properties of a resonant particle.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
File containing declaration of LauBreitWignerRes class.
Bool_t fixMass() const
Get the status of resonance mass (fixed or released)
void addFloatingParameter(LauParameter *param)
Add parameter to the list of floating parameters.
virtual void initialise()
Initialise the model.
virtual const std::vector< LauParameter * > & getFloatingParameters()
Retrieve the resonance parameters, e.g. so that they can be loaded into a fit.
Class for defining the simple Breit-Wigner resonance model.
std::vector< LauParameter * > & getParameters()
Access the list of floating parameters.
LauParameter * getWidthPar()
Get the width parameter of the resonance.
Double_t getWidth() const
Get the width of the resonance.
Abstract class for defining type for resonance amplitude models (Breit-Wigner, Flatte etc...
void rescale(Double_t scaleVal)
Scale this by a factor.
Definition: LauComplex.hh:299
Class for defining a complex number.
Definition: LauComplex.hh:61
virtual LauComplex resAmp(Double_t mass, Double_t spinTerm)
Complex resonant amplitude.
void clearFloatingParameters()
Clear list of floating parameters.