#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().
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.
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().
|
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.
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.
|
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 LikelihoodPdfProduct().
|
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().