LauMagPhaseCPCoeffSet.cc
Go to the documentation of this file.
35 LauMagPhaseCPCoeffSet::LauMagPhaseCPCoeffSet(const TString& compName, Double_t mag, Double_t phase, Double_t magBar, Double_t phaseBar,
49 cout<<"Set component \""<<this->name()<<"\" to have mag = "<<mag_->value()<<",\tphase = "<<phase_->value()<<",\t";
54 LauMagPhaseCPCoeffSet::LauMagPhaseCPCoeffSet(const LauMagPhaseCPCoeffSet& rhs, Double_t constFactor) : LauAbsCoeffSet(rhs.name())
228 return LauComplex( mag_->value()*TMath::Cos(phase_->value()), mag_->value()*TMath::Sin(phase_->value()) );
233 return LauComplex( magBar_->value()*TMath::Cos(phaseBar_->value()), magBar_->value()*TMath::Sin(phaseBar_->value()) );
236 void LauMagPhaseCPCoeffSet::setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar )
254 value = (magBar_->value()*magBar_->value() - mag_->value()*mag_->value())/(magBar_->value()*magBar_->value() + mag_->value()*mag_->value());
269 LauAbsCoeffSet* LauMagPhaseCPCoeffSet::createClone(const TString& newName, Double_t constFactor)
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 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauMagPhaseCPCoeffSet.cc:151 virtual LauComplex particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauMagPhaseCPCoeffSet.cc:226 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauMagPhaseCPCoeffSet.cc:127 File containing declaration of LauMagPhaseCPCoeffSet class. virtual LauAbsCoeffSet * createClone(const TString &newName, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauMagPhaseCPCoeffSet.cc:269 virtual TString baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:117 virtual LauComplex antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauMagPhaseCPCoeffSet.cc:231 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: LauMagPhaseCPCoeffSet.cc:85 LauMagPhaseCPCoeffSet & operator=(const LauMagPhaseCPCoeffSet &rhs) Copy assignment operator. Definition: LauMagPhaseCPCoeffSet.cc:67 Class for defining a complex coefficient using seperate magnitudes and phases for particles and antip... Definition: LauMagPhaseCPCoeffSet.hh:39 virtual void printTableRow(std::ostream &stream) Print the parameters of the complex coefficient as a row in the results table. Definition: LauMagPhaseCPCoeffSet.cc:103 File containing declaration of LauParameter class. virtual void setCoeffValues(const LauComplex &coeff, const LauComplex &coeffBar) Set the parameters based on the complex coefficients for particles and antiparticles. Definition: LauMagPhaseCPCoeffSet.cc:236 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 LauRandom namespace. 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:498 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:102 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:35 virtual void printTableHeading(std::ostream &stream) Print the column headings for a results table. Definition: LauMagPhaseCPCoeffSet.cc:95 Generated by 1.8.5 |