ATLAS Offline Software
Loading...
Searching...
No Matches
MaterialTrackRecorderTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace ActsTrk
8{
10 const std::string& name,
11 const IInterface* parent)
13 {
14 }
15
16 std::unique_ptr<MaterialTrackRecorder>
18 {
19 ATH_MSG_DEBUG("Constructing a MaterialTrackRecorder action");
20
22 config.materialTrackCollectionName = m_materialTrackCollectionName.value();
23
24 auto action = std::make_unique<MaterialTrackRecorder>(config);
25 actionList.runActions.push_back( action.get() );
26 actionList.eventActions.push_back( action.get() );
27 actionList.steppingActions.push_back( action.get() );
28 return action;
29 }
30
31}
#define ATH_MSG_DEBUG(x)
Gaudi::Property< std::string > m_materialTrackCollectionName
The name of the recorded material track collection.
virtual std::unique_ptr< MaterialTrackRecorder > makeAndFillAction(G4UA::G4AtlasUserActions &) override final
Make the action and push onto the lists.
MaterialTrackRecorderTool(const std::string &type, const std::string &name, const IInterface *parent)
Collects the G4 steps and writes out RecordedMaterialTrackCollection to a store gate.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Struct for passing around user actions.
std::vector< G4UserSteppingAction * > steppingActions
std::vector< G4UserEventAction * > eventActions
std::vector< G4UserRunAction * > runActions