LauCartesianCPCoeffSet.cc
Go to the documentation of this file.
35 LauCartesianCPCoeffSet::LauCartesianCPCoeffSet(const TString& compName, Double_t x, Double_t y, Double_t deltaX, Double_t deltaY,
36 Bool_t xFixed, Bool_t yFixed, Bool_t deltaXFixed, Bool_t deltaYFixed, Bool_t deltaXSecondStage, Bool_t deltaYSecondStage) :
48 acp_("ACP", -2.0*(x*deltaX + y*deltaY)/(x*x + deltaX*deltaX + y*y + deltaY*deltaY), -1.0, 1.0, deltaXFixed&&deltaYFixed)
51 cout<<"Set component \""<<this->name()<<"\" to have x = "<<x_->value()<<",\ty = "<<y_->value()<<",\t";
64 LauCartesianCPCoeffSet::LauCartesianCPCoeffSet(const LauCartesianCPCoeffSet& rhs, Double_t constFactor) : LauAbsCoeffSet(rhs.name())
112 stream<<"Component & Real Part & Imaginary Part & $\\Delta$ Real Part & $\\Delta$ Imaginary Part \\\\"<<endl;
181 antiparticleCoeff_.setRealImagPart( x_->value()-deltaX_->value(), y_->value()-deltaY_->value() );
185 void LauCartesianCPCoeffSet::setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar )
205 Double_t denom = x_->value()*x_->value() + deltaX_->value()*deltaX_->value() + y_->value()*y_->value() + deltaY_->value()*deltaY_->value();
221 LauAbsCoeffSet* LauCartesianCPCoeffSet::createClone(const TString& newName, Double_t constFactor)
Double_t maxDeltaPar_ The maximum allowed value for the asymmetric parts. Definition: LauCartesianCPCoeffSet.hh:140 Double_t maxPar_ The maximum allowed value for the average parts. Definition: LauCartesianCPCoeffSet.hh:136 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:192 TRandom * zeroSeedRandom() Access the singleton random number generator with seed set from machine clock time (within +-1 sec)... Definition: LauRandom.cc:30 Double_t minDeltaPar_ The minimum allowed value for the asymmetric parts. Definition: LauCartesianCPCoeffSet.hh:138 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:35 virtual TString baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:117 LauComplex particleCoeff_ The particle complex coefficient. Definition: LauCartesianCPCoeffSet.hh:154 File containing declaration of LauPrint class. virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauCartesianCPCoeffSet.cc:179 Double_t minPar_ The minimum allowed value for the average parts. Definition: LauCartesianCPCoeffSet.hh:134 LauCartesianCPCoeffSet & operator=(const LauCartesianCPCoeffSet &rhs) Copy assignment operator. Definition: LauCartesianCPCoeffSet.cc:79 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauCartesianCPCoeffSet.cc:173 File containing declaration of LauParameter class. Bool_t secondStage() const Check whether the parameter should be floated only in the second stage of a two stage fit... Definition: LauParameter.hh:204 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:34 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:310 File containing declaration of LauCartesianCPCoeffSet class. virtual void printTableRow(std::ostream &stream) Print the parameters of the complex coefficient as a row in the results table. Definition: LauCartesianCPCoeffSet.cc:116 File containing LauRandom namespace. void setRealImagPart(Double_t realpart, Double_t imagpart) Set both real and imaginary part. Definition: LauComplex.hh:311 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 virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar) Set the parameters based on the complex coefficients for particles and antiparticles. Definition: LauCartesianCPCoeffSet.cc:185 virtual void printTableHeading(std::ostream &stream) Print the column headings for a results table. Definition: LauCartesianCPCoeffSet.cc:108 LauParameter * createClone(Double_t constFactor=1.0) Method to create a clone from the parent parameter using the copy constructor. Definition: LauParameter.cc:498 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:102 virtual LauAbsCoeffSet * createClone(const TString &newName, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauCartesianCPCoeffSet.cc:221 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauCartesianCPCoeffSet.cc:164 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:98 Class for defining a complex coefficient using the Cartesian CP convention. Definition: LauCartesianCPCoeffSet.hh:36 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauCartesianCPCoeffSet.hh:156 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauCartesianCPCoeffSet.cc:140 Generated by 1.8.5 |