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<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<LikelihoodPdf*> LikelihoodSpecies::getListOfPdfs() {
32  return _pdfList;
33 }
34 
36  return _name.c_str();
37 }
38 
40  return _prior;
41 }
42 
43 std::map<std::string,float> LikelihoodSpecies::getSplitFractions() {
44  return _splitFractions;
45 }
46 
void addPdf(LikelihoodPdf *pdf)
void setPrior(float prior)
void setSplitFraction(std::pair< std::string, float > splitfrac)
std::vector< LikelihoodPdf * > _pdfList
virtual ~LikelihoodSpecies()
std::map< std::string, float > getSplitFractions()
std::map< std::string, float > _splitFractions
const char * getName()
dictionary prior
std::vector< LikelihoodPdf * > getListOfPdfs()
void setName(const char *name)