laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauKMatrixProdSVP.cc
Go to the documentation of this file.
1 
2 /*
3 Copyright 2008 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 "LauKMatrixProdSVP.hh"
30 #include "LauKMatrixPropagator.hh"
31 
32 #include <iostream>
33 
35 
36 LauKMatrixProdSVP::LauKMatrixProdSVP(const TString& SVPName, Int_t channelIndex, Int_t resPairAmpInt,
37  LauKMatrixPropagator* propagator, const LauDaughters* daughters,
38  Bool_t useProdAdler) :
39  LauAbsResonance(SVPName, resPairAmpInt, daughters),
40  thePropagator_(propagator),
41  channelIndex_(channelIndex - 1), // channelIndex goes from 1 to nChannels.
42  useProdAdler_(useProdAdler)
43 {
44  // Constructor
45  if (useProdAdler_) {
46  std::cout<<"Creating K matrix production SVP "<<SVPName<<" with channelIndex = "
47  <<channelIndex<<" with s-dependent production Adler zero term"<<std::endl;
48  } else {
49  std::cout<<"Creating K matrix production SVP "<<SVPName<<" with channelIndex = "
50  <<channelIndex<<" with production Adler zero factor = 1"<<std::endl;
51  }
52 
53 
54 }
55 
57 {
58  // Destructor
59 }
60 
61 LauComplex LauKMatrixProdSVP::resAmp(Double_t mass, Double_t spinTerm)
62 {
63  std::cerr << "ERROR in LauKMatrixProdSVP::resAmp : This method shouldn't get called." << std::endl;
64  std::cerr << " Returning zero amplitude for mass = " << mass << " and spinTerm = " << spinTerm << "." << std::endl;
65  return LauComplex(0.0, 0.0);
66 }
67 
69 {
70 
71  // Calculate the amplitude for the K-matrix production pole.
72  // First, make sure the K-matrix propagator is up-to-date for
73  // the given centre-of-mass squared value ("s") from the kinematics.
74  LauComplex amp(0.0, 0.0);
75 
76  if (thePropagator_ == 0) {
77  std::cerr << "ERROR in LauKMatrixProdSVP::amplitude : The propagator is null" << std::endl;
78  return amp;
79  }
80 
81  thePropagator_->updatePropagator(kinematics);
82 
83  Double_t SVPTerm = thePropagator_->getProdSVPTerm();
84 
86 
87  // Include Adler zero factor if requested
88  Double_t adlerZero(1.0);
89  if (useProdAdler_) {adlerZero = thePropagator_->getAdlerZero();}
90 
91  amp.rescale(SVPTerm*adlerZero);
92 
93  return amp;
94 
95 }
96 
virtual ~LauKMatrixProdSVP()
Destructor.
ClassImp(LauAbsCoeffSet)
Class that defines the particular 3-body decay under study.
Definition: LauDaughters.hh:47
File containing declaration of LauKMatrixProdSVP class.
LauKMatrixPropagator * thePropagator_
The K-matrix propagator.
Bool_t useProdAdler_
Boolean to turn on/off the production Adler zero factor.
File containing declaration of LauKMatrixPropagator class.
virtual LauComplex resAmp(Double_t mass, Double_t spinTerm)
Function not meant to be called.
Int_t channelIndex_
The number of the channel.
Double_t getAdlerZero() const
Get the Adler zero factor, which is set when updatePropagator is called.
void updatePropagator(const LauKinematics *kinematics)
Calculate the invariant mass squared s.
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
Class for calculating 3-body kinematic quantities.
Double_t getProdSVPTerm() const
Get the &quot;slowly-varying part&quot; term of the amplitude.
LauComplex getPropTerm(Int_t channelIndex) const
Get the full complex propagator term for a given channel.
virtual LauComplex amplitude(const LauKinematics *kinematics)
The amplitude calculation.
Class for defining a K-matrix production &quot;slowly-varying part&quot; (SVP) amplitude.
Class for defining a K-matrix propagator.