43 :
h_de_th_x(new TH1D(
"",
";#Delta#theta_{x} (rad)", 100, 0., 0.)),
44 h_de_th_y(new TH1D(
"",
";#Delta#theta_{y} (rad)", 100, 0., 0.)),
45 h_de_p(new TH1D(
"",
";#Deltap (GeV)", 100, 0., 0.)) {}
61 using namespace HepMC;
68 outputFile_(iConfig.getParameter<
string>(
"outputFile")),
69 h_de_vtx_x_(new TH1D(
"h_de_vtx_x",
";#Delta vtx_{x} (mm)", 100, 0., 0.)),
70 h_de_vtx_y_(new TH1D(
"h_de_vtx_y",
";#Delta vtx_{y} (mm)", 100, 0., 0.)),
71 h_de_vtx_z_(new TH1D(
"h_de_vtx_z",
";#Delta vtx_{z} (mm)", 100, 0., 0.)),
72 h_de_vtx_t_(new TH1D(
"h_de_vtx_t",
";#Delta vtx_{t} (mm)", 100, 0., 0.)) {}
87 GenEvent::vertex_const_iterator vold, vnew;
88 for (vold = orig->vertices_begin(), vnew = smear->vertices_begin();
89 vold != orig->vertices_end() && vnew != smear->vertices_end();
91 const FourVector &vo = (*vold)->position();
92 const FourVector &vn = (*vnew)->position();
102 GenEvent::particle_const_iterator pold, pnew;
103 for (pold = orig->particles_begin(), pnew = smear->particles_begin();
104 pold != orig->particles_end() && pnew != smear->particles_end();
106 FourVector
o = (*pold)->momentum(),
n = (*pnew)->momentum();
110 const double thetaLim = 0.01;
111 double th =
o.theta();
115 if (th > (
M_PI - thetaLim))
130 double othx =
o.x() /
o.rho(), othy =
o.y() /
o.rho();
131 double nthx =
n.x() /
n.rho(), nthy =
n.y() /
n.rho();
133 sp.h_de_p->Fill(
n.rho() -
o.rho());
135 sp.h_de_th_x->Fill(nthx - othx);
136 sp.h_de_th_y->Fill(nthy - othy);
143 auto f_out = std::make_unique<TFile>(
outputFile_.c_str(),
"recreate");
150 gDirectory = f_out->mkdir(
"sector 45");
153 gDirectory = f_out->mkdir(
"sector 56");