Lau2DHistPdf.cc
Go to the documentation of this file.
63 std::cerr << "ERROR in Lau2DHistPdf::Lau2DHistPdf : Have not been provided with exactly two variables." << std::endl;
138 std::cerr << "ERROR in Lau2DHistPdf::Lau2DHistPdf : Can't get X or Y projection from 2D histogram." << std::endl;
223 std::cout << "INFO in Lau2DHistPdf::checkNormalisation : Area = " << area << ", dx = " << dx << ", dy = " << dy << ", dx*dy = " << dx*dy << std::endl;
224 std::cout << " : Area with no norm = " << areaNoNorm << "*dx*dy = " << areaNoNorm*dx*dy << std::endl;
241 std::cerr << "WARNING in Lau2DHistPdf::getBinHistValue : Negative bin content set to zero!" << std::endl;
397 std::cerr << "ERROR in Lau2DHistPdf::getLikelihood : Unrecognised variable name \"" << theVarName << "\", cannot determine likelihood." << std::endl;
439 std::cerr << "ERROR in Lau2DHistPdf::generate : Please set the random number generator for this PDF by using the setRandomFun(TRandom*) function." << std::endl;
450 genAbscissas[0] = this->getRandomFun()->Rndm()*this->getRange(xName_) + this->getMinAbscissa(xName_);
451 genAbscissas[1] = this->getRandomFun()->Rndm()*this->getRange(yName_) + this->getMinAbscissa(yName_);
459 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;
460 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:163 TRandom * randomFun() Access the singleton random number generator with a particular seed. Definition: LauRandom.cc:20 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 Double_t interpolateXY(Double_t x, Double_t y) const Perform the interpolation (unnormalised) Definition: Lau2DHistPdf.cc:255 ClassImp(LauAbsCoeffSet) Bool_t useInterpolation_ Control boolean for using the linear interpolation. Definition: Lau2DHistPdf.hh:197 Double_t interpolateXYNorm(Double_t x, Double_t y) const Perform the interpolation and divide by the normalisation. Definition: Lau2DHistPdf.cc:247 virtual void cacheInfo(const LauFitDataTree &inputData) Cache information from data. Definition: Lau2DHistPdf.cc:402 virtual Double_t getUnNormLikelihood() const Retrieve the unnormalised likelihood value. Definition: LauAbsPdf.hh:196 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:213 std::map< TString, Double_t > LauFitData Type for holding event data. Definition: LauFitDataTree.hh:31 virtual LauFitData generate(const LauKinematics *kinematics) Generate an event from the PDF. Definition: Lau2DHistPdf.cc:429 virtual TRandom * getRandomFun() const Retrieve the random function used for MC generation. Definition: LauAbsPdf.hh:387 void doBinFluctuation() Fluctuate the histogram bin contents in accordance with their errors. Definition: Lau2DHistPdf.cc:412 virtual void calcLikelihoodInfo(const LauAbscissas &abscissas) Calculate the likelihood (and intermediate info) for a given value of the abscissas. Definition: Lau2DHistPdf.cc:361 Double_t getBinHistValue(Int_t i, Int_t j) const Get the bin content from the histogram. Definition: Lau2DHistPdf.cc:228 virtual void calcPDFHeight(const LauKinematics *kinematics) Calculate the PDF height. Definition: Lau2DHistPdf.cc:161 virtual Bool_t withinGeneration() const Check whether the generate method is running. Definition: LauAbsPdf.hh:435 File containing LauRandom namespace. virtual Double_t getLikelihood() const Retrieve the normalised likelihood value. Definition: LauAbsPdf.cc:354 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:241 virtual Double_t getRange() const Retrieve the range of the (primary) abscissa. Definition: LauAbsPdf.hh:129 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 File containing declaration of Lau1DHistPdf class. Generated by 1.8.5 |