laura is hosted by Hepforge, IPPP Durham
Laura++  v3r3
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauPolarGammaCPCoeffSet.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2006 - 2013.
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 
27 #ifndef LAU_POLARGAMMACP_COEFF_SET
28 #define LAU_POLARGAMMACP_COEFF_SET
29 
30 #include <iosfwd>
31 #include <vector>
32 
33 #include "Rtypes.h"
34 
35 #include "LauAbsCoeffSet.hh"
36 #include "LauComplex.hh"
37 #include "LauParameter.hh"
38 
39 
41 
42  public:
44  enum DecayType {
53  };
54 
56 
81  LauPolarGammaCPCoeffSet(const TString& compName, const DecayType decayType,
82  const Double_t x, const Double_t y,
83  const Double_t rB, const Double_t deltaB, const Double_t gamma,
84  const Double_t rD, const Double_t deltaD,
85  const Bool_t xFixed, const Bool_t yFixed,
86  const Bool_t rBFixed, const Bool_t deltaBFixed, const Bool_t gammaFixed,
87  const Bool_t rDFixed, const Bool_t deltaDFixed,
88  const Bool_t rBSecondStage = kFALSE, const Bool_t deltaBSecondStage = kFALSE, const Bool_t gammaSecondStage = kFALSE,
89  const Bool_t rDSecondStage = kFALSE, const Bool_t deltaDSecondStage = kFALSE,
90  const Bool_t useGlobalGamma = kFALSE,
91  const Bool_t useGlobalADSPars = kFALSE);
92 
95 
97 
100  virtual std::vector<LauParameter*> getParameters();
101 
103  virtual void printParValues() const;
104 
106 
109  virtual void printTableHeading(std::ostream& stream) const;
110 
112 
115  virtual void printTableRow(std::ostream& stream) const;
116 
118  virtual void randomiseInitValues();
119 
121  virtual void finaliseValues();
122 
124 
127  virtual const LauComplex& particleCoeff();
128 
130 
133  virtual const LauComplex& antiparticleCoeff();
134 
136 
143  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init );
144 
146 
149  virtual LauParameter acp();
150 
152 
158  virtual LauAbsCoeffSet* createClone(const TString& newName, CloneOption cloneOption = All, Double_t constFactor = 1.0);
159 
160  private:
162 
168  LauPolarGammaCPCoeffSet(const LauPolarGammaCPCoeffSet& rhs, CloneOption cloneOption = All, Double_t constFactor = 1.0);
169 
171 
175 
177 
181  virtual void adjustName(LauParameter* par, const TString& oldBaseName);
182 
184  void updateAmplitudes();
185 
188 
189  // the actual fit parameters
190  // (need to be pointers so they can be cloned)
191 
194 
197 
200 
203 
206 
209 
212 
215 
218 
221 
223  const Bool_t useGlobalGamma_;
224 
226  const Bool_t useGlobalADSPars_;
227 
234 
239 
242 
243  ClassDef(LauPolarGammaCPCoeffSet, 0)
244 };
245 
246 #endif
static LauParameter * rDGlobal_
the magnitude of the ratio of the favoured and suppressed D-decay amplitudes (shared by multiple reso...
LauParameter * rD_
the magnitude of the ratio of the favoured and suppressed D-decay amplitudes
Class for defining a complex coefficient useful for extracting the CKM angle gamma from B -&gt; D h h Da...
LauComplex nonCPPart_
The b -&gt; c part of the complex coefficient.
LauPolarGammaCPCoeffSet & operator=(const LauPolarGammaCPCoeffSet &rhs)
Copy assignment operator (not implemented)
virtual const LauComplex & particleCoeff()
Retrieve the complex coefficient for a particle.
LauComplex antiparticleCoeff_
The antiparticle complex coefficient.
File containing declaration of LauAbsCoeffSet class.
const DecayType decayType_
The type of the D decay.
LauParameter * deltaD_
the relative strong phase of the favoured and suppressed D-decay amplitudes
LauParameter acp_
The CP asymmetry.
const Bool_t useGlobalADSPars_
Whether the global rD and deltaD are used for this resonance.
virtual void adjustName(LauParameter *par, const TString &oldBaseName)
Prepend the base name and index to the name of a parameter.
LauParameter * gamma_
the relative CP-violating (weak) phase of the b -&gt; u and b -&gt; c amplitudes
LauPolarGammaCPCoeffSet(const TString &compName, const DecayType decayType, const Double_t x, const Double_t y, const Double_t rB, const Double_t deltaB, const Double_t gamma, const Double_t rD, const Double_t deltaD, const Bool_t xFixed, const Bool_t yFixed, const Bool_t rBFixed, const Bool_t deltaBFixed, const Bool_t gammaFixed, const Bool_t rDFixed, const Bool_t deltaDFixed, const Bool_t rBSecondStage=kFALSE, const Bool_t deltaBSecondStage=kFALSE, const Bool_t gammaSecondStage=kFALSE, const Bool_t rDSecondStage=kFALSE, const Bool_t deltaDSecondStage=kFALSE, const Bool_t useGlobalGamma=kFALSE, const Bool_t useGlobalADSPars=kFALSE)
Constructor.
LauComplex cpAntiPart_
The b -&gt; u part of the complex coefficient for the antiparticle.
const Bool_t useGlobalGamma_
Whether the global gamma is used for this resonance.
virtual void printTableHeading(std::ostream &stream) const
Print the column headings for a results table.
CloneOption
Options for cloning operation.
LauComplex cpPart_
The b -&gt; u part of the complex coefficient for the particle.
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
LauParameter * x_
The real part of the b -&gt; c amplitude.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
virtual ~LauPolarGammaCPCoeffSet()
Destructor.
static LauParameter * deltaDGlobal_
the relative strong phase of the favoured and suppressed D-decay amplitudes (shared by multiple reson...
File containing declaration of LauParameter class.
LauParameter * y_
The imaginary part of the b -&gt; c amplitude.
LauParameter * rB_
the magnitude of the ratio of the b -&gt; u and b -&gt; c amplitudes
File containing declaration of LauComplex class.
virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar, Bool_t init)
Set the parameters based on the complex coefficients for particles and antiparticles.
Class for defining the abstract interface for complex coefficient classes.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:35
virtual void printParValues() const
Print the current values of the parameters.
LauParameter * deltaB_
the relative CP-conserving (strong) phase of the b -&gt; u and b -&gt; c amplitudes
virtual void finaliseValues()
Make sure values are in &quot;standard&quot; ranges, e.g. phases should be between -pi and pi.
void updateAmplitudes()
Update the amplitudes based on the new values of the parameters.
virtual void printTableRow(std::ostream &stream) const
Print the parameters of the complex coefficient as a row in the results table.
static LauParameter * gammaGlobal_
The CP-violating phase (shared by multiple resonances)
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
virtual LauParameter acp()
Calculate the CP asymmetry.
Class for defining a complex number.
Definition: LauComplex.hh:47
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0)
Create a clone of the coefficient set.
LauComplex particleCoeff_
The particle complex coefficient.
DecayType
The possible D decay modes.