|
ATLAS Offline Software
|
Go to the documentation of this file.
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)
23 declareInterface<ITriggerTime>(
this);
33 CHECK( service(
"IncidentSvc",incsvc) );
36 incsvc->addListener(
this,
"BeginEvent",pri);
40 return StatusCode::SUCCESS;
62 if (
sc!=StatusCode::SUCCESS) {
67 int n = coll->
size() ;
75 for (
auto it : *coll) {
77 CLHEP::Hep3Vector
pos =
it.GetPosition();
78 CLHEP::Hep3Vector
p =
it.GetMomentum();
81 <<
pos.y() <<
" " <<
pos.z() );
83 <<
p.y() <<
" " <<
p.z() );
128 std::vector<std::string>
keys ;
129 keys.push_back(
"LArHitEMB") ;
130 keys.push_back(
"LArHitEMEC") ;
131 keys.push_back(
"LArHitHEC") ;
132 keys.push_back(
"LArHitFCAL") ;
134 std::vector<std::string>::const_iterator
it =
keys.begin() ;
135 std::vector<std::string>::const_iterator it_e =
keys.end() ;
140 for (;
it!=it_e;++
it) {
147 for (;hit_it!=hit_it_e;++hit_it) {
148 const LArHit * hit = (*hit_it);
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
Class to store hit energy and time in LAr cell from G4 simulation.
#define ATH_MSG_WARNING(x)
const_iterator end() const
const_iterator begin() const