1 #ifndef H_EXTRACT_YIELDS 2 #define H_EXTRACT_YIELDS 9 #include "TGraphErrors.h" 11 #include "RooWorkspace.h" 12 #include "RooFitResult.h" 13 #include "RooMinuit.h" 17 void RunFit(
const std::string &path);
24 const RooFitResult &
f,
28 const RooFitResult &
f,
32 const std::string &bin_name,
33 const std::string &prc_name);
36 const std::string &bin_name);
38 const RooFitResult &
f,
39 const std::string &bin_name);
42 const std::string &bin_name);
44 const RooFitResult &
f,
45 const std::string &bin_name);
48 const std::string &bin_name);
50 const RooFitResult &
f,
51 const std::string &bin_name);
54 const std::string &bin_name);
56 const RooFitResult &
f,
57 const std::string &bin_name);
60 const std::string &bin_name);
63 const std::string &bin_name);
65 const RooFitResult &
f,
66 const std::string &bin_name);
69 const std::string &bin_name);
71 const RooFitResult &
f,
72 const std::string &bin_name);
75 const std::string &bin_name);
77 const RooFitResult &
f,
78 const std::string &bin_name);
81 const RooFitResult &
f);
84 const RooFitResult &
f,
88 std::vector<std::string>
GetVarNames(
const RooWorkspace &w);
89 void ManuallyAddBins(
const RooWorkspace &w, std::vector<std::string> &names);
90 std::vector<std::string>
GetFuncNames(
const RooWorkspace &w);
96 const std::vector<std::string> &bin_names,
97 const std::vector<std::string> &process_names);
99 std::vector<TH1D>
MakeBackgroundHistos(
const std::vector<std::vector<double> > &component_yields,
100 const std::vector<std::string> &bin_names,
101 const std::vector<std::string> &prc_names);
104 const std::vector<std::string> &bin_names);
107 const RooFitResult &
f,
108 const std::vector<std::string> &bin_names);
111 const std::vector<std::string> &bin_names);
115 std::vector<TH1D> &cs);
119 const std::vector<TH1D> &cs);
123 const std::vector<TH1D> &cs);
125 double GetMaximum(
const TH1D &h,
double y = std::numeric_limits<double>::max());
126 double GetMinimum(
const TH1D &h,
double y = -std::numeric_limits<double>::max());
129 TGraphErrors
MakeRatio(
const TH1D &num,
const TH1D &den);
134 const RooFitResult &
f,
138 const RooFitResult &
f,
139 std::string covar_file_name);
143 double GetError(
const RooAbsReal &var,
144 const RooFitResult &
f);