3 #include "TEfficiency.h"
5 #include "TGraphErrors.h"
13 #include "TRatioPlot.h"
25 gStyle->SetOptStat(0);
28 TCanvas* pad =
new TCanvas(
"pad",
"",800,600);
29 TLegend * legend =
nullptr;
30 TH1F* htemplate =
nullptr;
32 auto default_data =
new TChain(
"tree");
33 default_data->SetTitle(input.Data());
34 auto files =
fileVector(Form(
"%s/%s/%s", dir.Data(), input.Data(), filePattern.Data()));
38 default_data->Add(
file.c_str());
43 TString common_title =
"NC-DIS, 10GeVx275GeV, Q^{2}>100 GeV^{2}";
58 strangejets.
htemplate =
new TH1F(
"ks_zhadron_template",
"",100,0,1.5);
59 strangejets.
xtitle =
"K_{s}^{0} z_{hadron}";
60 strangejets.
ytitle =
"K_{s}^{0} Candidates in Jets";
66 auto strange_Ks_zhadron =
GeneratePlot(strangejets, default_data,
"jet_Ks_zhadron_strange",
"jet_Ks_zhadron", TCut(
"jet_flavor==3"));
67 auto light_Ks_zhadron =
GeneratePlot(lightjets, default_data,
"jet_Ks_zhadron_light",
"jet_Ks_zhadron", TCut(
"(jet_flavor<3 || jet_flavor==21)"));
71 light_Ks_zhadron->DrawNormalized(
"HIST");
72 strange_Ks_zhadron->DrawNormalized(
"E1 SAME");
75 legend->AddEntry(light_Ks_zhadron,
"Light Jets",
"lp");
76 legend->AddEntry(strange_Ks_zhadron,
"Strange Jets",
"lp");
81 pad->SaveAs(
"Ks_zhadron.pdf");
85 strangejets.
htemplate =
new TH1F(
"k_zhadron_template",
"",100,0,1.5);
86 strangejets.
xtitle =
"K^{#pm} z_{hadron}";
87 strangejets.
ytitle =
"K^{#pm} Candidates in Jets";
93 auto strange_K_zhadron =
GeneratePlot(strangejets, default_data,
"jet_K_zhadron_strange",
"jet_K_zhadron", TCut(
"jet_flavor==3"));
94 auto light_K_zhadron =
GeneratePlot(lightjets, default_data,
"jet_K_zhadron_light",
"jet_K_zhadron", TCut(
"(jet_flavor<3 || jet_flavor==21)"));
98 light_K_zhadron->DrawNormalized(
"HIST");
99 strange_K_zhadron->DrawNormalized(
"E1 SAME");
102 legend->AddEntry(light_K_zhadron,
"Light Jets",
"lp");
103 legend->AddEntry(strange_K_zhadron,
"Strange Jets",
"lp");
108 pad->SaveAs(
"K_zhadron.pdf");
112 strangejets.
htemplate =
new TH1F(
"jetcharge_template",
"",100,-1.5,1.5);
113 strangejets.
xtitle =
"Jet Charge (#kappa = 0.5)";
114 strangejets.
ytitle =
"Jet Candidates";
120 auto ujets = lightjets;
123 auto djets = lightjets;
126 auto gjets = lightjets;
128 gjets.linecolor = kGray;
133 auto strange_jetcharge =
GeneratePlot(strangejets, default_data,
"jet_charge_strange",
"jet_charge", TCut(
"jet_flavor==3"));
134 auto u_jetcharge =
GeneratePlot(ujets, default_data,
"jet_charge_u",
"jet_charge", TCut(
"(jet_flavor==2)"));
135 auto d_jetcharge =
GeneratePlot(djets, default_data,
"jet_charge_d",
"jet_charge", TCut(
"(jet_flavor==1)"));
136 auto g_jetcharge =
GeneratePlot(gjets, default_data,
"jet_charge_g",
"jet_charge", TCut(
"(jet_flavor==21)"));
140 auto hist = g_jetcharge->DrawNormalized(
"HIST");
141 u_jetcharge->DrawNormalized(
"HIST SAME");
142 d_jetcharge->DrawNormalized(
"HIST SAME");
143 strange_jetcharge->DrawNormalized(
"E1 SAME");
145 hist->SetAxisRange(0.0, 0.035,
"Y");
148 legend->AddEntry(g_jetcharge,
"Gluon Jets",
"lf");
149 legend->AddEntry(u_jetcharge,
"Up Jets",
"lf");
150 legend->AddEntry(d_jetcharge,
"Down Jets",
"lf");
151 legend->AddEntry(strange_jetcharge,
"Strange Jets",
"lp");
158 pad->SaveAs(
"jet_charge.pdf");