ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7namespace G4UA
8{
9
11 const std::string& name,
12 const IInterface* 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>
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
#define ATH_MSG_DEBUG(x)
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
virtual std::unique_ptr< VerboseSelector > makeAndFillAction(G4AtlasUserActions &) override final
Make the action and push onto the lists.
VerboseSelectorTool(const std::string &type, const std::string &name, const IInterface *parent)
VerboseSelector::Config m_config
Struct for passing around user actions.
std::vector< G4UserTrackingAction * > trackingActions
std::vector< G4UserSteppingAction * > steppingActions
std::vector< G4UserEventAction * > eventActions