LauBifurcatedGaussPdf.cc
Go to the documentation of this file.
27 LauBifurcatedGaussPdf::LauBifurcatedGaussPdf(const TString& theVarName, const std::vector<LauAbsRValue*>& params, Double_t minAbscissa, Double_t maxAbscissa) :
48 std::cerr << "ERROR in LauBifurcatedGaussPdf constructor: LauBifurcatedGaussPdf requires 3 parameters: \"mean\", \"sigmaL\" and \"sigmaR\"." << std::endl;
61 LauBifurcatedGaussPdf::LauBifurcatedGaussPdf(const LauBifurcatedGaussPdf& other) : LauAbsPdf(other.varName(), other.getParameters(), other.getMinAbscissa(), other.getMaxAbscissa())
110 integral = sigmaL * ( TMath::Erf((this->getMaxAbscissa() - mean)/xscaleL) - TMath::Erf((this->getMinAbscissa() - mean)/xscaleL));
112 integral = sigmaR * (TMath::Erf((this->getMaxAbscissa() - mean)/xscaleR) - TMath::Erf((this->getMinAbscissa() - mean)/xscaleR));
114 integral = sigmaR*TMath::Erf((this->getMaxAbscissa() -mean)/xscaleR) - sigmaL*TMath::Erf((this->getMinAbscissa() - mean)/xscaleL);
virtual void setUnNormPDFVal(Double_t unNormPDFVal) Set the unnormalised likelihood. Definition: LauAbsPdf.hh:369 virtual Double_t getMinAbscissa() const Retrieve the minimum value of the (primary) abscissa. Definition: LauAbsPdf.hh:117 virtual Bool_t heightUpToDate() const Check if the maximum height of the PDF is up to date. Definition: LauAbsPdf.hh:264 ClassImp(LauAbsCoeffSet) virtual Double_t getUnNormLikelihood() const Retrieve the unnormalised likelihood value. Definition: LauAbsPdf.hh:196 virtual Bool_t checkRange(const LauAbscissas &abscissas) const Check that all abscissas are within their allowed ranges. Definition: LauAbsPdf.cc:213 virtual void calcPDFHeight(const LauKinematics *kinematics) Calculate the PDF height. Definition: LauBifurcatedGaussPdf.cc:132 virtual TRandom * getRandomFun() const Retrieve the random function used for MC generation. Definition: LauAbsPdf.hh:387 LauBifurcatedGaussPdf(const TString &theVarName, const std::vector< LauAbsRValue * > ¶ms, Double_t minAbscissa, Double_t maxAbscissa) Constructor. Definition: LauBifurcatedGaussPdf.cc:27 File containing declaration of LauBifurcatedGaussPdf class. virtual Double_t getMaxAbscissa() const Retrieve the maximum value of the (primary) abscissa. Definition: LauAbsPdf.hh:123 Class for defining a bifurcated Gaussian PDF. Definition: LauBifurcatedGaussPdf.hh:34 virtual void calcLikelihoodInfo(const LauAbscissas &abscissas) Calculate the likelihood (and intermediate info) for a given abscissa. Definition: LauBifurcatedGaussPdf.cc:68 File containing LauConstants namespace. virtual void setRandomFun(TRandom *randomFun) Set the random function used for toy MC generation. Definition: LauAbsPdf.hh:233 Pure abstract base class for defining a parameter containing an R value. Definition: LauAbsRValue.hh:29 std::vector< Double_t > LauAbscissas The type used for containing multiple abscissa values. Definition: LauAbsPdf.hh:45 Generated by 1.8.5 |