laura is hosted by Hepforge, IPPP Durham
Laura++  v3r3
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauRealImagCoeffSet.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 
22 #ifndef LAU_REALIMAG_COEFF_SET
23 #define LAU_REALIMAG_COEFF_SET
24 
25 #include <iosfwd>
26 #include <vector>
27 
28 #include "Rtypes.h"
29 
30 #include "LauAbsCoeffSet.hh"
31 #include "LauComplex.hh"
32 #include "LauParameter.hh"
33 
34 
36 
37  public:
39 
46  LauRealImagCoeffSet(const TString& compName, Double_t x, Double_t y, Bool_t xFixed, Bool_t yFixed);
47 
50 
52 
55  virtual std::vector<LauParameter*> getParameters();
56 
58  virtual void printParValues() const;
59 
61 
64  virtual void printTableHeading(std::ostream& stream) const;
65 
67 
70  virtual void printTableRow(std::ostream& stream) const;
71 
73  virtual void randomiseInitValues();
74 
76  virtual void finaliseValues();
77 
79 
82  virtual const LauComplex& particleCoeff();
83 
85 
88  virtual const LauComplex& antiparticleCoeff();
89 
91 
97  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init );
98 
100 
103  virtual LauParameter acp();
104 
106 
112  virtual LauAbsCoeffSet* createClone(const TString& newName, CloneOption cloneOption = All, Double_t constFactor = 1.0);
113 
114  private:
116 
122  LauRealImagCoeffSet(const LauRealImagCoeffSet& rhs, CloneOption cloneOption = All, Double_t constFactor = 1.0);
123 
125 
129 
130  // the actual fit parameters
131  // (need to be pointers so they can be cloned)
136 
139 
140  ClassDef(LauRealImagCoeffSet, 0)
141 };
142 
143 #endif
virtual void printParValues() const
Print the current values of the parameters.
virtual void printTableHeading(std::ostream &stream) const
Print the column headings for a results table.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
LauRealImagCoeffSet(const TString &compName, Double_t x, Double_t y, Bool_t xFixed, Bool_t yFixed)
Constructor.
File containing declaration of LauAbsCoeffSet class.
LauParameter * x_
The real part.
CloneOption
Options for cloning operation.
virtual void printTableRow(std::ostream &stream) const
Print the parameters of the complex coefficient as a row in the results table.
LauComplex coeff_
The complex coefficient.
File containing declaration of LauParameter class.
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
File containing declaration of LauComplex class.
Class for defining the abstract interface for complex coefficient classes.
LauRealImagCoeffSet & operator=(const LauRealImagCoeffSet &rhs)
Copy assignment operator (not implemented)
Class for defining the fit parameter objects.
Definition: LauParameter.hh:35
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0)
Create a clone of the coefficient set.
virtual void finaliseValues()
Make sure values are in &quot;standard&quot; ranges, e.g. phases should be between -pi and pi.
virtual ~LauRealImagCoeffSet()
Destructor.
virtual LauParameter acp()
Calculate the CP asymmetry.
virtual const LauComplex & particleCoeff()
Retrieve the complex coefficient for a particle.
Class for defining a complex coefficient using real and imaginary parts.
Class for defining a complex number.
Definition: LauComplex.hh:47
LauParameter * y_
The imaginary part.
virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar, Bool_t init)
Set the parameters based on the complex coefficients for particles and antiparticles.
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.