7 #include "GaudiKernel/IIncidentSvc.h"
14 #include "CLHEP/Vector/ThreeVector.h"
17 const std::string&
name,
18 const IInterface*
parent) :
20 m_comTime(0) , m_useLArTime(false)
32 CHECK( incsvc.retrieve() );
35 incsvc->addListener(
this,
"BeginEvent",pri);
39 return StatusCode::SUCCESS;
60 StatusCode sc = evtStore()->retrieve(coll,
"CaloMuonRecorder");
61 if (
sc!=StatusCode::SUCCESS) {
66 int n = coll->
size() ;
74 for (
auto it : *coll) {
76 CLHEP::Hep3Vector
pos =
it.GetPosition();
77 CLHEP::Hep3Vector
p =
it.GetMomentum();
80 <<
pos.y() <<
" " <<
pos.z() );
82 <<
p.y() <<
" " <<
p.z() );
127 std::vector<std::string>
keys ;
128 keys.push_back(
"LArHitEMB") ;
129 keys.push_back(
"LArHitEMEC") ;
130 keys.push_back(
"LArHitHEC") ;
131 keys.push_back(
"LArHitFCAL") ;
133 std::vector<std::string>::const_iterator
it =
keys.begin() ;
134 std::vector<std::string>::const_iterator it_e =
keys.end() ;
139 for (;
it!=it_e;++
it) {
146 for (;hit_it!=hit_it_e;++hit_it) {
147 const LArHit * hit = (*hit_it);