7#include "GaudiKernel/IIncidentSvc.h"
14#include "CLHEP/Vector/ThreeVector.h"
17 const std::string& name,
18 const IInterface* parent) :
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() ;
75 CLHEP::Hep3Vector pos =
r.GetPosition();
76 CLHEP::Hep3Vector p =
r.GetMomentum();
78 << pos.y() <<
" " << pos.z() );
80 << p.y() <<
" " << p.z() );
108 else if ( StatusCode::SUCCESS == evtStore()->retrieve(
m_comTime) ) {
125 std::vector<std::string> keys ;
126 keys.push_back(
"LArHitEMB") ;
127 keys.push_back(
"LArHitEMEC") ;
128 keys.push_back(
"LArHitHEC") ;
129 keys.push_back(
"LArHitFCAL") ;
131 std::vector<std::string>::const_iterator it = keys.begin() ;
132 std::vector<std::string>::const_iterator it_e = keys.end() ;
137 for (;it!=it_e;++it) {
140 CHECK( evtStore()->retrieve(cont,(*it)), 0 );
144 for (;hit_it!=hit_it_e;++hit_it) {
145 const LArHit * hit = (*hit_it);
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
AtlasHitsVector< TrackRecord > TrackRecordCollection
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
const_iterator end() const
const_iterator begin() const
Class to store hit energy and time in LAr cell from G4 simulation.