laura is hosted by Hepforge, IPPP Durham
Laura++  v3r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauMagPhaseCPCoeffSet.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2011 - 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 
26 #ifndef LAU_MAGPHASECP_COEFF_SET
27 #define LAU_MAGPHASECP_COEFF_SET
28 
29 #include <iosfwd>
30 #include <vector>
31 
32 #include "Rtypes.h"
33 
34 #include "LauAbsCoeffSet.hh"
35 #include "LauComplex.hh"
36 #include "LauParameter.hh"
37 
38 
40 
41  public:
43 
54  LauMagPhaseCPCoeffSet(const TString& compName, Double_t mag, Double_t phase, Double_t magBar, Double_t phaseBar,
55  Bool_t magFixed, Bool_t phaseFixed, Bool_t magBarFixed, Bool_t phaseBarFixed);
56 
59 
61 
64  virtual std::vector<LauParameter*> getParameters();
65 
67  virtual void printParValues() const;
68 
70 
73  virtual void printTableHeading(std::ostream& stream) const;
74 
76 
79  virtual void printTableRow(std::ostream& stream) const;
80 
82  virtual void randomiseInitValues();
83 
85  virtual void finaliseValues();
86 
88 
91  virtual const LauComplex& particleCoeff();
92 
94 
97  virtual const LauComplex& antiparticleCoeff();
98 
100 
105  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init );
106 
108 
111  virtual LauParameter acp();
112 
114 
120  virtual LauAbsCoeffSet* createClone(const TString& newName, CloneOption cloneOption = All, Double_t constFactor = 1.0);
121 
122  private:
124 
130  LauMagPhaseCPCoeffSet(const LauMagPhaseCPCoeffSet& rhs, CloneOption cloneOption = All, Double_t constFactor = 1.0);
131 
133 
137 
138  // the actual fit parameters
139  // (need to be pointers so they can be cloned)
148 
153 
156 
157  ClassDef(LauMagPhaseCPCoeffSet, 0)
158 };
159 
160 #endif
LauMagPhaseCPCoeffSet & operator=(const LauMagPhaseCPCoeffSet &rhs)
Copy assignment operator (not implemented)
virtual void finaliseValues()
Make sure values are in &quot;standard&quot; ranges, e.g. phases should be between -pi and pi.
LauParameter acp_
The CP asymmetry.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
LauParameter * phase_
The phase for particles.
virtual void printTableRow(std::ostream &stream) const
Print the parameters of the complex coefficient as a row in the results table.
File containing declaration of LauAbsCoeffSet class.
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0)
Create a clone of the coefficient set.
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
Class for defining a complex coefficient using seperate magnitudes and phases for particles and antip...
virtual void printParValues() const
Print the current values of the parameters.
CloneOption
Options for cloning operation.
File containing declaration of LauParameter class.
virtual const LauComplex & particleCoeff()
Retrieve the complex coefficient for a particle.
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 LauParameter acp()
Calculate the CP asymmetry.
LauParameter * magBar_
The magnitude for antiparticles.
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
virtual ~LauMagPhaseCPCoeffSet()
Destructor.
Class for defining a complex number.
Definition: LauComplex.hh:47
LauParameter * mag_
The magnitude for particles.
LauMagPhaseCPCoeffSet(const TString &compName, Double_t mag, Double_t phase, Double_t magBar, Double_t phaseBar, Bool_t magFixed, Bool_t phaseFixed, Bool_t magBarFixed, Bool_t phaseBarFixed)
Constructor.
LauComplex particleCoeff_
The particle complex coefficient.
LauParameter * phaseBar_
The phase for antiparticles.
LauComplex antiparticleCoeff_
The antiparticle complex coefficient.
virtual void printTableHeading(std::ostream &stream) const
Print the column headings for a results table.