Lau2DHistPdf.cc
Go to the documentation of this file.
77 std::cerr << "ERROR in Lau2DHistPdf::Lau2DHistPdf : Have not been provided with exactly two variables." << std::endl;
152 std::cerr << "ERROR in Lau2DHistPdf::Lau2DHistPdf : Can't get X or Y projection from 2D histogram." << std::endl;
237 std::cout << "INFO in Lau2DHistPdf::checkNormalisation : Area = " << area << ", dx = " << dx << ", dy = " << dy << ", dx*dy = " << dx*dy << std::endl;
238 std::cout << " : Area with no norm = " << areaNoNorm << "*dx*dy = " << areaNoNorm*dx*dy << std::endl;
255 std::cerr << "WARNING in Lau2DHistPdf::getBinHistValue : Negative bin content set to zero!" << std::endl;
411 std::cerr << "ERROR in Lau2DHistPdf::getLikelihood : Unrecognised variable name \"" << theVarName << "\", cannot determine likelihood." << std::endl;
453 std::cerr << "ERROR in Lau2DHistPdf::generate : Please set the random number generator for this PDF by using the setRandomFun(TRandom*) function." << std::endl;
464 genAbscissas[0] = this->getRandomFun()->Rndm()*this->getRange(xName_) + this->getMinAbscissa(xName_);
465 genAbscissas[1] = this->getRandomFun()->Rndm()*this->getRange(yName_) + this->getMinAbscissa(yName_);
473 std::cerr << "WARNING in LauAbsPdf::generate : genPDFVal = " << genPDFVal << " is larger than the specified PDF height " << this->getMaxHeight() << " for (x,y) = (" << genAbscissas[0] << "," << genAbscissas[1] << ")." << std::endl;
474 std::cerr << " : Need to reset height to be larger than " << genPDFVal << " by using the setMaxHeight(Double_t) function and re-run the Monte Carlo generation!" << std::endl;
virtual void calcLikelihoodInfo(const LauAbscissas &abscissas) Calculate the likelihood (and intermediate info) for a given abscissa. Definition: Lau1DHistPdf.cc:177 TRandom * randomFun() Access the singleton random number generator with a particular seed. Definition: LauRandom.cc:34 virtual void setUnNormPDFVal(Double_t unNormPDFVal) Set the unnormalised likelihood. Definition: LauAbsPdf.hh:383 virtual Double_t getMinAbscissa() const Retrieve the minimum value of the (primary) abscissa. Definition: LauAbsPdf.hh:131 virtual Bool_t heightUpToDate() const Check if the maximum height of the PDF is up to date. Definition: LauAbsPdf.hh:278 Double_t interpolateXY(Double_t x, Double_t y) const Perform the interpolation (unnormalised) Definition: Lau2DHistPdf.cc:269 ClassImp(LauAbsCoeffSet) Bool_t useInterpolation_ Control boolean for using the linear interpolation. Definition: Lau2DHistPdf.hh:211 Double_t interpolateXYNorm(Double_t x, Double_t y) const Perform the interpolation and divide by the normalisation. Definition: Lau2DHistPdf.cc:261 virtual void cacheInfo(const LauFitDataTree &inputData) Cache information from data. Definition: Lau2DHistPdf.cc:416 virtual Double_t getUnNormLikelihood() const Retrieve the unnormalised likelihood value. Definition: LauAbsPdf.hh:210 File containing declaration of Lau2DHistPdf class. virtual Bool_t checkRange(const LauAbscissas &abscissas) const Check that all abscissas are within their allowed ranges. Definition: LauAbsPdf.cc:227 std::map< TString, Double_t > LauFitData Type for holding event data. Definition: LauFitDataTree.hh:45 virtual LauFitData generate(const LauKinematics *kinematics) Generate an event from the PDF. Definition: Lau2DHistPdf.cc:443 virtual TRandom * getRandomFun() const Retrieve the random function used for MC generation. Definition: LauAbsPdf.hh:401 void doBinFluctuation() Fluctuate the histogram bin contents in accordance with their errors. Definition: Lau2DHistPdf.cc:426 virtual void calcLikelihoodInfo(const LauAbscissas &abscissas) Calculate the likelihood (and intermediate info) for a given value of the abscissas. Definition: Lau2DHistPdf.cc:375 Double_t getBinHistValue(Int_t i, Int_t j) const Get the bin content from the histogram. Definition: Lau2DHistPdf.cc:242 virtual void calcPDFHeight(const LauKinematics *kinematics) Calculate the PDF height. Definition: Lau2DHistPdf.cc:175 virtual Bool_t withinGeneration() const Check whether the generate method is running. Definition: LauAbsPdf.hh:449 File containing LauRandom namespace. virtual Double_t getLikelihood() const Retrieve the normalised likelihood value. Definition: LauAbsPdf.cc:368 virtual void calcLikelihoodInfo(const LauAbscissas &abscissas)=0 Calculate the likelihood (and all associated information) given value(s) of the abscissa(s) ... virtual void cacheInfo(const LauFitDataTree &inputData) Cache information from data. Definition: LauAbsPdf.cc:255 virtual Double_t getRange() const Retrieve the range of the (primary) abscissa. Definition: LauAbsPdf.hh:143 Pure abstract base class for defining a parameter containing an R value. Definition: LauAbsRValue.hh:43 std::vector< Double_t > LauAbscissas The type used for containing multiple abscissa values. Definition: LauAbsPdf.hh:59 File containing declaration of Lau1DHistPdf class. Generated by ![]() |