31 #include <G4SystemOfUnits.hh>
45 , m_outfileN(filename)
64 std::cout << std::endl
65 <<
"CALL EICG4dRICHTree::Init" << std::endl;
77 std::cout << std::endl
78 <<
"CALL EICG4dRICHTree::process_event"
79 <<
" ====================" << std::endl;
91 <<
"CALL EICG4dRICHTree::End" << std::endl;
107 PHG4HitContainer *hitCont = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_dRICH_0");
111 std::cerr <<
"ERROR: hitCont not found" << std::endl;
116 if (
evnum % 100 == 0)
117 std::cout <<
">" <<
evnum <<
" events processed" << std::endl;
120 auto hitRange = hitCont->
getHits();
121 for (
auto hitIter = hitRange.first; hitIter != hitRange.second; hitIter++)
127 std::cout <<
"----- HIT PRINTOUT:" << std::endl;
154 arr[0] = (Double_t) vec.x();
155 arr[1] = (Double_t) vec.y();
156 arr[2] = (Double_t) vec.z();
162 m_tree =
new TTree(
"tree",
"tree");