ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace 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
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
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.