ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_Geant4
ISF_Geant4Tools
src
TrackProcessorUserActionFullG4Tool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrackProcessorUserActionFullG4Tool.h
"
6
7
namespace
G4UA
8
{
9
10
namespace
iGeant4
11
{
12
13
TrackProcessorUserActionFullG4Tool::
14
TrackProcessorUserActionFullG4Tool
(
const
std::string&
type
,
15
const
std::string& name,
16
const
IInterface* parent)
17
:
UserActionToolBase
<
TrackProcessorUserActionFullG4
>(
type
, name, parent),
18
m_config
(name)
19
{
20
declareProperty(
"EntryLayerTool"
,
m_config
.entryLayerTool,
"ISF Entry Layer Tool"
);
21
declareProperty(
"GeoIDSvc"
,
m_config
.geoIDSvc,
"ISF GeoIDService"
);
22
declareProperty(
"TruthVolumeLevel"
,
m_config
.truthVolLevel,
"Level in geo hierarchy for the truth volumes"
);
23
declareProperty(
"IsITkGeometry"
,
m_config
.isITkGeometry,
"toggle for ITk"
);
24
}
25
26
std::unique_ptr<TrackProcessorUserActionFullG4>
27
TrackProcessorUserActionFullG4Tool::makeAndFillAction
(
G4AtlasUserActions
& actionList)
28
{
29
ATH_MSG_DEBUG
(
"Constructing a TrackProcessorUserActionFullG4"
);
30
if
(msgLvl(MSG::VERBOSE)) {
m_config
.verboseLevel = 10; }
31
else
if
(msgLvl(MSG::DEBUG)) {
m_config
.verboseLevel = 5; }
32
auto
action = std::make_unique<TrackProcessorUserActionFullG4>(
m_config
);
33
actionList.
eventActions
.push_back( action.get() );
34
actionList.
trackingActions
.push_back( action.get() );
35
actionList.
steppingActions
.push_back( action.get() );
36
return
action;
37
}
38
39
}
// iGeant4
40
41
}
// namespace G4UA
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
TrackProcessorUserActionFullG4Tool.h
G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::m_config
TrackProcessorUserActionFullG4::Config m_config
Configuration parameters.
Definition
TrackProcessorUserActionFullG4Tool.h:37
G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::makeAndFillAction
virtual std::unique_ptr< TrackProcessorUserActionFullG4 > makeAndFillAction(G4AtlasUserActions &) override final
Create an action for this thread.
Definition
TrackProcessorUserActionFullG4Tool.cxx:27
G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::TrackProcessorUserActionFullG4Tool
TrackProcessorUserActionFullG4Tool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
TrackProcessorUserActionFullG4Tool.cxx:14
G4UA::iGeant4::TrackProcessorUserActionFullG4
Definition
TrackProcessorUserActionFullG4.h:34
G4UA::iGeant4
Definition
MCTruthUserAction.cxx:36
G4UA
for nSW
Definition
CalibrationDefaultProcessing.h:19
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition
IUserActionTool.h:35
G4UA::G4AtlasUserActions::trackingActions
std::vector< G4UserTrackingAction * > trackingActions
Definition
IUserActionTool.h:40
G4UA::G4AtlasUserActions::steppingActions
std::vector< G4UserSteppingAction * > steppingActions
Definition
IUserActionTool.h:41
G4UA::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition
IUserActionTool.h:39
type
Generated on
for ATLAS Offline Software by
1.17.0