laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauPoleRes.cc
Go to the documentation of this file.
1 
2 /*
3 Copyright 2018 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 "LauPoleRes.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 LauPoleRes::resAmp( Double_t mass, Double_t spinTerm )
47 {
48  // This function returns the complex dynamical amplitude for a pole. 1/((mpole*mpole)-m*m)
49  // mpole==(m0-iw0)==(rePole-i*imPole), to use the already defined mass and width of the resonance
50 
51  Double_t rePole = this->getMass();
52  Double_t imPole = this->getWidth();
53  Double_t reTerm = rePole * rePole - imPole * imPole - mass * mass;
54  Double_t imTerm = 2.0 * rePole * imPole;
55 
56  LauComplex resAmplitude( reTerm, imTerm );
57 
58  resAmplitude.rescale( 1. / ( reTerm * reTerm + imTerm * imTerm ) );
59 
60  return resAmplitude.scale( spinTerm );
61 }
62 
63 const std::vector<LauParameter*>& LauPoleRes::getFloatingParameters()
64 {
66 
67  if ( ! this->fixMass() ) {
68  this->addFloatingParameter( this->getMassPar() );
69  }
70  if ( ! this->fixWidth() ) {
71  this->addFloatingParameter( this->getWidthPar() );
72  }
73 
74  return this->getParameters();
75 }
virtual void initialise()
Initialise the model.
Definition: LauPoleRes.cc:42
Double_t getWidth() const
Get the width of the resonance.
LauPoleRes(LauResonanceInfo *resInfo, const Int_t resPairAmpInt, const LauDaughters *daughters)
Constructor.
Definition: LauPoleRes.cc:31
LauParameter * getMassPar()
Get the mass parameter of the resonance.
LauComplex scale(Double_t scaleVal) const
Obtain the complex number scaled by some factor.
Definition: LauComplex.hh:292
virtual const std::vector< LauParameter * > & getFloatingParameters()
Retrieve the resonance parameters, e.g. so that they can be loaded into a fit.
Definition: LauPoleRes.cc:63
std::vector< LauParameter * > & getParameters()
Access the list of floating parameters.
Class for defining a complex number.
Definition: LauComplex.hh:61
void addFloatingParameter(LauParameter *param)
Add parameter to the list of floating parameters.
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.
virtual LauComplex resAmp(Double_t mass, Double_t spinTerm)
Complex resonant amplitude.
Definition: LauPoleRes.cc:46
virtual ~LauPoleRes()
Destructor.
Definition: LauPoleRes.cc:38
Class for defining the properties of a resonant particle.
Bool_t fixMass() const
Get the status of resonance mass (fixed or released)
void clearFloatingParameters()
Clear list of floating parameters.
Abstract class for defining type for resonance amplitude models (Breit-Wigner, Flatte etc....
File containing declaration of LauPoleRes class.
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
LauParameter * getWidthPar()
Get the width parameter of the resonance.