12 #ifndef ROOSTATS_ESTIMATESUMMARY_h
13 #define ROOSTATS_ESTIMATESUMMARY_h
24 namespace HistFactory{
26 struct EstimateSummary :
public TObject {
28 enum ConstraintType{ Gaussian, Poisson };
32 double val, high, low;
39 ShapeSys() : name(), hist(nullptr), constraint{} {;}
42 ConstraintType constraint;
46 typedef std::vector<std::string> vecstring;
47 typedef std::vector<TH1*> vechist;
48 typedef std::pair<double, double> pairdouble;
49 typedef std::map<std::string, std::pair<double, double> > mappair;
53 virtual ~EstimateSummary();
54 void Print(
const char *opt = 0)
const ;
55 void AddSyst(
const std::string & sname, TH1* low, TH1* high);
56 bool operator==(
const EstimateSummary &other)
const ;
57 bool CompareHisto(
const TH1 * one,
const TH1 * two)
const ;
65 std::vector<std::string> systSourceForHist;
66 std::vector<TH1*> lowHists;
67 std::vector<TH1*> highHists;
68 std::map<std::string, std::pair<double, double> > overallSyst;
69 std::pair<double, double> dummyForRoot;
70 std::vector<NormFactor> normFactor;
74 bool IncludeStatError;
75 ConstraintType StatConstraintType;
76 Double_t RelErrorThreshold;
80 std::string shapeFactorName;
81 std::vector<ShapeSys> shapeSysts;
83 ClassDef(RooStats::HistFactory::EstimateSummary,1)