#include <LikelihoodPdf.h>
Public Member Functions | |
std::string const & | getName () const |
get PDF name More... | |
std::string const & | getSpecies () const |
get PDF species More... | |
float | getVal (float x, std::string const &catName="NOSPLIT", bool normalized=true) const |
get Value of pdf at point x for class catName More... | |
void | initFromDB (const ElectronLikelihoodCalibration *calibration) |
initialize PDFs from CondDB More... | |
LikelihoodPdf () | |
LikelihoodPdf (const LikelihoodPdf &pdf) | |
LikelihoodPdf (const char *name, const char *species, int ecalsubdet, int ptbin) | |
void | split (const std::map< std::string, float > &splitFractions, bool splitPdf=false) |
virtual | ~LikelihoodPdf () |
Private Member Functions | |
float | normalization (const PhysicsTools::Calibration::HistogramF *thePdf) const |
Private Attributes | |
int | _ecalsubdet |
std::string | _name |
int | _ptbin |
std::string | _species |
std::map< std::string, const PhysicsTools::Calibration::HistogramF * > | _splitPdf |
std::map< std::string, std::string > | _splitRule |
Definition at line 12 of file LikelihoodPdf.h.
|
inline |
Definition at line 15 of file LikelihoodPdf.h.
|
inline |
Definition at line 16 of file LikelihoodPdf.h.
LikelihoodPdf::LikelihoodPdf | ( | const char * | name, |
const char * | species, | ||
int | ecalsubdet, | ||
int | ptbin | ||
) |
Definition at line 9 of file LikelihoodPdf.cc.
References _ecalsubdet, _name, _ptbin, _species, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Definition at line 18 of file LikelihoodPdf.cc.
|
inline |
get PDF name
Definition at line 31 of file LikelihoodPdf.h.
References _name.
Referenced by plotting.Plot::draw().
|
inline |
float LikelihoodPdf::getVal | ( | float | x, |
std::string const & | catName = "NOSPLIT" , |
||
bool | normalized = true |
||
) | const |
get Value of pdf at point x for class catName
Definition at line 85 of file LikelihoodPdf.cc.
References _ecalsubdet, _name, _ptbin, _species, _splitPdf, PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binContent(), PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::findBin(), normalization(), PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::normalization(), and PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::value().
void LikelihoodPdf::initFromDB | ( | const ElectronLikelihoodCalibration * | calibration | ) |
initialize PDFs from CondDB
Definition at line 60 of file LikelihoodPdf.cc.
References _name, _species, _splitPdf, _splitRule, ElectronLikelihoodCalibration::data, Exception, and timingPdfMaker::histo.
Referenced by LikelihoodPdfProduct::addPdf().
|
private |
Definition at line 124 of file LikelihoodPdf.cc.
References PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binContent(), i, and PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::numberOfBins().
Referenced by getVal().
void LikelihoodPdf::split | ( | const std::map< std::string, float > & | splitFractions, |
bool | splitPdf = false |
||
) |
split the pdf by category if splitPdf is true. split map is: <"class",classFraction> if splitPdf is false, pdf is splitted, but they are all equal (but allowing different priors)
use different a-priori probabilities and different PDFs depending by category
use different a-priori, but same PDFs for all categories
do not split at all (same PDF's, same a-priori for all categories)
Definition at line 24 of file LikelihoodPdf.cc.
References _ecalsubdet, _name, _ptbin, _species, _splitRule, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LikelihoodPdfProduct::addPdf().
|
private |
Definition at line 44 of file LikelihoodPdf.h.
Referenced by getVal(), LikelihoodPdf(), and split().
|
private |
Definition at line 42 of file LikelihoodPdf.h.
Referenced by plotting.Subtract::__str__(), plotting.FakeDuplicate::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.FakeDuplicate::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), plotting.Plot::create(), plotting.PlotGroup::draw(), getName(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), getVal(), initFromDB(), LikelihoodPdf(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), and split().
|
private |
Definition at line 45 of file LikelihoodPdf.h.
Referenced by getVal(), LikelihoodPdf(), and split().
|
private |
Definition at line 43 of file LikelihoodPdf.h.
Referenced by getSpecies(), getVal(), initFromDB(), LikelihoodPdf(), and split().
|
private |
Definition at line 47 of file LikelihoodPdf.h.
Referenced by getVal(), and initFromDB().
|
private |
Definition at line 48 of file LikelihoodPdf.h.
Referenced by initFromDB(), and split().