34 if (x >
_x_max)
return false;
35 if (x < -
_x_max)
return false;
36 if (z >
_z_max + gap)
return false;
37 if (z < -
_z_max - gap)
return false;
38 if (y >
_y_fix + gap)
return false;
39 if (y < -
_y_fix - gap)
return false;
64 PHG4InEvent *inevent = findNode::getClass<PHG4InEvent>(topNode,
"PHG4INEVENT");
81 if (
Verbosity() > 0) std::cout <<
"Processing Event" << std::endl;
86 double gun_x = 0, gun_y = 0, gun_z = 0;
87 double gun_px = 0, gun_py = 0, gun_pz = 0;
88 bool GoodEvent =
false;
94 _gun_e = sqrt(0.105658 * 0.105658 + muon_p * muon_p);
105 gun_px = muon_p * sin(tr) * sin(pr);
106 gun_py = -1 * fabs(muon_p * cos(tr));
107 gun_pz = muon_p * sin(tr) * cos(pr);
109 gun_x = muon_position[1] * 100;
110 gun_y = muon_position[2] * 100;
111 gun_z = muon_position[0] * 100;
114 double upx = gun_px / muon_p;
115 double upy = gun_py / muon_p;
116 double upz = gun_pz / muon_p;
142 PHG4InEvent *inevent = findNode::getClass<PHG4InEvent>(topNode,
"PHG4INEVENT");
143 int vtxindex = inevent->
AddVtx(gun_x, gun_y, gun_z, gun_t);
158 std::cout <<
"Momentum: " << gun_px <<
" / " << gun_py <<
" / " << gun_pz << std::endl;
159 std::cout <<
"total mom: " <<
_gun_e << std::endl;
160 std::cout <<
"track_id: " << trackid << std::endl;
161 std::cout <<
"vtxindex: " << vtxindex << std::endl;
162 std::cout <<
"pdgname: " << pdgname << std::endl;
163 std::cout <<
"pdgcode: " << pdgcode << std::endl;