LauRealImagGammaCPCoeffSet.cc
Go to the documentation of this file.
32 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,
33 const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t xbarCPFixed, const Bool_t ybarCPFixed) :
46 acp_("ACP", (antiparticleCoeff_.abs2()-particleCoeff_.abs2())/(antiparticleCoeff_.abs2()+particleCoeff_.abs2()), -1.0, 1.0, xCPFixed&&yCPFixed&&xbarCPFixed&&ybarCPFixed)
50 LauRealImagGammaCPCoeffSet::LauRealImagGammaCPCoeffSet(const LauRealImagGammaCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
67 x_ = new LauParameter("X", rhs.x_->value(), minRealImagPart_, maxRealImagPart_, rhs.x_->fixed());
77 y_ = new LauParameter("Y", rhs.y_->value(), minRealImagPart_, maxRealImagPart_, rhs.y_->fixed());
90 xCP_ = new LauParameter("XCP", rhs.xCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xCP_->fixed());
95 yCP_ = new LauParameter("YCP", rhs.yCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.yCP_->fixed());
100 xbarCP_ = new LauParameter("XbarCP", rhs.xbarCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xbarCP_->fixed());
105 ybarCP_ = new LauParameter("YbarCP", rhs.ybarCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.ybarCP_->fixed());
127 std::cout << "INFO in LauRealImagGammaCPCoeffSet::printParValues : Component \"" << this->name() << "\" has ";
140 stream<<"Component & Real Part & Imaginary Part & Particle CP Real Part & Particle CP Imaginary Part & Antiparticle CP Real Part & Antiparticle CP Imaginary Part \\\\"<<std::endl;
239 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::setCoeffValues : Method not supported by this class - too many parameters" << std::endl;
272 LauAbsCoeffSet* LauRealImagGammaCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
275 if ( cloneOption == All || cloneOption == TieRealPart || cloneOption == TieImagPart || cloneOption == TieCPPars ) {
279 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:32 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:272 TRandom * zeroSeedRandom() Access the singleton random number generator with seed set from machine clock time (within +-1 sec)... Definition: LauRandom.cc:30 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:125 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:268 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauRealImagGammaCPCoeffSet.cc:144 File containing declaration of LauPrint class. LauParameter * ybarCP_ The imaginary CP part for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:155 Definition: LauAbsCoeffSet.hh:44 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauRealImagGammaCPCoeffSet.cc:221 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:39 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:34 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:237 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:229 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:113 static Double_t minRealImagPart_ Minimum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:266 File containing LauRandom namespace. 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:136 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:117 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:132 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauRealImagGammaCPCoeffSet.cc:176 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:210 Definition: LauAbsCoeffSet.hh:42 Definition: LauAbsCoeffSet.hh:43 Generated by 1.8.5 |