ATLAS Offline Software
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 
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
G4UA::VerboseSelector::Config::Ymin
double Ymin
Definition: VerboseSelector.h:37
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::VerboseSelector::Config::Xmin
double Xmin
Definition: VerboseSelector.h:36
G4UA::G4AtlasUserActions
Struct for passing around user actions.
Definition: IUserActionTool.h:32
VerboseSelectorTool.h
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::VerboseSelector::Config::targetEvent
int targetEvent
Definition: VerboseSelector.h:31
G4UA::G4AtlasUserActions::trackingActions
std::vector< G4UserTrackingAction * > trackingActions
Definition: IUserActionTool.h:35
G4UA::VerboseSelector::Config::Xmax
double Xmax
Definition: VerboseSelector.h:36
G4UA::VerboseSelector::Config::targetPdgIDs
std::vector< double > targetPdgIDs
Definition: VerboseSelector.h:39
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
G4UA::VerboseSelector::Config::verboseLevel
int verboseLevel
Definition: VerboseSelector.h:34
G4UA::VerboseSelector::Config::Ymax
double Ymax
Definition: VerboseSelector.h:37
G4UA::VerboseSelector::Config::Zmin
double Zmin
Definition: VerboseSelector.h:38
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::VerboseSelector::Config::Zmax
double Zmax
Definition: VerboseSelector.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::VerboseSelector::Config::targetTrack
int targetTrack
Definition: VerboseSelector.h:32
G4UA::UserActionToolBase
abstract template utility base-class for G4 user-action tools.
Definition: UserActionToolBase.h:33
G4UA::VerboseSelector::Config::verb
int verb
Definition: VerboseSelector.h:35
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::G4AtlasUserActions::eventActions
std::vector< G4UserEventAction * > eventActions
Definition: IUserActionTool.h:34
G4UA::G4AtlasUserActions::steppingActions
std::vector< G4UserSteppingAction * > steppingActions
Definition: IUserActionTool.h:36
G4UA::VerboseSelector
Definition: VerboseSelector.h:24