|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include "GaudiKernel/Bootstrap.h"
20 #include "GaudiKernel/ISvcLocator.h"
21 #include "GaudiKernel/IMessageSvc.h"
27 AthMessaging(
Gaudi::svcLocator()->service< IMessageSvc >(
"MessageSvc" ),
"EnergyConservationTest"),
28 m_evtStore(
"StoreGateSvc/StoreGateSvc",
"EnergyConservationTest"),
29 m_detStore(
"StoreGateSvc/DetectorStore",
"EnergyConservationTest"),
30 e_in(0), e_out(0), e_dep(0)
42 if (!
t->GetNextVolume())
e_out +=
t->GetTotalEnergy();
53 if (
m_evtStore->retrieve( ei ).isFailure() || !ei ){
69 e_dep +=
s->GetTotalEnergyDeposit();
virtual void UserSteppingAction(const G4Step *) override
virtual void EndOfEventAction(const G4Event *) override
@ Error
The sub-detector issued an error.
Class to provide easy MsgStream access and capabilities.
ServiceHandle< StoreGateSvc > m_evtStore
Pointer to StoreGate (event store by default)
Class describing the basic event information.
#define ATH_MSG_WARNING(x)
virtual void PreUserTrackingAction(const G4Track *) override
virtual void PostUserTrackingAction(const G4Track *) override
=============================================================================
bool updateErrorState(const EventFlagSubDet subDet, const EventFlagErrorState state) const
Update the error state for one particular sub-detector.
@ Core
Core flags describing the event.