12 gStyle->SetOptStat(0);
14 TFile *fin =
new TFile(
"../../data/Sample_DISReco_ep.root",
"OPEN");
17 TTree *t_reco = (TTree*)fin->Get(
"event_cluster");
21 hQ2_reco_truth->SetName(
"hQ2_reco_truth");
22 hQ2_reco_truth->GetXaxis()->SetTitle(
"Q^{2}_{truth} (GeV^{2})");
23 hQ2_reco_truth->GetYaxis()->SetTitle(
"Q^{2}_{reco} (GeV^{2})");
26 TCanvas *c1 =
new TCanvas();
30 t_reco->Draw(
"em_reco_q2_e:evtgen_Q2 >> hQ2_reco_truth",
"em_evtgen_pid==11",
"colz");
31 c1->Print(
"plots/reco_xQ2_1.eps");
35 hx_reco_truth->SetName(
"hx_reco_truth");
36 hx_reco_truth->GetXaxis()->SetTitle(
"x_{truth}");
37 hx_reco_truth->GetYaxis()->SetTitle(
"x_{reco}");
40 TCanvas *
c2 =
new TCanvas();
44 t_reco->Draw(
"em_reco_q2_e:evtgen_x >> hx_reco_truth",
"em_evtgen_pid==11",
"colz");
45 c2->Print(
"plots/reco_xQ2_2.eps");
48 TH2F* hW_reco_truth =
new TH2F(
"hW_reco_truth",
"W_{truth};W_{reco}",50,0,100,50,0,100);
49 hW_reco_truth->SetName(
"hW_reco_truth");
50 hW_reco_truth->GetXaxis()->SetTitle(
"W_{truth}");
51 hW_reco_truth->GetYaxis()->SetTitle(
"W_{reco}");
54 TCanvas *c3 =
new TCanvas();
58 t_reco->Draw(
"em_reco_w_e:evtgen_W >> hW_reco_truth",
"em_evtgen_pid==11",
"colz");
59 c3->Print(
"plots/reco_xQ2_3.eps");
62 TH2F* hy_reco_truth =
new TH2F(
"hy_reco_truth",
"y_{truth};y_{reco}",100,0,1,100,0,1);
63 hy_reco_truth->SetName(
"hy_reco_truth");
64 hy_reco_truth->GetXaxis()->SetTitle(
"y_{truth}");
65 hy_reco_truth->GetYaxis()->SetTitle(
"y_{reco}");
68 TCanvas *c4 =
new TCanvas();
72 t_reco->Draw(
"em_reco_y_e:evtgen_y >> hy_reco_truth",
"em_evtgen_pid==11",
"colz");
73 c4->Print(
"plots/reco_xQ2_4.eps");