32 PHG4HitContainer *phc = findNode::getClass<PHG4HitContainer>(topNode,
"PHG4Hit");
35 cout <<
"No PHG4Hit found" << endl;
39 std::pair<PHG4HitContainer::ConstIterator,PHG4HitContainer::ConstIterator> hititer = phc->
getHits(1);
41 begin = hititer.first;
43 for (it=begin; it !=
end; ++
it)
45 cout <<
"key: 0x" << hex << it->first << dec << endl;
46 cout <<
"x: " << it->second->get_x(0) << endl;
48 cout <<
"detid: 2" << endl;
50 begin = hititer.first;
52 for (it=begin; it !=
end; ++
it)
54 cout <<
"key: 0x" << hex << it->first << dec << endl;
55 cout <<
"x: " << it->second->get_x(0) << endl;
57 cout <<
"detid: 3" << endl;
59 begin = hititer.first;
61 for (it=begin; it !=
end; ++
it)
63 cout <<
"key: 0x" << hex << it->first << dec << endl;
64 cout <<
"x: " << it->second->get_x(0) << endl;