5 TFile* file =
new TFile(
"dataDriven.root",
"RECREATE");
7 TH1F* FlatHist =
new TH1F(
"FlatHist",
"FlatHist", 2,0,2);
11 TH1F* Signal =
new TH1F(
"Signal",
"Signal", 2,0,2);
16 TH1F* Background1 =
new TH1F(
"Background1",
"Background1", 2,0,2);
23 TH1F* ControlRegion =
new TH1F(
"ControlRegion",
"ControlRegion", 2,0,2);
28 TH1F* StatUncert =
new TH1F(
"StatUncert",
"StatUncert", 2,0,2);
34 data->SetBinContent(1, 90);
35 data->SetBinContent(2, 110);
49 TFile* file =
new TFile(
"ShapeSys2D.root",
"RECREATE");
51 TH2F* signal =
new TH2F(
"signal",
"signal", 2,0,2, 2,0,2);
58 TH2F* background1 =
new TH2F(
"background1",
"background1", 2,0,2, 2,0,2);
65 TH2F* bkg1ShapeError =
new TH2F(
"bkg1ShapeError",
"bkg1ShapeError", 2,0,2, 2,0,2);
73 TH2F* background2 =
new TH2F(
"background2",
"background2", 2,0,2, 2,0,2);
80 TH2F* bkg2ShapeError =
new TH2F(
"bkg2ShapeError",
"bkg2ShapeError", 2,0,2, 2,0,2);
88 data->SetBinContent(1, 1, 122);
89 data->SetBinContent(2, 1, 122);
90 data->SetBinContent(1, 2, 132);
91 data->SetBinContent(2, 2, 132);
103 TFile* file =
new TFile(
"ShapeSys.root",
"RECREATE");
105 TH1F* signal =
new TH1F(
"signal",
"signal", 2,0,2);
110 TH1F* background1 =
new TH1F(
"background1",
"background1", 2,0,2);
115 TH1F* bkg1ShapeError =
new TH1F(
"bkg1ShapeError",
"bkg1ShapeError", 2,0,2);
121 TH1F* background2 =
new TH1F(
"background2",
"background2", 2,0,2);
126 TH1F* bkg2ShapeError =
new TH1F(
"bkg2ShapeError",
"bkg2ShapeError", 2,0,2);
132 data->SetBinContent(1, 122);
133 data->SetBinContent(2, 112);
145 TFile* file =
new TFile(
"StatError.root",
"RECREATE");
147 TH1F* FlatHist =
new TH1F(
"FlatHist",
"FlatHist", 2,0,2);
151 TH1F* signal =
new TH1F(
"signal",
"signal", 2,0,2);
156 TH1F* background1 =
new TH1F(
"background1",
"background1", 2,0,2);
161 TH1F* bkg1StatUncert =
new TH1F(
"bkg1StatUncert",
"bkg1StatUncert", 2,0,2);
166 TH1F* background2 =
new TH1F(
"background2",
"background2", 2,0,2);
171 data->SetBinContent(1, 122);
172 data->SetBinContent(2, 112);
184 TFile* example =
new TFile(
"example.root",
"RECREATE");
186 TH1F* signal =
new TH1F(
"signal",
"signal histogram (pb)", 2,1,2);
187 TH1F* background1 =
new TH1F(
"background1",
"background 1 histogram (pb)", 2,1,2);
188 TH1F* background2 =
new TH1F(
"background2",
"background 2 histogram (pb)", 2,1,2);
189 TH1F* statUncert =
new TH1F(
"background1_statUncert",
"statUncert", 2,1,2);
192 data->SetBinContent(1,122);
193 data->SetBinContent(2,112);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsiz=0) override
Write memory objects to this file.
void Close(Option_t *option="") override
Close a file.
1-D histogram with a float per channel (see TH1 documentation)
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
2-D histogram with a float per channel (see TH1 documentation)
void SetBinContent(Int_t bin, Double_t content) override
Set bin content.
void makeShapeSys2DDataset()
void makeShapeSysDataset()
void makeStatErrorDataSet()