LauMagPhaseCPCoeffSet.cc
Go to the documentation of this file.
45 LauMagPhaseCPCoeffSet::LauMagPhaseCPCoeffSet(const TString& compName, Double_t mag, Double_t phase, Double_t magBar, Double_t phaseBar,
58 LauMagPhaseCPCoeffSet::LauMagPhaseCPCoeffSet(const LauMagPhaseCPCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
71 mag_ = new LauParameter("Mag", rhs.mag_->value(), minMagnitude_, maxMagnitude_, rhs.mag_->fixed());
76 magBar_ = new LauParameter("MagBar", rhs.magBar_->value(), minMagnitude_, maxMagnitude_, rhs.magBar_->fixed());
87 phase_ = new LauParameter("Phase", rhs.phase_->value(), minPhase_, maxPhase_, rhs.phase_->fixed());
92 phaseBar_ = new LauParameter("PhaseBar", rhs.phaseBar_->value(), minPhase_, maxPhase_, rhs.phaseBar_->fixed());
112 std::cout<<"INFO in LauMagPhaseCPCoeffSet::printParValues : Component \""<<this->name()<<"\" has ";
160 Double_t value = LauAbsCoeffSet::getRandomiser()->Rndm()*LauConstants::twoPi - LauConstants::pi;
170 Double_t value = LauAbsCoeffSet::getRandomiser()->Rndm()*LauConstants::twoPi - LauConstants::pi;
252 particleCoeff_.setRealImagPart( mag_->unblindValue()*TMath::Cos(phase_->unblindValue()), mag_->unblindValue()*TMath::Sin(phase_->unblindValue()) );
258 antiparticleCoeff_.setRealImagPart( magBar_->unblindValue()*TMath::Cos(phaseBar_->unblindValue()), magBar_->unblindValue()*TMath::Sin(phaseBar_->unblindValue()) );
262 void LauMagPhaseCPCoeffSet::setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init )
296 value = (magBar_->value()*magBar_->value() - mag_->value()*mag_->value())/(magBar_->value()*magBar_->value() + mag_->value()*mag_->value());
311 LauAbsCoeffSet* LauMagPhaseCPCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
static Double_t maxPhase_ Maximum allowed value of phase parameters. Definition: LauAbsCoeffSet.hh:294 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:228 Definition: LauAbsCoeffSet.hh:55 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauMagPhaseCPCoeffSet.cc:175 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauMagPhaseCPCoeffSet.cc:151 File containing declaration of LauMagPhaseCPCoeffSet class. ClassImp(LauAbsCoeffSet) virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauMagPhaseCPCoeffSet.cc:127 File containing declaration of LauPrint class. virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauMagPhaseCPCoeffSet.cc:311 virtual std::vector< LauParameter * > getParameters() Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit... Definition: LauMagPhaseCPCoeffSet.cc:100 Class for defining a complex coefficient using seperate magnitudes and phases for particles and antip... Definition: LauMagPhaseCPCoeffSet.hh:53 virtual void printParValues() const Print the current values of the parameters. Definition: LauMagPhaseCPCoeffSet.cc:110 static Double_t maxMagnitude_ Maximum allowed value of magnitude parameters. Definition: LauAbsCoeffSet.hh:290 File containing declaration of LauParameter class. Definition: LauAbsCoeffSet.hh:54 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauMagPhaseCPCoeffSet.cc:250 File containing declaration of LauComplex class. 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: LauMagPhaseCPCoeffSet.cc:262 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 const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauMagPhaseCPCoeffSet.cc:256 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 Definition: LauAbsCoeffSet.hh:56 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 LauMagPhaseCPCoeffSet(const TString &compName, Double_t mag, Double_t phase, Double_t magBar, Double_t phaseBar, Bool_t magFixed, Bool_t phaseFixed, Bool_t magBarFixed, Bool_t phaseBarFixed) Constructor. Definition: LauMagPhaseCPCoeffSet.cc:45 static Double_t minPhase_ Minimum allowed value of phase parameters. Definition: LauAbsCoeffSet.hh:292 static Double_t minMagnitude_ Minimum allowed value of magnitude parameters. Definition: LauAbsCoeffSet.hh:288 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:147 LauComplex antiparticleCoeff_ The antiparticle complex coefficient. Definition: LauMagPhaseCPCoeffSet.hh:166 virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauMagPhaseCPCoeffSet.cc:119 Class for blinding and unblinding a number based on a blinding string. Definition: LauBlind.hh:42 Generated by 1.8.5 |