LauRealImagGammaCPCoeffSet.cc
Go to the documentation of this file.
45 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,
46 const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t xbarCPFixed, const Bool_t ybarCPFixed) :
59 acp_("ACP", (antiparticleCoeff_.abs2()-particleCoeff_.abs2())/(antiparticleCoeff_.abs2()+particleCoeff_.abs2()), -1.0, 1.0, xCPFixed&&yCPFixed&&xbarCPFixed&&ybarCPFixed)
63 LauRealImagGammaCPCoeffSet::LauRealImagGammaCPCoeffSet(const LauRealImagGammaCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
80 x_ = new LauParameter("X", rhs.x_->value(), minRealImagPart_, maxRealImagPart_, rhs.x_->fixed());
90 y_ = new LauParameter("Y", rhs.y_->value(), minRealImagPart_, maxRealImagPart_, rhs.y_->fixed());
103 xCP_ = new LauParameter("XCP", rhs.xCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xCP_->fixed());
108 yCP_ = new LauParameter("YCP", rhs.yCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.yCP_->fixed());
113 xbarCP_ = new LauParameter("XbarCP", rhs.xbarCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xbarCP_->fixed());
118 ybarCP_ = new LauParameter("YbarCP", rhs.ybarCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.ybarCP_->fixed());
140 std::cout << "INFO in LauRealImagGammaCPCoeffSet::printParValues : Component \"" << this->name() << "\" has ";
153 stream<<"Component & Real Part & Imaginary Part & Particle CP Real Part & Particle CP Imaginary Part & Antiparticle CP Real Part & Antiparticle CP Imaginary Part \\\\"<<std::endl;
252 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::setCoeffValues : Method not supported by this class - too many parameters" << std::endl;
285 LauAbsCoeffSet* LauRealImagGammaCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
288 if ( cloneOption == All || cloneOption == TieRealPart || cloneOption == TieImagPart || cloneOption == TieCPPars ) {
292 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:45 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:228 virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauRealImagGammaCPCoeffSet.cc:285 LauParameter * xbarCP_ The real CP part for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:167 LauComplex cpAntiPart_ The CP part of the complex coefficient for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:176 ClassImp(LauAbsCoeffSet) virtual void printParValues() const Print the current values of the parameters. Definition: LauRealImagGammaCPCoeffSet.cc:138 Class for defining a complex coefficient using a Cartesian nonCP part multiplied by a simple Cartesia... Definition: LauRealImagGammaCPCoeffSet.hh:52 static Double_t maxRealImagPart_ Maximum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:298 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauRealImagGammaCPCoeffSet.cc:157 File containing declaration of LauPrint class. LauParameter * ybarCP_ The imaginary CP part for the antiparticle. Definition: LauRealImagGammaCPCoeffSet.hh:169 Definition: LauAbsCoeffSet.hh:59 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauRealImagGammaCPCoeffSet.cc:234 LauComplex particleCoeff_ The particle complex coefficient. Definition: LauRealImagGammaCPCoeffSet.hh:179 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauRealImagGammaCPCoeffSet.hh:181 Double_t abs2() const Obtain the square of the absolute value of the complex number. Definition: LauComplex.hh:246 LauComplex cpPart_ The CP part of the complex coefficient for the particle. Definition: LauRealImagGammaCPCoeffSet.hh:174 LauParameter * yCP_ The imaginary CP part for the particle. Definition: LauRealImagGammaCPCoeffSet.hh:165 File containing declaration of LauParameter class. Definition: LauAbsCoeffSet.hh:54 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:49 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:250 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:410 virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauRealImagGammaCPCoeffSet.cc:242 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:126 static Double_t minRealImagPart_ Minimum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:296 void setRealImagPart(Double_t realpart, Double_t imagpart) Set both real and imaginary part. Definition: LauComplex.hh:328 virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauRealImagGammaCPCoeffSet.cc:149 void blindParameter(const TString &blindingString, const Double_t width) Blind the parameter. Definition: LauParameter.cc:542 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:46 LauParameter * createClone(Double_t constFactor=1.0) Method to create a clone from the parent parameter using the copy constructor. Definition: LauParameter.cc:627 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:132 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:147 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauRealImagGammaCPCoeffSet.cc:189 Class for blinding and unblinding a number based on a blinding string. Definition: LauBlind.hh:42 LauComplex nonCPPart_ The nonCP part of the complex coefficient. Definition: LauRealImagGammaCPCoeffSet.hh:172 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauRealImagGammaCPCoeffSet.cc:223 Definition: LauAbsCoeffSet.hh:57 Definition: LauAbsCoeffSet.hh:58 Generated by 1.8.5 |