ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsMaterial
src
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
5
#include "
MaterialTrackRecorderTool.h
"
6
7
namespace
ActsTrk
8
{
9
MaterialTrackRecorderTool::MaterialTrackRecorderTool
(
const
std::string&
type
,
10
const
std::string& name,
11
const
IInterface* parent)
12
:
G4UA
::
UserActionToolBase
<
MaterialTrackRecorder
>(
type
, name, parent)
13
{
14
}
15
16
std::unique_ptr<MaterialTrackRecorder>
17
MaterialTrackRecorderTool::makeAndFillAction
(
G4UA::G4AtlasUserActions
& actionList)
18
{
19
ATH_MSG_DEBUG
(
"Constructing a MaterialTrackRecorder action"
);
20
21
MaterialTrackRecorder::Config
config;
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
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
MaterialTrackRecorderTool.h
ActsTrk::MaterialTrackRecorderTool::m_materialTrackCollectionName
Gaudi::Property< std::string > m_materialTrackCollectionName
The name of the recorded material track collection.
Definition
MaterialTrackRecorderTool.h:28
ActsTrk::MaterialTrackRecorderTool::makeAndFillAction
virtual std::unique_ptr< MaterialTrackRecorder > makeAndFillAction(G4UA::G4AtlasUserActions &) override final
Make the action and push onto the lists.
Definition
MaterialTrackRecorderTool.cxx:17
ActsTrk::MaterialTrackRecorderTool::MaterialTrackRecorderTool
MaterialTrackRecorderTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
MaterialTrackRecorderTool.cxx:9
ActsTrk::MaterialTrackRecorder
Collects the G4 steps and writes out RecordedMaterialTrackCollection to a store gate.
Definition
MaterialTrackRecorder.h:36
G4UA::UserActionToolBase< MaterialTrackRecorder >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
ActsTrk::MaterialTrackRecorder::Config
Definition
MaterialTrackRecorder.h:38
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
G4UA::G4AtlasUserActions::steppingActions
std::vector< G4UserSteppingAction * > steppingActions
Definition
IUserActionTool.h:41
G4UA::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition
IUserActionTool.h:39
G4UA::G4AtlasUserActions::runActions
std::vector< G4UserRunAction * > runActions
Definition
IUserActionTool.h:36
type
Generated on
for ATLAS Offline Software by
1.17.0