11 gStyle->SetOptStat(kFALSE);
19 TChain*
T1 =
new TChain(
"EICTree");
20 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_1.root");
21 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_2.root");
22 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_3.root");
23 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_4.root");
24 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_5.root");
25 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_6.root");
26 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_7.root");
27 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_8.root");
28 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_9.root");
29 T1->AddFile(
"data/bpage/origin/pythia.ep.20x250.250Kevents.Q2=1.0-10.0.PDF=10800_10.root");
42 TChain*
T =
new TChain(
"EICTree");
54 TCut electron_cut =
"particles.id == 11";
56 TCut proton_cut =
"particles.id == 2212";
57 TCut neutron_cut =
"particles.id == 2112";
58 TCut Kaon_cut =
"abs(particles.id) == 321 || particles.id == 311";
59 TCut Pion_charged_cut =
"abs(particles.id) == 211";
61 TCut photon_cut =
"particles.id == 22";
63 TCut mother_cut =
"particles.parentId == 0";
64 TCut status_cut =
"particles.KS == 1";
66 TCut eta_cut_n3n2 =
"particles.eta > -3 && particles.eta < -2";
67 TCut eta_cut_n2n1 =
"particles.eta > -2 && particles.eta < -1";
68 TCut eta_cut_n1z0 =
"particles.eta > -1 && particles.eta < -0";
94 TH2F *h_p_eta_h =
new TH2F(
"h_p_eta_h",
"", 80,-5,5, 50,0,70);
96 TCanvas *c_p_eta_h =
new TCanvas(
"c_p_eta_h" );
97 c_p_eta_h->SetRightMargin(0.12);
99 T->Draw(
"particles.p : particles.eta>>h_p_eta_h",hadron_cut &&
"trueQ2 > 1 && trueY > 0.01 && trueY < 0.80 && trueW2 > 10 && particles.z > 0.2",
"colz");
113 h_p_eta_h->GetXaxis()->SetTitle(
"Pseudorapidity #eta");
114 h_p_eta_h->GetYaxis()->SetTitle(
"Hadron Momentum p_{Hadron} [GeV]");
115 c_p_eta_h->SetLogz();
117 h_p_eta_h->Draw(
"colz");
120 TBox * b_cpid =
new TBox(-1.55,0.8,1.242,6);
121 b_cpid->SetFillStyle(0);
122 b_cpid->SetLineWidth(2);
123 b_cpid->Draw(
"sameL");
125 TBox * b_epid =
new TBox(-4,2,-1.55,8);
126 b_epid->SetFillStyle(0);
127 b_epid->SetLineWidth(2);
128 b_epid->Draw(
"sameL");
130 TBox * b_fpid0 =
new TBox(1.242,15,4,50);
131 b_fpid0->SetFillStyle(0);
132 b_fpid0->SetLineWidth(2);
133 b_fpid0->Draw(
"sameL");
135 TBox * b_fpid1 =
new TBox(1.242,2,1.85,8);
136 b_fpid1->SetFillStyle(0);
137 b_fpid1->SetLineWidth(2);
138 b_fpid1->Draw(
"sameL");
140 TBox * b_fpid2 =
new TBox(1.85,0,4,8);
141 b_fpid2->SetFillStyle(0);
142 b_fpid2->SetLineWidth(2);
143 b_fpid2->Draw(
"sameL");