#include <LikelihoodSpecies.h>
Public Member Functions | |
void | addPdf (LikelihoodPdf *pdf) |
std::vector< LikelihoodPdf * > | getListOfPdfs () |
const char * | getName () |
float | getPrior () |
std::map< std::string, float > | getSplitFractions () |
LikelihoodSpecies () | |
LikelihoodSpecies (const char *name, float prior) | |
void | setName (const char *name) |
void | setPrior (float prior) |
void | setSplitFraction (std::pair< std::string, float > splitfrac) |
virtual | ~LikelihoodSpecies () |
Private Attributes | |
std::string | _name |
std::vector< LikelihoodPdf * > | _pdfList |
float | _prior |
std::map< std::string, float > | _splitFractions |
Definition at line 9 of file LikelihoodSpecies.h.
LikelihoodSpecies::LikelihoodSpecies | ( | ) | [inline] |
Definition at line 11 of file LikelihoodSpecies.h.
{};
LikelihoodSpecies::LikelihoodSpecies | ( | const char * | name, |
float | prior | ||
) |
Definition at line 3 of file LikelihoodSpecies.cc.
References _name, _prior, and bookConverter::prior.
LikelihoodSpecies::~LikelihoodSpecies | ( | ) | [virtual] |
Definition at line 8 of file LikelihoodSpecies.cc.
References _pdfList.
void LikelihoodSpecies::addPdf | ( | LikelihoodPdf * | ) |
Definition at line 113 of file TagProbeFitter.cc.
References mergeVDriftHistosByStation::name.
Referenced by LikelihoodPdfProduct::addPdf().
{ pdfs[name] = pdfCommands; }
std::vector< LikelihoodPdf * > LikelihoodSpecies::getListOfPdfs | ( | ) |
Definition at line 31 of file LikelihoodSpecies.cc.
References _pdfList.
Referenced by LikelihoodPdfProduct::getSpeciesProb().
{ return _pdfList; }
const char * LikelihoodSpecies::getName | ( | void | ) |
Definition at line 35 of file LikelihoodSpecies.cc.
References _name.
Referenced by LikelihoodPdfProduct::addPdf(), LikelihoodPdfProduct::getRatio(), LikelihoodPdfProduct::getSpeciesProb(), and LikelihoodPdfProduct::setSplitFrac().
{ return _name.c_str(); }
float LikelihoodSpecies::getPrior | ( | ) |
Definition at line 39 of file LikelihoodSpecies.cc.
References _prior.
Referenced by LikelihoodPdfProduct::getSpeciesProb().
{ return _prior; }
std::map< std::string, float > LikelihoodSpecies::getSplitFractions | ( | ) |
Definition at line 43 of file LikelihoodSpecies.cc.
References _splitFractions.
Referenced by LikelihoodPdfProduct::addPdf(), and LikelihoodPdfProduct::getRatio().
{ return _splitFractions; }
void LikelihoodSpecies::setName | ( | const char * | name | ) |
Definition at line 15 of file LikelihoodSpecies.cc.
References _name.
void LikelihoodSpecies::setPrior | ( | float | prior | ) |
Definition at line 23 of file LikelihoodSpecies.cc.
References _prior, and bookConverter::prior.
void LikelihoodSpecies::setSplitFraction | ( | std::pair< std::string, float > | splitfrac | ) |
Definition at line 27 of file LikelihoodSpecies.cc.
References _splitFractions.
Referenced by LikelihoodPdfProduct::setSplitFrac().
{ _splitFractions.insert(splitfrac); }
std::string LikelihoodSpecies::_name [private] |
Definition at line 30 of file LikelihoodSpecies.h.
Referenced by getName(), LikelihoodSpecies(), and setName().
std::vector<LikelihoodPdf*> LikelihoodSpecies::_pdfList [private] |
Definition at line 29 of file LikelihoodSpecies.h.
Referenced by getListOfPdfs(), and ~LikelihoodSpecies().
float LikelihoodSpecies::_prior [private] |
Definition at line 31 of file LikelihoodSpecies.h.
Referenced by getPrior(), LikelihoodSpecies(), and setPrior().
std::map<std::string,float> LikelihoodSpecies::_splitFractions [private] |
Definition at line 32 of file LikelihoodSpecies.h.
Referenced by getSplitFractions(), and setSplitFraction().