82 std::cout <<
"TpcRS::TpcRS(const std::string &name) Calling ctor" << std::endl;
89 std::cout <<
"TpcRS::~TpcRS() Calling dtor" << std::endl;
95 std::cout <<
"TpcRS::Init(PHCompositeNode *topNode) Initializing" << std::endl;
102 std::cout <<
"TpcRS::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
109 std::cout <<
"TpcRS::process_event(PHCompositeNode *topNode)" << std::endl;
113 std::cout <<
PHWHERE <<
" ERROR: Can't find G4TruthInfo" << std::endl;
120 std::cout <<
"no G4HITS_TPC node" << std::endl;
127 tpcrs::SimulatedHit simu_hit;
128 if (hit_iter->second->get_trkid() == 0)
130 std::cout <<
"trackid=0, x: " << hit_iter->second->get_avg_x() << std::endl;
132 simu_hit.track_id = hit_iter->second->get_trkid();
133 simu_hit.particle_id = particle->
get_pid();
134 simu_hit.x = hit_iter->second->get_avg_x();
135 simu_hit.y = hit_iter->second->get_avg_y();
136 simu_hit.z = hit_iter->second->get_avg_z();
137 simu_hit.px = 0.5 * (hit_iter->second->get_px(0) + hit_iter->second->get_px(1));
138 simu_hit.py = 0.5 * (hit_iter->second->get_py(0) + hit_iter->second->get_py(1));
139 simu_hit.pz = 0.5 * (hit_iter->second->get_pz(0) + hit_iter->second->get_pz(1));
140 simu_hit.de = hit_iter->second->get_edep();
141 simu_hit.ds = hit_iter->second->get_path_length();
142 simu_hit.tof = hit_iter->second->get_avg_t();
155 std::cout <<
"TpcRS::ResetEvent(PHCompositeNode *topNode) Resetting internal structures, prepare for next event" << std::endl;
165 std::cout <<
"TpcRS::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
172 std::cout <<
"TpcRS::End(PHCompositeNode *topNode) This is the End..." << std::endl;
179 std::cout <<
"TpcRS::Reset(PHCompositeNode *topNode) being Reset" << std::endl;
186 std::cout <<
"TpcRS::Print(const std::string &what) const Printing info for " << what << std::endl;
191 cfg =
new tpcrs::Configurator(
"simple", filename);