laura is hosted by Hepforge, IPPP Durham
Laura++  v2r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauCleoCPCoeffSet.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_CLEOCP_COEFF_SET
28 #define LAU_CLEOCP_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 
57  LauCleoCPCoeffSet(const TString& compName, Double_t a, Double_t delta, Double_t b, Double_t phi,
58  Bool_t aFixed, Bool_t deltaFixed, Bool_t bFixed, Bool_t phiFixed, Bool_t bSecondStage = kFALSE, Bool_t phiSecondStage = kFALSE);
59 
61  virtual ~LauCleoCPCoeffSet(){}
62 
64 
67  virtual std::vector<LauParameter*> getParameters();
68 
70  virtual void printParValues() const;
71 
73 
76  virtual void printTableHeading(std::ostream& stream) const;
77 
79 
82  virtual void printTableRow(std::ostream& stream) const;
83 
85  virtual void randomiseInitValues();
86 
88  virtual void finaliseValues();
89 
91 
94  virtual const LauComplex& particleCoeff();
95 
97 
100  virtual const LauComplex& antiparticleCoeff();
101 
103 
108  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init );
109 
111 
114  virtual LauParameter acp();
115 
117 
123  virtual LauAbsCoeffSet* createClone(const TString& newName, CloneOption cloneOption = All, Double_t constFactor = 1.0);
124 
125  private:
127 
133  LauCleoCPCoeffSet(const LauCleoCPCoeffSet& rhs, CloneOption cloneOption = All, Double_t constFactor = 1.0);
134 
136 
140 
141  // the actual fit parameters
142  // (need to be pointers so they can be cloned)
151 
156 
159 
160  ClassDef(LauCleoCPCoeffSet, 0)
161 };
162 
163 #endif
virtual void printParValues() const
Print the current values of the parameters.
LauParameter acp_
The CP asymmetry.
LauComplex antiparticleCoeff_
The antiparticle complex coefficient.
virtual ~LauCleoCPCoeffSet()
Destructor.
File containing declaration of LauAbsCoeffSet class.
LauParameter * delta_
The strong phase.
LauCleoCPCoeffSet(const TString &compName, Double_t a, Double_t delta, Double_t b, Double_t phi, Bool_t aFixed, Bool_t deltaFixed, Bool_t bFixed, Bool_t phiFixed, Bool_t bSecondStage=kFALSE, Bool_t phiSecondStage=kFALSE)
Constructor.
Class for defining a complex coefficient using the Cleo CP convention.
LauComplex particleCoeff_
The particle complex coefficient.
LauParameter * phi_
The weak phase.
CloneOption
Options for cloning operation.
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
virtual LauParameter acp()
Calculate the CP asymmetry.
virtual void printTableHeading(std::ostream &stream) const
Print the column headings for a results table.
File containing declaration of LauParameter class.
File containing declaration of LauComplex class.
Class for defining the abstract interface for complex coefficient classes.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:33
LauCleoCPCoeffSet & operator=(const LauCleoCPCoeffSet &rhs)
Copy assignment operator (not implemented)
LauParameter * b_
The magnitude b.
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0)
Create a clone of the coefficient set.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
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 a complex number.
Definition: LauComplex.hh:47
virtual void printTableRow(std::ostream &stream) const
Print the parameters of the complex coefficient as a row in the results table.
virtual const LauComplex & particleCoeff()
Retrieve the complex coefficient for a particle.
virtual void finaliseValues()
Make sure values are in &quot;standard&quot; ranges, e.g. phases should be between -pi and pi.
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
LauParameter * a_
The magnitude a.