LauCartesianGammaCPCoeffSet.cc
Go to the documentation of this file.
31 LauCartesianGammaCPCoeffSet::LauCartesianGammaCPCoeffSet(const TString& compName, const Double_t x, const Double_t y, const Double_t xCP, const Double_t yCP, const Double_t deltaXCP, const Double_t deltaYCP,
32 const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t deltaXCPFixed, const Bool_t deltaYCPFixed, const Bool_t deltaXCPSecondStage, const Bool_t deltaYCPSecondStage) :
45 acp_("ACP", (antiparticleCoeff_.abs2()-particleCoeff_.abs2())/(antiparticleCoeff_.abs2()+particleCoeff_.abs2()), -1.0, 1.0, deltaXCPFixed&&deltaYCPFixed)
57 LauCartesianGammaCPCoeffSet::LauCartesianGammaCPCoeffSet(const LauCartesianGammaCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
74 x_ = new LauParameter("X", rhs.x_->value(), minRealImagPart_, maxRealImagPart_, rhs.x_->fixed());
84 y_ = new LauParameter("Y", rhs.y_->value(), minRealImagPart_, maxRealImagPart_, rhs.y_->fixed());
97 xCP_ = new LauParameter("XCP", rhs.xCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xCP_->fixed());
102 yCP_ = new LauParameter("YCP", rhs.yCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.yCP_->fixed());
107 deltaXCP_ = new LauParameter("DeltaXCP", rhs.deltaXCP_->value(), minDelta_, maxDelta_, rhs.deltaXCP_->fixed());
108 deltaYCP_ = new LauParameter("DeltaYCP", rhs.deltaYCP_->value(), minDelta_, maxDelta_, rhs.deltaYCP_->fixed());
142 std::cout<<"INFO in LauCartesianGammaCPCoeffSet::printParValues : Component \""<<this->name()<<"\" has ";
155 stream<<"Component & Real Part & Imaginary Part & Real CP Part & Imaginary CP Part & $\\Delta$ Real CP Part & $\\Delta$ Imaginary CP Part \\\\"<<std::endl;
239 cpPart_.setRealImagPart( 1.0+xCP_->unblindValue()+deltaXCP_->unblindValue(), yCP_->unblindValue()+deltaYCP_->unblindValue() );
247 cpAntiPart_.setRealImagPart( 1.0+xCP_->unblindValue()-deltaXCP_->unblindValue(), yCP_->unblindValue()-deltaYCP_->unblindValue() );
252 void LauCartesianGammaCPCoeffSet::setCoeffValues( const LauComplex&, const LauComplex&, Bool_t )
254 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::setCoeffValues : Method not supported by this class - too many parameters" << std::endl;
265 const LauComplex cpPart( 1.0+xCP_->value()+deltaXCP_->value(), yCP_->value()+deltaYCP_->value() );
266 const LauComplex cpAntiPart( 1.0+xCP_->value()-deltaXCP_->value(), yCP_->value()-deltaYCP_->value() );
287 LauAbsCoeffSet* LauCartesianGammaCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
290 if ( cloneOption == All || cloneOption == TieRealPart || cloneOption == TieImagPart || cloneOption == TieCPPars ) {
294 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::createClone : Invalid clone option" << std::endl;
virtual LauParameter acp() Calculate the CP asymmetry. Definition: LauCartesianGammaCPCoeffSet.cc:257 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:214 LauComplex cpAntiPart_ The CP part of the complex coefficient for the antiparticle. Definition: LauCartesianGammaCPCoeffSet.hh:163 static Double_t minDelta_ Minimum allowed value of CP-violating real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:286 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauCartesianGammaCPCoeffSet.cc:159 virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauCartesianGammaCPCoeffSet.cc:287 Class for defining a complex coefficient using the Cartesian gamma CP convention. ... Definition: LauCartesianGammaCPCoeffSet.hh:36 ClassImp(LauAbsCoeffSet) virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauCartesianGammaCPCoeffSet.cc:151 LauComplex cpPart_ The CP part of the complex coefficient for the particle. Definition: LauCartesianGammaCPCoeffSet.hh:161 static Double_t maxRealImagPart_ Maximum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:284 static Double_t maxDelta_ Maximum allowed value of CP-violating real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:288 File containing declaration of LauPrint class. virtual std::vector< LauParameter * > getParameters() Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit... Definition: LauCartesianGammaCPCoeffSet.cc:128 Definition: LauAbsCoeffSet.hh:45 Double_t abs2() const Obtain the square of the absolute value of the complex number. Definition: LauComplex.hh:232 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauCartesianGammaCPCoeffSet.cc:191 LauComplex particleCoeff_ The particle complex coefficient. Definition: LauCartesianGammaCPCoeffSet.hh:166 virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauCartesianGammaCPCoeffSet.cc:244 File containing declaration of LauParameter class. Definition: LauAbsCoeffSet.hh:40 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauCartesianGammaCPCoeffSet.cc:236 Bool_t secondStage() const Check whether the parameter should be floated only in the second stage of a two stage fit... Definition: LauParameter.hh:220 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:35 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 void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauCartesianGammaCPCoeffSet.cc:225 static Double_t minRealImagPart_ Minimum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:282 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: LauCartesianGammaCPCoeffSet.cc:252 LauParameter * deltaYCP_ The asymmetric CP imaginary part. Definition: LauCartesianGammaCPCoeffSet.hh:156 void setRealImagPart(Double_t realpart, Double_t imagpart) Set both real and imaginary part. Definition: LauComplex.hh:314 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 File containing declaration of LauCartesianGammaCPCoeffSet class. LauCartesianGammaCPCoeffSet(const TString &compName, const Double_t x, const Double_t y, const Double_t xCP, const Double_t yCP, const Double_t deltaXCP, const Double_t deltaYCP, const Bool_t xFixed, const Bool_t yFixed, const Bool_t xCPFixed, const Bool_t yCPFixed, const Bool_t deltaXCPFixed, const Bool_t deltaYCPFixed, const Bool_t deltaXCPSecondStage=kFALSE, const Bool_t deltaYCPSecondStage=kFALSE) Constructor. Definition: LauCartesianGammaCPCoeffSet.cc:31 virtual void printParValues() const Print the current values of the parameters. Definition: LauCartesianGammaCPCoeffSet.cc:140 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:133 Class for blinding and unblinding a number based on a blinding string. Definition: LauBlind.hh:28 Definition: LauAbsCoeffSet.hh:43 LauComplex nonCPPart_ The nonCP part of the complex coefficient. Definition: LauCartesianGammaCPCoeffSet.hh:159 Definition: LauAbsCoeffSet.hh:44 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauCartesianGammaCPCoeffSet.hh:168 Generated by 1.8.5 |