laura is hosted by Hepforge, IPPP Durham
Laura++  v1r0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauMagPhaseCoeffSet.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_MAGPHASE_COEFF_SET
23 #define LAU_MAGPHASE_COEFF_SET
24 
25 #include <iosfwd>
26 #include <vector>
27 
28 #include "Rtypes.h"
29 
30 #include "LauAbsCoeffSet.hh"
31 #include "LauParameter.hh"
32 
33 class LauComplex;
34 
35 
37 
38  public:
40 
47  LauMagPhaseCoeffSet(const TString& compName, Double_t magnitude, Double_t phase, Bool_t magFixed, Bool_t phaseFixed);
48 
51 
53 
56  virtual std::vector<LauParameter*> getParameters();
57 
59 
62  virtual void printTableHeading(std::ostream& stream);
63 
65 
68  virtual void printTableRow(std::ostream& stream);
69 
71  virtual void randomiseInitValues();
72 
74  virtual void finaliseValues();
75 
77 
80  virtual LauComplex particleCoeff();
81 
83 
86  virtual LauComplex antiparticleCoeff();
87 
89 
94  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar );
95 
97 
100  virtual LauParameter acp();
101 
103 
108  virtual LauAbsCoeffSet* createClone(const TString& newName, Double_t constFactor = 1.0);
109 
110  protected:
112 
117  LauMagPhaseCoeffSet(const LauMagPhaseCoeffSet& rhs, Double_t constFactor = 1.0);
118 
120 
125 
126 
127  private:
129  Double_t minMag_;
131  Double_t maxMag_;
133  Double_t minPhase_;
135  Double_t maxPhase_;
136 
137  // the actual fit parameters
138  // (need to be pointers so they can be cloned)
143 
144  ClassDef(LauMagPhaseCoeffSet, 0)
145 };
146 
147 #endif
LauParameter * magnitude_
The magnitude.
virtual void finaliseValues()
Make sure values are in &quot;standard&quot; ranges, e.g. phases should be between -pi and pi.
Double_t maxPhase_
The maximum allowed value for phases.
virtual LauComplex particleCoeff()
Retrieve the complex coefficient for a particle.
File containing declaration of LauAbsCoeffSet class.
virtual LauAbsCoeffSet * createClone(const TString &newName, Double_t constFactor=1.0)
Create a clone of the coefficient set.
LauMagPhaseCoeffSet(const TString &compName, Double_t magnitude, Double_t phase, Bool_t magFixed, Bool_t phaseFixed)
Constructor.
Double_t minMag_
The minimum allowed value for magnitudes.
virtual LauParameter acp()
Calculate the CP asymmetry.
virtual void printTableRow(std::ostream &stream)
Print the parameters of the complex coefficient as a row in the results table.
File containing declaration of LauParameter class.
Double_t maxMag_
The maximum allowed value for magnitudes.
Class for defining the abstract interface for complex coefficient classes.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:31
virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar)
Set the parameters based on the complex coefficients for particles and antiparticles.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
virtual LauComplex antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
virtual ~LauMagPhaseCoeffSet()
Destructor.
LauParameter * phase_
The phase.
virtual void printTableHeading(std::ostream &stream)
Print the column headings for a results table.
Class for defining a complex number.
Definition: LauComplex.hh:47
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
LauMagPhaseCoeffSet & operator=(const LauMagPhaseCoeffSet &rhs)
Copy assignment operator.
Double_t minPhase_
The minimum allowed value for phases.
Class for defining a complex coefficient using a magnitude and a phase.