laura is hosted by Hepforge, IPPP Durham
Laura++  v1r2
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 
68  virtual void printTableHeading(std::ostream& stream);
69 
71 
74  virtual void printTableRow(std::ostream& stream);
75 
77  virtual void randomiseInitValues();
78 
80  virtual void finaliseValues();
81 
83 
86  virtual const LauComplex& particleCoeff();
87 
89 
92  virtual const LauComplex& antiparticleCoeff();
93 
95 
99  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar );
100 
102 
105  virtual LauParameter acp();
106 
108 
113  virtual LauAbsCoeffSet* createClone(const TString& newName, Double_t constFactor = 1.0);
114 
115  protected:
117 
122  LauRealImagCPCoeffSet(const LauRealImagCPCoeffSet& rhs, Double_t constFactor = 1.0);
123 
125 
130 
131  private:
133  Double_t minPar_;
135  Double_t maxPar_;
136 
137  // the actual fit parameters
138  // (need to be pointers so they can be cloned)
147 
152 
155 
156  ClassDef(LauRealImagCPCoeffSet, 0)
157 };
158 
159 #endif
Double_t maxPar_
The maximum allowed value.
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.
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
File containing declaration of LauAbsCoeffSet class.
virtual LauAbsCoeffSet * createClone(const TString &newName, Double_t constFactor=1.0)
Create a clone of the coefficient set.
Double_t minPar_
The minimum allowed value.
LauComplex antiparticleCoeff_
The antiparticle complex coefficient.
LauParameter * y_
The imaginary part for the particle.
LauComplex particleCoeff_
The particle complex coefficient.
File containing declaration of LauParameter class.
virtual void printTableRow(std::ostream &stream)
Print the parameters of the complex coefficient as a row in the results table.
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:31
LauParameter * ybar_
The imaginary part for the antiparticle.
virtual const LauComplex & particleCoeff()
Retrieve the complex coefficient for a particle.
virtual void printTableHeading(std::ostream &stream)
Print the column headings for a results table.
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 void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar)
Set the parameters based on the complex coefficients for particles and antiparticles.
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
LauRealImagCPCoeffSet & operator=(const LauRealImagCPCoeffSet &rhs)
Copy assignment operator.
virtual ~LauRealImagCPCoeffSet()
Destructor.
virtual LauParameter acp()
Calculate the CP asymmetry.