1 #ifndef LikelihoodPdfProduct_h
2 #define LikelihoodPdfProduct_h
7 #include <TDirectory.h>
21 void addSpecies(
const char* name,
float priorWeight=1.);
24 void addPdf(
const char* specname,
const char* name,
bool splitPdf=
false);
27 void setSplitFrac(
const char* specname,
const char* catName,
float frac=1.0);
30 float getRatio(
const char* specName, std::vector<float> measurements, std::string);
34 float getSpeciesProb(
const char* specName, std::vector<float> measurements, std::string gsfClass);
void initFromDB(const ElectronLikelihoodCalibration *calibration)
initialize the PDFs from CondDB
void setSplitFrac(const char *specname, const char *catName, float frac=1.0)
set the fraction of one category for a given species
std::vector< float > _priorList
void addSpecies(const char *name, float priorWeight=1.)
add a species (hypothesis) to the likelihood, with a priori probability
float getRatio(const char *specName, std::vector< float > measurements, std::string)
get the likelihood ratio p(a priori) * L(specName) / L_tot
LikelihoodPdfProduct(const char *name, int ecalsubdet, int ptbin)
float getSpeciesProb(const char *specName, std::vector< float > measurements, std::string gsfClass)
std::vector< LikelihoodSpecies * > _specList
void addPdf(const char *specname, const char *name, bool splitPdf=false)
add a pdf for a species, splitted or not
const ElectronLikelihoodCalibration * _calibration