laura is hosted by Hepforge, IPPP Durham
Laura++  v3r4
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauRealImagGammaCPCoeffSet.hh
Go to the documentation of this file.
1 
2 /*
3 Copyright 2014 University of Warwick
4 
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8 
9  http://www.apache.org/licenses/LICENSE-2.0
10 
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 */
17 
18 /*
19 Laura++ package authors:
20 John Back
21 Paul Harrison
22 Thomas Latham
23 */
24 
39 #ifndef LAU_REALIMAGGAMMACP_COEFF_SET
40 #define LAU_REALIMAGGAMMACP_COEFF_SET
41 
42 #include <iosfwd>
43 #include <vector>
44 
45 #include "Rtypes.h"
46 
47 #include "LauAbsCoeffSet.hh"
48 #include "LauComplex.hh"
49 #include "LauParameter.hh"
50 
51 
53 
54  public:
56 
71  LauRealImagGammaCPCoeffSet(const TString& compName, const Double_t x, const Double_t y, const Double_t xCP, const Double_t yCP, const Double_t xbarCP, const Double_t ybarCP,
72  const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t xbarCPFixed, const Bool_t ybarCPFixed);
73 
76 
78 
81  virtual std::vector<LauParameter*> getParameters();
82 
84  virtual void printParValues() const;
85 
87 
90  virtual void printTableHeading(std::ostream& stream) const;
91 
93 
96  virtual void printTableRow(std::ostream& stream) const;
97 
99  virtual void randomiseInitValues();
100 
102  virtual void finaliseValues();
103 
105 
108  virtual const LauComplex& particleCoeff();
109 
111 
114  virtual const LauComplex& antiparticleCoeff();
115 
117 
123  virtual void setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init );
124 
126 
129  virtual LauParameter acp();
130 
132 
138  virtual LauAbsCoeffSet* createClone(const TString& newName, CloneOption cloneOption = All, Double_t constFactor = 1.0);
139 
140  private:
142 
148  LauRealImagGammaCPCoeffSet(const LauRealImagGammaCPCoeffSet& rhs, CloneOption cloneOption = All, Double_t constFactor = 1.0);
149 
151 
155 
156  // the actual fit parameters
157  // (need to be pointers so they can be cloned)
170 
177 
182 
185 
186  ClassDef(LauRealImagGammaCPCoeffSet, 0)
187 };
188 
189 #endif
LauRealImagGammaCPCoeffSet(const TString &compName, const Double_t x, const Double_t y, const Double_t xCP, const Double_t yCP, const Double_t xbarCP, const Double_t ybarCP, const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t xbarCPFixed, const Bool_t ybarCPFixed)
Constructor.
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0)
Create a clone of the coefficient set.
LauParameter * xbarCP_
The real CP part for the antiparticle.
LauComplex cpAntiPart_
The CP part of the complex coefficient for the antiparticle.
virtual void printParValues() const
Print the current values of the parameters.
Class for defining a complex coefficient using a Cartesian nonCP part multiplied by a simple Cartesia...
File containing declaration of LauAbsCoeffSet class.
virtual void printTableRow(std::ostream &stream) const
Print the parameters of the complex coefficient as a row in the results table.
virtual ~LauRealImagGammaCPCoeffSet()
Destructor.
LauRealImagGammaCPCoeffSet & operator=(const LauRealImagGammaCPCoeffSet &rhs)
Copy assignment operator (not implemented)
LauParameter * ybarCP_
The imaginary CP part for the antiparticle.
virtual const LauComplex & particleCoeff()
Retrieve the complex coefficient for a particle.
LauComplex particleCoeff_
The particle complex coefficient.
LauComplex antiparticleCoeff_
The antiparticle complex coefficient.
CloneOption
Options for cloning operation.
LauComplex cpPart_
The CP part of the complex coefficient for the particle.
LauParameter * yCP_
The imaginary CP part for the particle.
LauParameter * xCP_
The real CP part for the particle.
File containing declaration of LauParameter class.
File containing declaration of LauComplex class.
Class for defining the abstract interface for complex coefficient classes.
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 fit parameter objects.
Definition: LauParameter.hh:49
virtual const LauComplex & antiparticleCoeff()
Retrieve the complex coefficient for an antiparticle.
virtual std::vector< LauParameter * > getParameters()
Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit...
LauParameter * y_
The imaginary nonCP part.
LauParameter acp_
The CP asymmetry.
virtual void printTableHeading(std::ostream &stream) const
Print the column headings for a results table.
Class for defining a complex number.
Definition: LauComplex.hh:61
LauParameter * x_
The real nonCP part.
virtual void randomiseInitValues()
Randomise the starting values of the parameters for a fit.
LauComplex nonCPPart_
The nonCP part of the complex coefficient.
virtual void finaliseValues()
Make sure values are in &quot;standard&quot; ranges, e.g. phases should be between -pi and pi.
virtual LauParameter acp()
Calculate the CP asymmetry.