BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCMTFComparisonTool.h
1 #ifndef __BCMTFCOMPARISONTOOL__H
2 #define __BCMTFCOMPARISONTOOL__H
3 
14 /*
15  * Copyright (C) 2007-2014, the BAT core developer team
16  * All rights reserved.
17  *
18  * For the licensing terms see doc/COPYING.
19  * For documentation see http://mpp.mpg.de/bat
20  */
21 
22 // ---------------------------------------------------------
23 #include <string>
24 #include <vector>
25 
26 #include <TH1D.h>
27 
28 // ---------------------------------------------------------
30 {
31 
32 public:
33 
40  BCMTFComparisonTool(const char * name);
41 
45 
52  std::string GetName()
53  { return fName; };
54 
58  { return (int) fHistogramContainer.size(); };
59 
68  void AddContribution(const char * name, TH1D hist);
69 
75  void AddContribution(const char * name, double centralvalue, double uncertainty);
76 
79  void DrawOverview();
80 
88  void PrintHistograms(const char * filename);
89 
93  void PrintOverview(const char * filename);
94 
97 private:
98 
101  std::string fName;
102 
105  std::vector<std::string> fNameContainer;
106 
109  std::vector<TH1D *> fHistogramContainer;
110 
113  std::vector<double> fCentralValueContainer;
114 
117  std::vector<double> fUncertaintyContainer;
118 
119 };
120 // ---------------------------------------------------------
121 
122 #endif
123 
BCMTFComparisonTool(const char *name)
A helper class for BCMTFAnalysisFacility storing information.
void PrintOverview(const char *filename)
void AddContribution(const char *name, TH1D hist)
void PrintHistograms(const char *filename)