CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LikelihoodSpecies.cc
Go to the documentation of this file.
2 
4  _name=std::string(name);
6 }
7 
9  std::vector<const LikelihoodPdf*>::iterator pdfItr;
10  for(pdfItr=_pdfList.begin(); pdfItr!=_pdfList.end(); pdfItr++) {
11  delete *pdfItr;
12  }
13 }
14 
15 void LikelihoodSpecies::setName(const char* name) {
16  _name = std::string(name);
17 }
18 
20  _pdfList.push_back(pdf);
21 }
22 
24  _prior=prior;
25 }
26 
27 void LikelihoodSpecies::setSplitFraction(std::pair<std::string,float> splitfrac) {
28  _splitFractions.insert(splitfrac);
29 }
30 
31 std::vector<const LikelihoodPdf*> const& LikelihoodSpecies::getListOfPdfs() const {
32  return _pdfList;
33 }
34 
35 const char* LikelihoodSpecies::getName() const {
36  return _name.c_str();
37 }
38 
40  return _prior;
41 }
42 
43 std::map<std::string,float> const& LikelihoodSpecies::getSplitFractions() const {
44  return _splitFractions;
45 }
46 
void setPrior(float prior)
void setSplitFraction(std::pair< std::string, float > splitfrac)
std::vector< const LikelihoodPdf * > const & getListOfPdfs() const
std::map< std::string, float > const & getSplitFractions() const
virtual ~LikelihoodSpecies()
float getPrior() const
std::map< std::string, float > _splitFractions
std::vector< const LikelihoodPdf * > _pdfList
void addPdf(const LikelihoodPdf *pdf)
dictionary prior
const char * getName() const
void setName(const char *name)