ATLAS Offline Software
AthenaTrackingAction.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4AtlasAlg_AthenaTrackingAction_H
6 #define G4AtlasAlg_AthenaTrackingAction_H
7 
9 
10 #include "G4UserTrackingAction.hh"
11 
12 namespace G4UA
13 {
14 
18  class AthenaTrackingAction : public G4UserTrackingAction, public AthMessaging
19  {
20 
21  public:
22 
24  AthenaTrackingAction(MSG::Level lvl, int secondarySavingLevel, int subDetVolLevel);
25 
31  virtual void PreUserTrackingAction(const G4Track*) override final;
32 
36  virtual void PostUserTrackingAction(const G4Track*) override final;
37 
38  private:
39 
44 
45  }; // class AthenaTrackingAction
46 
47 } // namespace G4UA
48 
49 #endif
G4UA::AthenaTrackingAction::AthenaTrackingAction
AthenaTrackingAction(MSG::Level lvl, int secondarySavingLevel, int subDetVolLevel)
Constructor.
Definition: AthenaTrackingAction.cxx:24
G4UA::AthenaTrackingAction::m_subDetVolLevel
int m_subDetVolLevel
The level in the G4 volume hierarchy at which can we find the sub-detector name.
Definition: AthenaTrackingAction.h:43
G4UA::AthenaTrackingAction::PreUserTrackingAction
virtual void PreUserTrackingAction(const G4Track *) override final
Called before tracking a new particle.
Definition: AthenaTrackingAction.cxx:36
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
G4UA::AthenaTrackingAction
User action for pre/post tracking truth handling.
Definition: AthenaTrackingAction.h:19
G4UA::AthenaTrackingAction::PostUserTrackingAction
virtual void PostUserTrackingAction(const G4Track *) override final
Called after tracking a particle.
Definition: AthenaTrackingAction.cxx:77
G4UA::AthenaTrackingAction::m_secondarySavingLevel
int m_secondarySavingLevel
The saving level for secondaries.
Definition: AthenaTrackingAction.h:41
AthMessaging.h