LauMagPhaseCoeffSet.cc
Go to the documentation of this file.
45 LauMagPhaseCoeffSet::LauMagPhaseCoeffSet(const TString& compName, Double_t magnitude, Double_t phase, Bool_t magFixed, Bool_t phaseFixed) :
53 LauMagPhaseCoeffSet::LauMagPhaseCoeffSet(const LauMagPhaseCoeffSet& rhs, CloneOption cloneOption, Double_t constFactor) : LauAbsCoeffSet(rhs.name()),
61 magnitude_ = new LauParameter("A", rhs.magnitude_->value(), minMagnitude_, maxMagnitude_, rhs.magnitude_->fixed());
71 phase_ = new LauParameter("Delta", rhs.phase_->value(), minPhase_, maxPhase_, rhs.phase_->fixed());
89 std::cout<<"INFO in LauMagPhaseCoeffSet::printParValues : Component \""<<this->name()<<"\" has magnitude = "<<magnitude_->value()<<" and phase = "<<phase_->value()<<"."<<std::endl;
125 Double_t phase = LauAbsCoeffSet::getRandomiser()->Rndm()*LauConstants::twoPi - LauConstants::pi;
177 coeff_.setRealImagPart(magnitude_->unblindValue()*TMath::Cos(phase_->unblindValue()), magnitude_->unblindValue()*TMath::Sin(phase_->unblindValue()));
186 void LauMagPhaseCoeffSet::setCoeffValues( const LauComplex& coeff, const LauComplex& coeffBar, Bool_t init )
213 LauAbsCoeffSet* LauMagPhaseCoeffSet::createClone(const TString& newName, CloneOption cloneOption, Double_t constFactor)
virtual LauAbsCoeffSet * createClone(const TString &newName, CloneOption cloneOption=All, Double_t constFactor=1.0) Create a clone of the coefficient set. Definition: LauMagPhaseCoeffSet.cc:213 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 virtual void finaliseValues() Make sure values are in "standard" ranges, e.g. phases should be between -pi and pi. Definition: LauMagPhaseCoeffSet.cc:130 Definition: LauAbsCoeffSet.hh:55 ClassImp(LauAbsCoeffSet) File containing declaration of LauPrint class. virtual const LauComplex & antiparticleCoeff() Retrieve the complex coefficient for an antiparticle. Definition: LauMagPhaseCoeffSet.cc:181 LauMagPhaseCoeffSet(const TString &compName, Double_t magnitude, Double_t phase, Bool_t magFixed, Bool_t phaseFixed) Constructor. Definition: LauMagPhaseCoeffSet.cc:45 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 void printParValues() const Print the current values of the parameters. Definition: LauMagPhaseCoeffSet.cc:87 virtual void printTableRow(std::ostream &stream) const Print the parameters of the complex coefficient as a row in the results table. Definition: LauMagPhaseCoeffSet.cc:100 File containing declaration of LauComplex class. Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:49 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: LauMagPhaseCoeffSet.cc:186 virtual void randomiseInitValues() Randomise the starting values of the parameters for a fit. Definition: LauMagPhaseCoeffSet.cc:116 void setRealImagPart(Double_t realpart, Double_t imagpart) Set both real and imaginary part. Definition: LauComplex.hh:328 virtual void printTableHeading(std::ostream &stream) const Print the column headings for a results table. Definition: LauMagPhaseCoeffSet.cc:92 void blindParameter(const TString &blindingString, const Double_t width) Blind the parameter. Definition: LauParameter.cc:542 Definition: LauAbsCoeffSet.hh:56 virtual const LauComplex & particleCoeff() Retrieve the complex coefficient for a particle. Definition: LauMagPhaseCoeffSet.cc:175 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 std::vector< LauParameter * > getParameters() Retrieve the parameters of the coefficient, e.g. so that they can be loaded into a fit... Definition: LauMagPhaseCoeffSet.cc:79 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:132 File containing declaration of LauMagPhaseCoeffSet class. 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 Class for blinding and unblinding a number based on a blinding string. Definition: LauBlind.hh:42 Class for defining a complex coefficient using a magnitude and a phase. Definition: LauMagPhaseCoeffSet.hh:49 Generated by 1.8.5 |