#include <LikelihoodPdf.h>
Public Member Functions | |
std::string | getName () |
get PDF name More... | |
std::string | getSpecies () |
get PDF species More... | |
float | getVal (float x, std::string catName="NOSPLIT", bool normalized=true) |
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 (std::map< std::string, float > splitFractions, bool splitPdf=false) |
virtual | ~LikelihoodPdf () |
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 | ||
) |
|
virtual |
Definition at line 18 of file LikelihoodPdf.cc.
|
inline |
|
inline |
float LikelihoodPdf::getVal | ( | float | x, |
std::string | catName = "NOSPLIT" , |
||
bool | normalized = true |
||
) |
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(), 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, edm::hlt::Exception, and trackerHits::histo.
Referenced by LikelihoodPdfProduct::addPdf().
void LikelihoodPdf::split | ( | 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, and _splitRule.
Referenced by LikelihoodPdfProduct::addPdf().
|
private |
Definition at line 42 of file LikelihoodPdf.h.
Referenced by getVal(), LikelihoodPdf(), and split().
|
private |
Definition at line 40 of file LikelihoodPdf.h.
Referenced by getName(), getVal(), initFromDB(), LikelihoodPdf(), and split().
|
private |
Definition at line 43 of file LikelihoodPdf.h.
Referenced by getVal(), LikelihoodPdf(), and split().
|
private |
Definition at line 41 of file LikelihoodPdf.h.
Referenced by getSpecies(), getVal(), initFromDB(), LikelihoodPdf(), and split().
|
private |
Definition at line 45 of file LikelihoodPdf.h.
Referenced by getVal(), and initFromDB().
|
private |
Definition at line 46 of file LikelihoodPdf.h.
Referenced by initFromDB(), and split().