#include <LikelihoodPdfProduct.h>
Public Member Functions | |
void | addPdf (const char *specname, const char *name, bool splitPdf=false) |
add a pdf for a species, splitted or not More... | |
void | addSpecies (const char *name, float priorWeight=1.) |
add a species (hypothesis) to the likelihood, with a priori probability More... | |
float | getRatio (const char *specName, const std::vector< float > &measurements, const std::string &) const |
get the likelihood ratio p(a priori) * L(specName) / L_tot More... | |
void | initFromDB (const ElectronLikelihoodCalibration *calibration) |
initialize the PDFs from CondDB More... | |
LikelihoodPdfProduct (const char *name, int ecalsubdet, int ptbin) | |
void | setSplitFrac (const char *specname, const char *catName, float frac=1.0) |
set the fraction of one category for a given species More... | |
~LikelihoodPdfProduct () | |
Private Member Functions | |
float | getSpeciesProb (const char *specName, const std::vector< float > &measurements, const std::string &gsfClass) const |
Private Attributes | |
const ElectronLikelihoodCalibration * | _calibration |
int | _ecalsubdet |
std::string | _name |
std::vector< float > | _priorList |
int | _ptbin |
std::vector< LikelihoodSpecies * > | _specList |
Definition at line 12 of file LikelihoodPdfProduct.h.
LikelihoodPdfProduct::LikelihoodPdfProduct | ( | const char * | name, |
int | ecalsubdet, | ||
int | ptbin | ||
) |
Definition at line 7 of file LikelihoodPdfProduct.cc.
References _ecalsubdet, _name, _ptbin, and AlCaHLTBitMon_QueryRunRegistry::string.
LikelihoodPdfProduct::~LikelihoodPdfProduct | ( | ) |
Definition at line 17 of file LikelihoodPdfProduct.cc.
References _specList.
void LikelihoodPdfProduct::addPdf | ( | const char * | specname, |
const char * | name, | ||
bool | splitPdf = false |
||
) |
add a pdf for a species, splitted or not
Definition at line 46 of file LikelihoodPdfProduct.cc.
References _calibration, _ecalsubdet, _ptbin, _specList, LikelihoodSpecies::addPdf(), LikelihoodSpecies::getName(), LikelihoodSpecies::getSplitFractions(), LikelihoodPdf::initFromDB(), and LikelihoodPdf::split().
Referenced by ElectronLikelihood::Setup().
void LikelihoodPdfProduct::addSpecies | ( | const char * | name, |
float | priorWeight = 1. |
||
) |
add a species (hypothesis) to the likelihood, with a priori probability
Definition at line 37 of file LikelihoodPdfProduct.cc.
References _specList.
Referenced by ElectronLikelihood::Setup().
float LikelihoodPdfProduct::getRatio | ( | const char * | specName, |
const std::vector< float > & | measurements, | ||
const std::string & | gsfClass | ||
) | const |
get the likelihood ratio p(a priori) * L(specName) / L_tot
if the pdf is not splitted, assign the split fraction = 1
Definition at line 80 of file LikelihoodPdfProduct.cc.
References _specList, LikelihoodSpecies::getName(), getSpeciesProb(), and LikelihoodSpecies::getSplitFractions().
Referenced by ElectronLikelihood::result(), and ElectronLikelihood::resultLog().
|
private |
Definition at line 108 of file LikelihoodPdfProduct.cc.
References _specList, LikelihoodSpecies::getListOfPdfs(), LikelihoodSpecies::getName(), and LikelihoodSpecies::getPrior().
Referenced by getRatio().
void LikelihoodPdfProduct::initFromDB | ( | const ElectronLikelihoodCalibration * | calibration | ) |
initialize the PDFs from CondDB
Definition at line 29 of file LikelihoodPdfProduct.cc.
References _calibration.
Referenced by ElectronLikelihood::Setup().
void LikelihoodPdfProduct::setSplitFrac | ( | const char * | specname, |
const char * | catName, | ||
float | frac = 1.0 |
||
) |
set the fraction of one category for a given species
Definition at line 65 of file LikelihoodPdfProduct.cc.
References _specList, LikelihoodSpecies::getName(), LikelihoodSpecies::setSplitFraction(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ElectronLikelihood::Setup().
|
private |
Definition at line 36 of file LikelihoodPdfProduct.h.
Referenced by addPdf(), and initFromDB().
|
private |
Definition at line 39 of file LikelihoodPdfProduct.h.
Referenced by addPdf(), and LikelihoodPdfProduct().
|
private |
Definition at line 35 of file LikelihoodPdfProduct.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(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), LikelihoodPdfProduct(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), and plotting.PlotGroup::remove().
|
private |
Definition at line 38 of file LikelihoodPdfProduct.h.
|
private |
Definition at line 40 of file LikelihoodPdfProduct.h.
Referenced by addPdf(), and LikelihoodPdfProduct().
|
private |
Definition at line 37 of file LikelihoodPdfProduct.h.
Referenced by addPdf(), addSpecies(), getRatio(), getSpeciesProb(), setSplitFrac(), and ~LikelihoodPdfProduct().