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;
161 Lau2DHistPdf::Lau2DHistPdf(const Lau2DHistPdf& other) : LauAbsPdf(other.varName(), other.getParameters(), other.getMinAbscissa(), other.getMaxAbscissa())
252 std::cout << "INFO in Lau2DHistPdf::checkNormalisation : Area = " << area << ", dx = " << dx << ", dy = " << dy << ", dx*dy = " << dx*dy << std::endl;
253 std::cout << " : Area with no norm = " << areaNoNorm << "*dx*dy = " << areaNoNorm*dx*dy << std::endl;
270 std::cerr << "WARNING in Lau2DHistPdf::getBinHistValue : Negative bin content set to zero!" << std::endl;
426 std::cerr << "ERROR in Lau2DHistPdf::getLikelihood : Unrecognised variable name \"" << theVarName << "\", cannot determine likelihood." << std::endl;
468 std::cerr << "ERROR in Lau2DHistPdf::generate : Please set the random number generator for this PDF by using the setRandomFun(TRandom*) function." << std::endl;
479 genAbscissas[0] = this->getRandomFun()->Rndm()*this->getRange(xName_) + this->getMinAbscissa(xName_);
480 genAbscissas[1] = this->getRandomFun()->Rndm()*this->getRange(yName_) + this->getMinAbscissa(yName_);
488 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;
489 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:172 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:284 ClassImp(LauAbsCoeffSet) Bool_t useInterpolation_ Control boolean for using the linear interpolation. Definition: Lau2DHistPdf.hh:194 Double_t interpolateXYNorm(Double_t x, Double_t y) const Perform the interpolation and divide by the normalisation. Definition: Lau2DHistPdf.cc:276 virtual void cacheInfo(const LauFitDataTree &inputData) Cache information from data. Definition: Lau2DHistPdf.cc:431 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:458 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:441 virtual void calcLikelihoodInfo(const LauAbscissas &abscissas) Calculate the likelihood (and intermediate info) for a given value of the abscissas. Definition: Lau2DHistPdf.cc:390 Bool_t fluctuateBins_ Control boolean for performing the fluctuation of the histogram bin contents. Definition: Lau2DHistPdf.hh:196 Double_t getBinHistValue(Int_t i, Int_t j) const Get the bin content from the histogram. Definition: Lau2DHistPdf.cc:257 virtual void calcPDFHeight(const LauKinematics *kinematics) Calculate the PDF height. Definition: Lau2DHistPdf.cc:190 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 Lau2DHistPdf(const std::vector< TString > &theVarNames, const TH2 *hist, const LauFitData &minVals, const LauFitData &maxVals, Bool_t useInterpolation=kTRUE, Bool_t fluctuateBins=kFALSE) Constructor. Definition: Lau2DHistPdf.cc:33 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 File containing declaration of Lau1DHistPdf class. Generated by 1.8.5 |