CMS 3D CMS Logo

Public Member Functions | Private Attributes

LikelihoodSpecies Class Reference

#include <LikelihoodSpecies.h>

List of all members.

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

Detailed Description

Definition at line 9 of file LikelihoodSpecies.h.


Constructor & Destructor Documentation

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.

                                                                  {
  _name=std::string(name);
  _prior=prior;
}
LikelihoodSpecies::~LikelihoodSpecies ( ) [virtual]

Definition at line 8 of file LikelihoodSpecies.cc.

References _pdfList.

                                      {
  std::vector<LikelihoodPdf*>::iterator pdfItr;
  for(pdfItr=_pdfList.begin(); pdfItr!=_pdfList.end(); pdfItr++) {
    delete *pdfItr;
  }
}

Member Function Documentation

void LikelihoodSpecies::addPdf ( LikelihoodPdf pdf)

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  )
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.

                                                {
  _name = std::string(name);
}
void LikelihoodSpecies::setPrior ( float  prior)

Definition at line 23 of file LikelihoodSpecies.cc.

References _prior, and bookConverter::prior.

                                            {
  _prior=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);
}

Member Data Documentation

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