9#include "G4EventManager.hh"
22 int secondarySavingLevel,
int subDetVolLevel)
42#ifndef ATHSIMULATION_USE_ADEPT
49 ATH_MSG_DEBUG(
"Preparing an AtlasTrajectory for saving truth");
56 auto trkMgr = G4EventManager::GetEventManager()->GetTrackingManager();
58 trkMgr->SetStoreTrajectory(
true);
59 trkMgr->SetTrajectory(trajectory);
73#ifndef ATHSIMULATION_USE_ADEPT
76 G4EventManager::GetEventManager()->GetTrackingManager()->
77 SetStoreTrajectory(
false);
void setLevel(MSG::Level lvl)
Change the current logging level.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Class to store G4 trajectory information.
AthenaTrackingAction(MSG::Level lvl, int secondarySavingLevel, int subDetVolLevel)
Constructor.
int m_subDetVolLevel
The level in the G4 volume hierarchy at which can we find the sub-detector name.
virtual void PreUserTrackingAction(const G4Track *) override final
Called before tracking a new particle.
virtual void PostUserTrackingAction(const G4Track *) override final
Called after tracking a particle.
int m_secondarySavingLevel
The saving level for secondaries.
bool IsRegisteredSecondary() const