laura is hosted by Hepforge, IPPP Durham
Laura++  v3r0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauRealImagCPCoeffSet.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2013 - 2014.
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 
24 #ifndef LAU_REALIMAGCP_COEFF_SET
25 #define LAU_REALIMAGCP_COEFF_SET
26 
27 #include <iosfwd>
28 #include <vector>
29 
30 #include "Rtypes.h"
31 
32 #include "LauAbsCoeffSet.hh"
33 #include "LauComplex.hh"
34 #include "LauParameter.hh"
35 
36 
38 
39  public:
41 
52  LauRealImagCPCoeffSet(const TString& compName, Double_t x, Double_t y, Double_t xbar, Double_t ybar,
53  Bool_t xFixed, Bool_t yFixed, Bool_t xbarFixed, Bool_t ybarFixed);
54 
57 
59 
62  virtual std::vector<LauParameter*> getParameters();
63 
65  virtual void printParValues() const;
66 
68 
71  virtual void printTableHeading(std::ostream& stream) const;
72 
74 
77  virtual void printTableRow(std::ostream& stream) const;
78 
80  virtual void randomiseInitValues();
81 
83  virtual void finaliseValues();
84 
86 
89  virtual const LauComplex& particleCoeff();
90 
92 
95  virtual const LauComplex& antiparticleCoeff();
96 
98 
103  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init );
104 
106 
109  virtual LauParameter acp();
110 
112 
118  virtual LauAbsCoeffSet* createClone(const TString& newName, CloneOption cloneOption = All, Double_t constFactor = 1.0);
119 
120  private:
122 
128  LauRealImagCPCoeffSet(const LauRealImagCPCoeffSet& rhs, CloneOption cloneOption = All, Double_t constFactor = 1.0);
129 
131 
135 
136  // the actual fit parameters
137  // (need to be pointers so they can be cloned)
146 
151 
154 
155  ClassDef(LauRealImagCPCoeffSet, 0)
156 };
157 
158 #endif
LauRealImagCPCoeffSet(const TString &compName, Double_t x, Double_t y, Double_t xbar, Double_t ybar, Bool_t xFixed, Bool_t yFixed, Bool_t xbarFixed, Bool_t ybarFixed)
Constructor.
LauRealImagCPCoeffSet & operator=(const LauRealImagCPCoeffSet &rhs)
Copy assignment operator (not implemented)
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar, Bool_t init)
Set the parameters based on the complex coefficients for particles and antiparticles.
File containing declaration of LauAbsCoeffSet class.
virtual void printTableHeading(std::ostream &stream) const
Print the column headings for a results table.
LauComplex antiparticleCoeff_
The antiparticle complex coefficient.
LauParameter * y_
The imaginary part for the particle.
LauComplex particleCoeff_
The particle complex coefficient.
CloneOption
Options for cloning operation.
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0)
Create a clone of the coefficient set.
File containing declaration of LauParameter class.
File containing declaration of LauComplex class.
LauParameter acp_
The CP asymmetry.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
LauParameter * x_
The real part for the particle.
Class for defining the abstract interface for complex coefficient classes.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:34
LauParameter * ybar_
The imaginary part for the antiparticle.
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.
Class for defining a complex coefficient using a simple Cartesian CP convention.
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
LauParameter * xbar_
The real part for the antiparticle.
Class for defining a complex number.
Definition: LauComplex.hh:47
virtual ~LauRealImagCPCoeffSet()
Destructor.
virtual LauParameter acp()
Calculate the CP asymmetry.
virtual void printParValues() const
Print the current values of the parameters.