ATLAS Offline Software
Simulation
G4Atlas
G4AtlasServices
src
G4AtlasTrackingAction.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Local includes
6
#include "
G4AtlasTrackingAction.h
"
7
8
namespace
G4UA
9
{
10
11
//---------------------------------------------------------------------------
12
// Constructor
13
//---------------------------------------------------------------------------
14
G4AtlasTrackingAction::G4AtlasTrackingAction
()
15
{
16
}
17
18
//---------------------------------------------------------------------------
19
// Pre-tracking action
20
//---------------------------------------------------------------------------
21
void
G4AtlasTrackingAction::PreUserTrackingAction
(
const
G4Track* trk)
22
{
23
// Loop over my pre-actions and apply each one in turn
24
for
(
auto
action
:
m_trackActions
){
25
action
->PreUserTrackingAction(trk);
26
}
27
}
28
29
//---------------------------------------------------------------------------
30
// Post-tracking action
31
//---------------------------------------------------------------------------
32
void
G4AtlasTrackingAction::PostUserTrackingAction
(
const
G4Track* trk)
33
{
34
// Loop over my post-actions and apply each one in turn
35
for
(
auto
action
:
m_trackActions
){
36
action
->PostUserTrackingAction(trk);
37
}
38
}
39
40
//---------------------------------------------------------------------------
41
// Add one action to the list
42
//---------------------------------------------------------------------------
43
void
G4AtlasTrackingAction::addTrackAction
(G4UserTrackingAction*
action
)
44
{
45
m_trackActions
.push_back(
action
);
46
}
47
48
}
// namespace G4UA
G4UA
for nSW
Definition:
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasTrackingAction::G4AtlasTrackingAction
G4AtlasTrackingAction()
Constructor.
Definition:
G4AtlasTrackingAction.cxx:14
G4UA::G4AtlasTrackingAction::PostUserTrackingAction
void PostUserTrackingAction(const G4Track *trk) override final
Geant4 method for post-tracking action.
Definition:
G4AtlasTrackingAction.cxx:32
G4UA::G4AtlasTrackingAction::PreUserTrackingAction
void PreUserTrackingAction(const G4Track *trk) override final
Geant4 method for pre-tracking action.
Definition:
G4AtlasTrackingAction.cxx:21
G4UA::G4AtlasTrackingAction::addTrackAction
void addTrackAction(G4UserTrackingAction *action)
Add one action to the list.
Definition:
G4AtlasTrackingAction.cxx:43
G4UA::G4AtlasTrackingAction::m_trackActions
std::vector< G4UserTrackingAction * > m_trackActions
List of ATLAS actions.
Definition:
G4AtlasTrackingAction.h:51
G4AtlasTrackingAction.h
python.CaloScaleNoiseConfig.action
action
Definition:
CaloScaleNoiseConfig.py:77
Generated on Sun Dec 22 2024 21:10:42 for ATLAS Offline Software by
1.8.18