laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
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  const Int_t resPairAmpInt,
33  const LauDaughters* daughters ) :
34  LauAbsResonance( resInfo, resPairAmpInt, daughters )
35 {
36 }
37 
39 {
40 }
41 
43 {
44 }
45 
46 LauComplex LauBreitWignerRes::resAmp( Double_t mass, Double_t spinTerm )
47 {
48  // This function returns the complex dynamical amplitude for a Breit-Wigner resonance,
49  // given the invariant mass and cos(helicity) values.
50 
51  Double_t resMass = this->getMass();
52  Double_t deltaM = mass - resMass;
53 
54  Double_t resWidthO2 = 0.5 * this->getWidth();
55  Double_t resWidthO2Sq = resWidthO2 * resWidthO2;
56 
57  LauComplex resAmplitude( deltaM, resWidthO2 );
58 
59  resAmplitude.rescale( spinTerm / ( deltaM * deltaM + resWidthO2Sq ) );
60 
61  return resAmplitude;
62 }
63 
64 const std::vector<LauParameter*>& LauBreitWignerRes::getFloatingParameters()
65 {
67 
68  if ( ! this->fixMass() ) {
69  this->addFloatingParameter( this->getMassPar() );
70  }
71  if ( ! this->fixWidth() ) {
72  this->addFloatingParameter( this->getWidthPar() );
73  }
74 
75  return this->getParameters();
76 }
Double_t getWidth() const
Get the width of the resonance.
virtual void initialise()
Initialise the model.
File containing declaration of LauBreitWignerRes class.
LauParameter * getMassPar()
Get the mass parameter of the resonance.
LauBreitWignerRes(LauResonanceInfo *resInfo, const Int_t resPairAmpInt, const LauDaughters *daughters)
Constructor.
std::vector< LauParameter * > & getParameters()
Access the list of floating parameters.
virtual LauComplex resAmp(Double_t mass, Double_t spinTerm)
Complex resonant amplitude.
Class for defining a complex number.
Definition: LauComplex.hh:61
void addFloatingParameter(LauParameter *param)
Add parameter to the list of floating parameters.
virtual const std::vector< LauParameter * > & getFloatingParameters()
Retrieve the resonance parameters, e.g. so that they can be loaded into a fit.
void rescale(Double_t scaleVal)
Scale this by a factor.
Definition: LauComplex.hh:301
Bool_t fixWidth() const
Get the status of resonance width (fixed or released)
Double_t getMass() const
Get the mass of the resonance.
Class for defining the properties of a resonant particle.
Bool_t fixMass() const
Get the status of resonance mass (fixed or released)
virtual ~LauBreitWignerRes()
Destructor.
void clearFloatingParameters()
Clear list of floating parameters.
Abstract class for defining type for resonance amplitude models (Breit-Wigner, Flatte etc....
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
LauParameter * getWidthPar()
Get the width parameter of the resonance.