LauCartesianGammaCPCoeffSet.cc
Go to the documentation of this file.
45 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,
46 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) :
59 acp_("ACP", (antiparticleCoeff_.abs2()-particleCoeff_.abs2())/(antiparticleCoeff_.abs2()+particleCoeff_.abs2()), -1.0, 1.0, deltaXCPFixed&&deltaYCPFixed)
71 LauCartesianGammaCPCoeffSet::LauCartesianGammaCPCoeffSet(const LauCartesianGammaCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
88 x_ = new LauParameter("X", rhs.x_->value(), minRealImagPart_, maxRealImagPart_, rhs.x_->fixed());
98 y_ = new LauParameter("Y", rhs.y_->value(), minRealImagPart_, maxRealImagPart_, rhs.y_->fixed());
111 xCP_ = new LauParameter("XCP", rhs.xCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.xCP_->fixed());
116 yCP_ = new LauParameter("YCP", rhs.yCP_->value(), minRealImagPart_, maxRealImagPart_, rhs.yCP_->fixed());
121 deltaXCP_ = new LauParameter("DeltaXCP", rhs.deltaXCP_->value(), minDelta_, maxDelta_, rhs.deltaXCP_->fixed());
122 deltaYCP_ = new LauParameter("DeltaYCP", rhs.deltaYCP_->value(), minDelta_, maxDelta_, rhs.deltaYCP_->fixed());
156 std::cout<<"INFO in LauCartesianGammaCPCoeffSet::printParValues : Component \""<<this->name()<<"\" has ";
169 stream<<"Component & Real Part & Imaginary Part & Real CP Part & Imaginary CP Part & $\\Delta$ Real CP Part & $\\Delta$ Imaginary CP Part \\\\"<<std::endl;
253 cpPart_.setRealImagPart( 1.0+xCP_->unblindValue()+deltaXCP_->unblindValue(), yCP_->unblindValue()+deltaYCP_->unblindValue() );
261 cpAntiPart_.setRealImagPart( 1.0+xCP_->unblindValue()-deltaXCP_->unblindValue(), yCP_->unblindValue()-deltaYCP_->unblindValue() );
266 void LauCartesianGammaCPCoeffSet::setCoeffValues( const LauComplex&, const LauComplex&, Bool_t )
268 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::setCoeffValues : Method not supported by this class - too many parameters" << std::endl;
279 const LauComplex cpPart( 1.0+xCP_->value()+deltaXCP_->value(), yCP_->value()+deltaYCP_->value() );
280 const LauComplex cpAntiPart( 1.0+xCP_->value()-deltaXCP_->value(), yCP_->value()-deltaYCP_->value() );
301 LauAbsCoeffSet* LauCartesianGammaCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
304 if ( cloneOption == All || cloneOption == TieRealPart || cloneOption == TieImagPart || cloneOption == TieCPPars ) {
308 std::cerr << "ERROR in LauCartesianGammaCPCoeffSet::createClone : Invalid clone option" << std::endl;
virtual LauParameter acp() Calculate the CP asymmetry. Definition: LauCartesianGammaCPCoeffSet.cc:271 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:228 LauComplex cpAntiPart_ The CP part of the complex coefficient for the antiparticle. Definition: LauCartesianGammaCPCoeffSet.hh:177 static Double_t minDelta_ Minimum allowed value of CP-violating real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:300 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauCartesianGammaCPCoeffSet.cc:173 virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauCartesianGammaCPCoeffSet.cc:301 Class for defining a complex coefficient using the Cartesian gamma CP convention. ... Definition: LauCartesianGammaCPCoeffSet.hh:50 ClassImp(LauAbsCoeffSet) virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauCartesianGammaCPCoeffSet.cc:165 LauComplex cpPart_ The CP part of the complex coefficient for the particle. Definition: LauCartesianGammaCPCoeffSet.hh:175 static Double_t maxRealImagPart_ Maximum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:298 static Double_t maxDelta_ Maximum allowed value of CP-violating real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:302 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:142 Definition: LauAbsCoeffSet.hh:59 Double_t abs2() const Obtain the square of the absolute value of the complex number. Definition: LauComplex.hh:246 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauCartesianGammaCPCoeffSet.cc:205 LauComplex particleCoeff_ The particle complex coefficient. Definition: LauCartesianGammaCPCoeffSet.hh:180 virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauCartesianGammaCPCoeffSet.cc:258 File containing declaration of LauParameter class. Definition: LauAbsCoeffSet.hh:54 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauCartesianGammaCPCoeffSet.cc:250 Bool_t secondStage() const Check whether the parameter should be floated only in the second stage of a two stage fit... Definition: LauParameter.hh:234 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:49 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 void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauCartesianGammaCPCoeffSet.cc:239 static Double_t minRealImagPart_ Minimum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:296 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:266 LauParameter * deltaYCP_ The asymmetric CP imaginary part. Definition: LauCartesianGammaCPCoeffSet.hh:170 void setRealImagPart(Double_t realpart, Double_t imagpart) Set both real and imaginary part. Definition: LauComplex.hh:328 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 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:45 virtual void printParValues() const Print the current values of the parameters. Definition: LauCartesianGammaCPCoeffSet.cc:154 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:147 Class for blinding and unblinding a number based on a blinding string. Definition: LauBlind.hh:42 Definition: LauAbsCoeffSet.hh:57 LauComplex nonCPPart_ The nonCP part of the complex coefficient. Definition: LauCartesianGammaCPCoeffSet.hh:173 Definition: LauAbsCoeffSet.hh:58 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauCartesianGammaCPCoeffSet.hh:182 Generated by 1.8.5 |