4 #include "DataSample.hxx" 5 #include "Experiment.hxx" 6 #include "DrawingToolsBase.hxx" 29 DrawingTools(
const std::string& file=
"", Int_t T2KstyleIndex=0);
33 void DrawToys(
DataSample& data,
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
35 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"",
double norm=-1,
bool pot_norm=
true);
36 void DrawToysRatioTwoCuts(
DataSample& sample1,
DataSample& sample2,
const std::string& cut1,
const std::string& cut2,
37 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"",
double norm=-1,
bool pot_norm=
true);
40 TH1_h* GetHisto(
DataSample& data,
const std::string& name,
const std::string& var,
int nx,
double* xbins,
41 const std::string& cut,
const std::string& root_opt,
const std::string& opt,
double scale,
bool scale_errors=
true);
43 using DrawingToolsBase::GetHisto;
44 TH1_h* GetHisto(
HistoStack* hs, TTree* tree ,
const std::string& name,
const std::string& var,
int nx,
double* xbins,
45 const std::string& cut,
const std::string& root_opt,
const std::string& opt,
double scale,
bool scale_errors=
true,
int refana=-1);
47 using DrawingToolsBase::GetRatioHisto;
48 TH1_h* GetRatioHisto(TTree* tree1, TTree* tree2,
const std::string& name,
const std::string& var,
int nx,
double* xbins,
49 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt,
const std::string& opt,
double norm,
double scale,
bool scale_errors=
true,
int refana=-1);
51 using DrawingToolsBase::FillHistoErrors;
54 void FillHistoErrors(
HistoStack* hs1,
HistoStack* hs2, TTree* tree1, TTree* tree2,
const std::string& name,
const std::string& var,
int nx,
double* xbins,
55 const std::string& cut1,
const std::string& cut2,
const std::string& opt,
double norm, TH1_h* hstat, TH1_h*& hsyst);
59 const std::string& cut1,
const std::string& cut2,
const std::string& opt,
double norm);
62 using DrawingToolsBase::FillGraphErrors;
63 void FillGraphErrors(
HistoStack* hs1,
HistoStack* hs2, TGraphAsymmErrors* graph,
const std::string uopt);
65 TH1_h* GetHistoWithSystErrors(
HistoStack* hs1,
HistoStack* hs2, TTree* tree1, TTree* tree2,
const std::string& name,
const std::string& var,
int nx,
double* xbins,
66 const std::string& cut1,
const std::string& cut2,
const std::string& opt,
double norm);
69 void PrintEventNumbers(
DataSample& data,
const std::string& cut,
const std::string& file=
"",
int refana=-1);
72 void Project(
HistoStack* hs,
const std::string& sample_name,
DataSample& sample,
const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
const std::string& categ,
73 const std::string& cut,
const std::string& root_opt,
const std::string& opt,
double norm,
bool scale_errors);
76 const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
const std::string& categ,
77 const std::string& cut,
const std::string& root_opt,
const std::string& opt,
bool scale_errors,
double norm=-1,
bool pot_norm=
true);
81 const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
const std::string& categ,
82 const std::string& cut,
const std::string& root_opt,
const std::string& opt,
double norm,
bool scale_errors);
86 const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
const std::string& categ,
87 const std::string& cut,
const std::string& root_opt,
const std::string& opt,
double norm,
bool scale_errors);
90 std::string GetCombinedCut(
DataSample& sample,
const std::string& cut);
95 void PrintPurities(
DataSample& data,
const std::string& categ,
const std::string& cut,
double events_ratio = 1);
99 void PrintPurities(
Experiment& exp,
const std::string& categ,
const std::string& cut,
const std::string& opt=
"");
102 void Draw(
DataSample& data,
const std::string& name,
int nbins,
double* xbins,
const std::string& categ=
"all",
103 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1,
bool scale_errors=
true);
104 void Draw(
DataSample& data,
const std::string& name,
int nbins,
double xmin,
double xmax,
const std::string& categ=
"all",
105 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1,
bool scale_errors=
true);
107 void Draw(
DataSample& data,
const std::string& name,
int nx,
double* xbins,
int ny,
double* ybins,
108 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1);
109 void Draw(
DataSample& data,
const std::string& name,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
110 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1);
113 void DrawRatio(
DataSample& data,
const std::string& name,
int nbins,
double* xbins,
114 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
115 void DrawRatio(
DataSample& data,
const std::string& name,
int nx,
double xmin,
double xmax,
116 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
118 void DrawEff(
DataSample& data,
const std::string& name,
int nbins,
double* xbins,
119 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
120 void DrawEff(
DataSample& data,
const std::string& name,
int nx,
double xmin,
double xmax,
121 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
123 void DrawDoubleEff(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double* xbins,
124 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
126 void DrawDoubleEff(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double xmin,
double xmax,
127 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
130 void DrawSignificance(
DataSample& data,
const std::string& name,
int nbins,
double* xbins,
const std::string& cut1,
const std::string& cut2,
131 double norm=1,
double rel_syst=0,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
132 void DrawSignificance(
DataSample& data,
const std::string& name,
int nbins,
double xmin,
double xmax,
const std::string& cut1,
const std::string& cut2,
133 double norm=1,
double rel_syst=0,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"");
137 void Draw(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double xmin,
double xmax,
138 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1,
bool scale_errors=
true,
bool pot_norm=
true);
139 void Draw(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nbins,
double* xbins,
140 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1,
bool scale_errors=
true,
bool pot_norm=
true);
142 void Draw(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
143 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1,
bool scale_errors=
true,
bool pot_norm=
true);
144 void Draw(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
145 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1,
bool scale_errors=
true,
bool pot_norm=
true);
147 void DrawRatio(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double xmin,
double xmax,
148 const std::string& cut1,
const std::string& cut2,
double norm=-1,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"",
bool pot_norm=
true);
149 void DrawRatio(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double* xbins,
150 const std::string& cut1,
const std::string& cut2,
double norm=-1,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"",
bool pot_norm=
true);
152 void DrawRatio(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double xmin,
double xmax,
153 const std::string& cut=
"",
double norm=-1,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"",
bool pot_norm=
true);
154 void DrawRatio(
DataSample& sample1,
DataSample& sample2,
const std::string& var,
int nx,
double* xbins,
155 const std::string& cut=
"",
double norm=-1,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg_name=
"",
bool pot_norm=
true);
159 void DrawEventsVSCut(
DataSample& sample ,
const std::string& cut_norm=
"",
int first_cut=-1,
int last_cut=-1,
160 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
163 void DrawEventsVSCut(
DataSample& sample ,
int branch,
const std::string& cut_norm=
"",
int first_cut=-1,
int last_cut=-1,
164 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
167 void DrawEventsVSCut(
DataSample& sample ,
int isel,
int branch,
const std::string& cut_norm=
"",
int first_cut=-1,
int last_cut=-1,
168 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
171 void DrawEffVSCut(
DataSample& sample ,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
172 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
175 void DrawEffVSCut(
DataSample& sample ,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
176 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
179 void DrawEffVSCut(
DataSample& sample ,
int isel,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
180 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
183 void DrawPurVSCut(
DataSample& sample ,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
184 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
187 void DrawPurVSCut(
DataSample& sample ,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
188 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
191 void DrawPurVSCut(
DataSample& sample ,
int isel,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
192 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"")
198 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=-1.,
bool pot_norm=
true);
200 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=-1.,
bool pot_norm=
true);
202 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=-1.,
bool pot_norm=
true);
206 void DrawEffPurVSCut(
DataSample& sample,
const std::string& signal,
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
207 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
209 void DrawEffPurVSCut(
DataSample& sample,
int branch,
const std::string& signal,
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
210 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
212 void DrawEffPurVSCut(
DataSample& sample,
int isel,
int branch,
const std::string& signal,
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
213 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
215 void DrawEffPurVSCut(
DataSample& sample,
int isel,
int branch,
const std::string& signal,
const std::string& precut,
216 int first_cut_pur,
int last_cut_pur,
int first_cut_eff,
int last_cut_eff,
217 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
253 void DrawToys(
Experiment& exp,
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
256 void Draw(
Experiment& exp,
const std::string& var,
int nx,
double xmin,
double xmax,
257 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
258 void Draw(
Experiment& exp,
const std::string& var,
int nbins,
double* xbins,
259 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
261 void Draw(
Experiment& exp,
const std::string& var,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
262 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
263 void Draw(
Experiment& exp,
const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
264 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
268 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& var,
int nx,
double xmin,
double xmax,
269 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
270 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& var,
int nbins,
double* xbins,
271 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
273 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& var,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
274 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
275 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
276 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
280 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
281 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
282 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nbins,
double* xbins,
283 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
285 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
286 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
287 void Draw(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
288 const std::string& categ=
"all",
const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
double norm=-1.,
bool scale_errors=
true);
296 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
bool scale_errors=
true,
const std::string& normtype=
"POT");
298 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
bool scale_errors=
true,
const std::string& normtype=
"POT");
301 void GetEventsVSCut(
Experiment& exp,
const std::string& name,
const std::string& cut_norm,
int isel,
int ibranch,
int& first_cut,
int& last_cut,
302 const std::string& root_opt,
const std::string& opt, TH1_h*& data, TH1_h*& mc);
305 void DrawEventsVSCut(
Experiment& exp,
const std::string& cut_norm=
"",
int first_cut=-1,
int last_cut=-1,
306 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
308 void DrawEventsVSCut(
Experiment& exp,
int branch,
const std::string& cut_norm=
"",
int first_cut=-1,
int last_cut=-1,
309 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
311 void DrawEventsVSCut(
Experiment& exp,
int isel,
int branch,
const std::string& cut_norm=
"",
int first_cut=-1,
int last_cut=-1,
312 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
314 void DrawPurVSCut(
Experiment& exp,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
315 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
317 void DrawPurVSCut(
Experiment& exp,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
318 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
320 void DrawPurVSCut(
Experiment& exp,
int isel,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
321 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
323 void DrawEffVSCut(
Experiment& exp,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
324 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
326 void DrawEffVSCut(
Experiment& exp,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
327 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
329 void DrawEffVSCut(
Experiment& exp,
int isel,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
330 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
332 void DrawEffPurVSCut(
Experiment& exp ,
const std::string& signal,
const std::string& precut,
int first_cut,
int last_cut,
333 const std::string& root_opt,
const std::string& opt=
"",
const std::string& leg=
"");
335 void DrawEffPurVSCut(
Experiment& exp ,
int branch,
const std::string& signal,
const std::string& precut,
int first_cut,
int last_cut,
336 const std::string& root_opt,
const std::string& opt=
"",
const std::string& leg=
"");
338 void DrawEffPurVSCut(
Experiment& exp ,
int isel,
int branch,
const std::string& signal,
const std::string& precut,
int first_cut,
int last_cut,
339 const std::string& root_opt,
const std::string& opt=
"",
const std::string& leg=
"");
341 void DrawEffPurVSCut(
Experiment& exp ,
int isel,
int branch,
const std::string& signal=
"",
const std::string& precut=
"",
342 int first_cut_pur=-1,
int last_cut_pur=-1,
int first_cut_eff=-1,
int last_cut_eff=-1,
343 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
346 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
349 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
351 void DrawRatioVSCut(
Experiment& exp,
int isel,
int branch,
const std::string& precut=
"",
int first_cut=-1,
int last_cut=-1,
352 const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
355 void DrawEff(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double xmin,
double xmax,
356 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"",
const std::string& leg_name =
"");
357 void DrawEff(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double* xbins,
358 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"",
const std::string& leg_name =
"");
360 void DrawEffNew(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double xmin,
double xmax,
361 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt1 =
"",
const std::string& opt2 =
"",
362 const std::string& leg_name =
"");
363 void DrawEffNew(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double* xbins,
364 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt1 =
"",
const std::string& opt2 =
"",
365 const std::string& leg_name =
"");
367 void DrawRatioNew(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double xmin,
double xmax,
368 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt1 =
"",
const std::string& opt2 =
"");
369 void DrawRatioNew(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double* xbins,
370 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt1 =
"",
const std::string& opt2 =
"");
372 void DrawPur(
Experiment& exp,
const std::string& var,
int nx,
double xmin,
double xmax,
373 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"",
const std::string& leg_name =
"");
374 void DrawPur(
Experiment& exp,
const std::string& var,
int nx,
double* xbins,
375 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"",
const std::string& leg_name =
"");
378 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"");
379 double GetEff(
Experiment& exp,
bool usedata,
double& errlow,
double& errhigh,
double& nev1,
double& nev2,
380 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"");
381 TGraphAsymmErrors* GetEff(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double* xbins,
double& nev1,
double& nev2,
382 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt =
"",
bool scale_errors =
true);
383 TGraphAsymmErrors* GetEffNew(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double* xbins,
double& nev1,
double& nev2,
384 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt1 =
"",
385 const std::string& opt2 =
"",
bool scale_errors =
true);
387 void DrawRatioNew(
Experiment& exp,
bool usedata,
const std::string& var,
int nx,
double* xbins,
double& nev1,
double& nev2,
388 const std::string& cut1,
const std::string& cut2,
const std::string& root_opt =
"",
const std::string& opt1 =
"",
389 const std::string& opt2 =
"",
bool scale_errors =
true);
391 void DrawRatio(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
int ny,
double* ybins,
392 const std::string& cut,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
394 void DrawRatio(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
395 const std::string& cut,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
397 void DrawRatio(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
398 const std::string& cut,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
400 void DrawRatio(
Experiment& exp,
const std::string& var,
int nx,
double* xbins,
401 const std::string& cut,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
403 void DrawRatio(
Experiment& exp,
const std::string& var,
int nx,
double xmin,
double xmax,
404 const std::string& cut,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"");
407 void AnalysisResults(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& cut,
const std::string& opt,
const std::string& categ=
"all");
409 void AnalysisResults(
Experiment& exp,
const std::string& cut,
const std::string& opt=
"",
const std::string& categ=
"all");
415 Double_t DrawErrorsBase(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
416 const std::string& cut=
"",
bool relative=
false,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
418 Double_t DrawErrorsBase(
HistoStack* hs,
bool relative,
const std::string& root_opt,
const std::string& opt,
const std::string& leg);
423 Double_t
DrawErrors(TTree* tree,
const std::string& var,
int nx,
double xmin,
double xmax,
424 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
425 Double_t DrawRelativeErrors(TTree* tree,
const std::string& var,
int nx,
double xmin,
double xmax,
426 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
427 Double_t
DrawErrors(TTree* tree,
const std::string& var,
int nx,
double* xbins,
428 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
429 Double_t DrawRelativeErrors(TTree* tree,
const std::string& var,
int nx,
double* xbins,
430 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
433 Double_t DrawRelativeErrors(TTree* tree1, TTree* tree2,
const std::string& var,
int nx,
double xmin,
double xmax,
434 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
435 Double_t DrawRelativeErrors(TTree* tree1, TTree* tree2,
const std::string& var,
int nx,
double* xbins,
436 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
441 Double_t
DrawErrors(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
442 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
443 Double_t DrawRelativeErrors(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
444 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
445 Double_t
DrawErrors(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
446 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
448 Double_t DrawRelativeErrors(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
449 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
454 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
455 Double_t DrawRelativeErrors(
Experiment& exp,
const std::string& var,
int nx,
double xmin,
double xmax,
456 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
458 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
460 Double_t DrawRelativeErrors(
Experiment& exp,
const std::string& var,
int nx,
double* xbins,
461 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
bool scale_errors=
false);
466 void DrawCovMatrix(TTree* tree,
const std::string& var,
int nx,
double xmin,
double xmax,
467 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
468 void DrawCovMatrix(TTree* tree,
const std::string& var,
int nx,
double* xbins,
469 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
472 void DrawCovMatrix(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
473 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
474 void DrawCovMatrix(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
475 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
479 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
481 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
484 const TMatrixD&
GetCovMatrix(TTree* tree,
const std::string& var,
int nx,
double* xbins,
485 const std::string& cut=
"",
const std::string& uopt=
"");
486 const TMatrixD&
GetCovMatrix(TTree* tree,
const std::string& var,
int nx,
double xmin,
double xmax,
487 const std::string& cut=
"",
const std::string& uopt=
"");
490 const TMatrixD&
GetCovMatrix(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double xmin,
double xmax,
491 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
492 const TMatrixD&
GetCovMatrix(
Experiment& exp,
const std::string& groupName,
const std::string& mcSampleName,
const std::string& var,
int nx,
double* xbins,
493 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
497 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
499 const std::string& cut=
"",
const std::string& root_opt=
"",
const std::string& uopt=
"");
504 void DrawMatrix(
const TMatrixD& m,
int lc,
int lw,
int fc,
int fs,
const std::string& root_opt=
"",
const std::string& opt=
"");
506 void SetTreeForSystErrors(TTree* tree){_treeForSystErrors= tree;}
511 Double_t DrawErrorsBase(TTree* tree,
const std::string& var,
int nx,
double* xbins,
512 const std::string& cut=
"",
bool relative=
false,
const std::string& root_opt=
"",
const std::string& opt=
"",
const std::string& leg=
"",
double norm=1,
bool scale_errors=
false);
514 TTree* _treeForSystErrors;
TTree * GetTree(Int_t index)
Returns the a tree with a given index.