CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LikelihoodSpecies.h
Go to the documentation of this file.
1 #ifndef LikelihoodSpecies_h
2 #define LikelihoodSpecies_h
3 
5 #include <vector>
6 #include <string>
7 #include <map>
8 
10  public:
12  LikelihoodSpecies(const char* name, float prior);
13 
14  virtual ~LikelihoodSpecies();
15 
16  // modifiers
17  void setName(const char* name);
18  void addPdf(const LikelihoodPdf* pdf);
19  void setPrior(float prior);
20  void setSplitFraction(std::pair<std::string,float> splitfrac);
21 
22  // methods
23  std::vector<const LikelihoodPdf*> const& getListOfPdfs() const;
24  const char* getName() const;
25  float getPrior() const;
26  std::map<std::string,float> const& getSplitFractions() const;
27 
28  private:
29  std::vector<const LikelihoodPdf*> _pdfList;
31  float _prior;
32  std::map<std::string,float> _splitFractions;
33 
34 };
35 #endif
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)