#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 |
|
inline |
Definition at line 16 of file LikelihoodPdf.h.
References getVal(), initFromDB(), LikelihoodPdf(), dataset::name, split(), AlCaHLTBitMon_QueryRunRegistry::string, x, and ~LikelihoodPdf().
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 |
|
inline |
get PDF name
Definition at line 31 of file LikelihoodPdf.h.
References _name.
Referenced by plotting.Plot::draw().
|
inline |
get PDF species
Definition at line 34 of file LikelihoodPdf.h.
References _species, and normalization().
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(), TtFullHadEvtBuilder_cfi::prob, and PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::value().
Referenced by LikelihoodPdf().
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 trackerHits::histo.
Referenced by LikelihoodPdfProduct::addPdf(), and LikelihoodPdf().
|
private |
Definition at line 124 of file LikelihoodPdf.cc.
References PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binContent(), mps_fire::i, and PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::numberOfBins().
Referenced by getSpecies(), and 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, edmScanValgrind::buffer, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LikelihoodPdfProduct::addPdf(), and LikelihoodPdf().
|
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.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::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().