LauCartesianCPCoeffSet.cc
Go to the documentation of this file.
31 LauCartesianCPCoeffSet::LauCartesianCPCoeffSet(const TString& compName, Double_t x, Double_t y, Double_t deltaX, Double_t deltaY,
32 Bool_t xFixed, Bool_t yFixed, Bool_t deltaXFixed, Bool_t deltaYFixed, Bool_t deltaXSecondStage, Bool_t deltaYSecondStage) :
40 acp_("ACP", -2.0*(x*deltaX + y*deltaY)/(x*x + deltaX*deltaX + y*y + deltaY*deltaY), -1.0, 1.0, deltaXFixed&&deltaYFixed)
52 LauCartesianCPCoeffSet::LauCartesianCPCoeffSet(const LauCartesianCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
64 x_ = new LauParameter("X", rhs.x_->value(), minRealImagPart_, maxRealImagPart_, rhs.x_->fixed());
74 y_ = new LauParameter("Y", rhs.y_->value(), minRealImagPart_, maxRealImagPart_, rhs.y_->fixed());
85 deltaX_ = new LauParameter("DeltaX", rhs.deltaX_->value(), minDelta_, maxDelta_, rhs.deltaX_->fixed());
86 deltaY_ = new LauParameter("DeltaY", rhs.deltaY_->value(), minDelta_, maxDelta_, rhs.deltaY_->fixed());
118 std::cout<<"INFO in LauCartesianCPCoeffSet::printParValues : Component \""<<this->name()<<"\" has ";
129 stream<<"Component & Real Part & Imaginary Part & $\\Delta$ Real Part & $\\Delta$ Imaginary Part \\\\"<<std::endl;
192 particleCoeff_.setRealImagPart( x_->unblindValue()+deltaX_->unblindValue(), y_->unblindValue()+deltaY_->unblindValue() );
198 antiparticleCoeff_.setRealImagPart( x_->unblindValue()-deltaX_->unblindValue(), y_->unblindValue()-deltaY_->unblindValue() );
202 void LauCartesianCPCoeffSet::setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init )
239 Double_t denom = x_->value()*x_->value() + deltaX_->value()*deltaX_->value() + y_->value()*y_->value() + deltaY_->value()*deltaY_->value();
255 LauAbsCoeffSet* LauCartesianCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
258 if ( cloneOption == All || cloneOption == TieRealPart || cloneOption == TieImagPart || cloneOption == TieCPPars ) {
262 std::cerr << "ERROR in LauCartesianCPCoeffSet::createClone : Invalid clone option" << std::endl;
Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:214 virtual void printParValues() const Print the current values of the parameters. Definition: LauCartesianCPCoeffSet.cc:116 static Double_t minDelta_ Minimum allowed value of CP-violating real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:286 LauCartesianCPCoeffSet(const TString &compName, Double_t x, Double_t y, Double_t deltaX, Double_t deltaY, Bool_t xFixed, Bool_t yFixed, Bool_t deltaXFixed, Bool_t deltaYFixed, Bool_t deltaXSecondStage=kFALSE, Bool_t deltaYSecondStage=kFALSE) Constructor. Definition: LauCartesianCPCoeffSet.cc:31 ClassImp(LauAbsCoeffSet) 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: LauCartesianCPCoeffSet.cc:202 static Double_t maxRealImagPart_ Maximum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:284 LauComplex particleCoeff_ The particle complex coefficient. Definition: LauCartesianCPCoeffSet.hh:149 static Double_t maxDelta_ Maximum allowed value of CP-violating real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:288 File containing declaration of LauPrint class. Definition: LauAbsCoeffSet.hh:45 virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauCartesianCPCoeffSet.cc:196 virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauCartesianCPCoeffSet.cc:255 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauCartesianCPCoeffSet.cc:133 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauCartesianCPCoeffSet.cc:190 File containing declaration of LauParameter class. Definition: LauAbsCoeffSet.hh:40 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 static Double_t minRealImagPart_ Minimum allowed value of real/imaginary part parameters. Definition: LauAbsCoeffSet.hh:282 File containing declaration of LauCartesianCPCoeffSet class. 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 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauCartesianCPCoeffSet.cc:181 virtual std::vector< LauParameter * > getParameters() Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit... Definition: LauCartesianCPCoeffSet.cc:106 virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauCartesianCPCoeffSet.cc:125 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 Class for defining a complex coefficient using the Cartesian CP convention. Definition: LauCartesianCPCoeffSet.hh:36 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauCartesianCPCoeffSet.hh:151 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauCartesianCPCoeffSet.cc:157 Definition: LauAbsCoeffSet.hh:44 Generated by 1.8.5 |