LauRealImagGammaCPCoeffSet.cc
Go to the documentation of this file.
31 LauRealImagGammaCPCoeffSet::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,
32 const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t xbarCPFixed, const Bool_t ybarCPFixed) :
45 acp_("ACP", (antiparticleCoeff_.abs2()-particleCoeff_.abs2())/(antiparticleCoeff_.abs2()+particleCoeff_.abs2()), -1.0, 1.0, xCPFixed&&yCPFixed&&xbarCPFixed&&ybarCPFixed)
49 LauRealImagGammaCPCoeffSet::LauRealImagGammaCPCoeffSet(const LauRealImagGammaCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
66 x_ = new LauParameter("X", rhs.x_->value(), minRealImagPart_, maxRealImagPart_, rhs.x_->fixed());
76 y_ = new LauParameter("Y", rhs.y_->value(), minRealImagPart_, maxRealImagPart_, rhs.y_->fixed());
89 xCP_ = new LauParameter("XCP", rhs.xCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xCP_->fixed());
94 yCP_ = new LauParameter("YCP", rhs.yCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.yCP_->fixed());
99 xbarCP_ = new LauParameter("XbarCP", rhs.xbarCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xbarCP_->fixed());
104 ybarCP_ = new LauParameter("YbarCP", rhs.ybarCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.ybarCP_->fixed());
126 std::cout << "INFO in LauRealImagGammaCPCoeffSet::printParValues : Component \"" << this->name() << "\" has ";
139 stream<<"Component & Real Part & Imaginary Part & Particle CP Real Part & Particle CP Imaginary Part & Antiparticle CP Real Part & Antiparticle CP Imaginary Part \\\\"<<std::endl;
238 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::setCoeffValues : Method not supported by this class - too many parameters" << std::endl;
271 LauAbsCoeffSet* LauRealImagGammaCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
274 if ( cloneOption == All || cloneOption == TieRealPart || cloneOption == TieImagPart || cloneOption == TieCPPars ) {
278 std::cerr << "ERROR in LauRealImagGammaCPCoeffSet::createClone : Invalid clone option" << std::endl;
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. Definition: LauRealImagGammaCPCoeffSet.cc:31 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:214 virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauRealImagGammaCPCoeffSet.cc:271 LauParameter * xbarCP_ The real CP part for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:153 LauComplex cpAntiPart_ The CP part of the complex coefficient for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:162 ClassImp(LauAbsCoeffSet) virtual void printParValues() const Print the current values of the parameters. Definition: LauRealImagGammaCPCoeffSet.cc:124 Class for defining a complex coefficient using a Cartesian nonCP part multiplied by a simple Cartesia... Definition: LauRealImagGammaCPCoeffSet.hh:38 static Double_t maxRealImagPart_ Maximum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:284 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauRealImagGammaCPCoeffSet.cc:143 File containing declaration of LauPrint class. LauParameter * ybarCP_ The imaginary CP part for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:155 Definition: LauAbsCoeffSet.hh:45 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauRealImagGammaCPCoeffSet.cc:220 LauComplex particleCoeff_ The particle complex coefficient. Definition: LauRealImagGammaCPCoeffSet.hh:165 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauRealImagGammaCPCoeffSet.hh:167 Double_t abs2() const Obtain the square of the absolute value of the complex number. Definition: LauComplex.hh:232 LauComplex cpPart_ The CP part of the complex coefficient for the particle. Definition: LauRealImagGammaCPCoeffSet.hh:160 LauParameter * yCP_ The imaginary CP part for the particle. Definition: LauRealImagGammaCPCoeffSet.hh:151 File containing declaration of LauParameter class. Definition: LauAbsCoeffSet.hh:40 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:35 virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar, Bool_t init) Set the parameters based on the complex coefficients for particles and antiparticles. Definition: LauRealImagGammaCPCoeffSet.cc:236 File containing declaration of LauRealImagGammaCPCoeffSet class. void valueAndErrors(Double_t newValue, Double_t newError, Double_t newNegError=0.0, Double_t newPosError=0.0) Set the value and errors on the parameter. Definition: LauParameter.cc:396 virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauRealImagGammaCPCoeffSet.cc:228 virtual std::vector< LauParameter * > getParameters() Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit... Definition: LauRealImagGammaCPCoeffSet.cc:112 static Double_t minRealImagPart_ Minimum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:282 void setRealImagPart(Double_t realpart, Double_t imagpart) Set both real and imaginary part. Definition: LauComplex.hh:314 virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauRealImagGammaCPCoeffSet.cc:135 void blindParameter(const TString &blindingString, const Double_t width) Blind the parameter. Definition: LauParameter.cc:528 File containing LauConstants namespace. void printFormat(std::ostream &stream, Double_t value) const Method to choose the printing format to a specified level of precision. Definition: LauPrint.cc:32 LauParameter * createClone(Double_t constFactor=1.0) Method to create a clone from the parent parameter using the copy constructor. Definition: LauParameter.cc:613 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:118 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:133 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauRealImagGammaCPCoeffSet.cc:175 Class for blinding and unblinding a number based on a blinding string. Definition: LauBlind.hh:28 LauComplex nonCPPart_ The nonCP part of the complex coefficient. Definition: LauRealImagGammaCPCoeffSet.hh:158 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauRealImagGammaCPCoeffSet.cc:209 Definition: LauAbsCoeffSet.hh:43 Definition: LauAbsCoeffSet.hh:44 Generated by 1.8.5 |