ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4DebuggingTools
src
VerboseSelectorTool.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
#include "
VerboseSelectorTool.h
"
6
7
namespace
G4UA
8
{
9
10
VerboseSelectorTool::VerboseSelectorTool
(
const
std::string&
type
,
11
const
std::string& name,
12
const
IInterface* parent)
13
:
UserActionToolBase
<
VerboseSelector
>(
type
, name, parent)
14
{
15
declareProperty(
"TargetEvent"
,
m_config
.targetEvent);
16
declareProperty(
"TargetTrack"
,
m_config
.targetTrack);
17
declareProperty(
"VerboseLevel"
,
m_config
.verboseLevel);
18
declareProperty(
"Continue"
,
m_config
.verb);
19
// properties for area check at step time
20
declareProperty(
"Xmin"
,
m_config
.Xmin);
21
declareProperty(
"Xmax"
,
m_config
.Xmax);
22
23
declareProperty(
"Ymin"
,
m_config
.Ymin);
24
declareProperty(
"Ymax"
,
m_config
.Ymax);
25
26
declareProperty(
"Zmin"
,
m_config
.Zmin);
27
declareProperty(
"Zmax"
,
m_config
.Zmax);
28
29
// target pdgIDs of tracks to printout
30
declareProperty(
"TargetPdgIDs"
,
m_config
.targetPdgIDs);
31
}
32
33
std::unique_ptr<VerboseSelector>
34
VerboseSelectorTool::makeAndFillAction
(
G4AtlasUserActions
& actionList)
35
{
36
ATH_MSG_DEBUG
(
"Constructing a VerboseSelector"
);
37
auto
action = std::make_unique<VerboseSelector>(
m_config
);
38
actionList.
eventActions
.push_back( action.get() );
39
actionList.
trackingActions
.push_back( action.get() );
40
actionList.
steppingActions
.push_back( action.get() );
41
return
action;
42
}
43
44
}
// namespace G4UA
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
VerboseSelectorTool.h
G4UA::UserActionToolBase< VerboseSelector >::UserActionToolBase
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
UserActionToolBase.h:40
G4UA::VerboseSelectorTool::makeAndFillAction
virtual std::unique_ptr< VerboseSelector > makeAndFillAction(G4AtlasUserActions &) override final
Make the action and push onto the lists.
Definition
VerboseSelectorTool.cxx:34
G4UA::VerboseSelectorTool::VerboseSelectorTool
VerboseSelectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
VerboseSelectorTool.cxx:10
G4UA::VerboseSelectorTool::m_config
VerboseSelector::Config m_config
Definition
VerboseSelectorTool.h:23
G4UA::VerboseSelector
Definition
VerboseSelector.h:24
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