ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
G4UA::VerboseSelectorTool Class Reference

#include <VerboseSelectorTool.h>

Inheritance diagram for G4UA::VerboseSelectorTool:
Collaboration diagram for G4UA::VerboseSelectorTool:

Public Member Functions

 VerboseSelectorTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode fillUserAction (G4AtlasUserActions &actionLists) override final
 Fill the user action lists. More...
 

Protected Member Functions

virtual std::unique_ptr< VerboseSelectormakeAndFillAction (G4AtlasUserActions &) override final
 Make the action and push onto the lists. More...
 

Protected Attributes

ThreadSpecificUserAction< VerboseSelectorm_actions
 Thread-specific storage of the user action. More...
 

Private Attributes

VerboseSelector::Config m_config
 

Detailed Description

Definition at line 14 of file VerboseSelectorTool.h.

Constructor & Destructor Documentation

◆ VerboseSelectorTool()

G4UA::VerboseSelectorTool::VerboseSelectorTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 10 of file VerboseSelectorTool.cxx.

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  }

Member Function Documentation

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< VerboseSelector >::fillUserAction ( G4AtlasUserActions actionLists)
inlinefinaloverridevirtualinherited

Fill the user action lists.

Definition at line 45 of file UserActionToolBase.h.

46  {
47  auto myAction = makeAndFillAction(actionLists);
48  if(myAction == nullptr) {
49  ATH_MSG_ERROR( "Failed to construct user action in " << name() );
50  return StatusCode::FAILURE;
51  }
52  m_actions.set( std::move(myAction) );
53  return StatusCode::SUCCESS;
54  }

◆ makeAndFillAction()

std::unique_ptr< VerboseSelector > G4UA::VerboseSelectorTool::makeAndFillAction ( G4AtlasUserActions actionLists)
finaloverrideprotectedvirtual

Make the action and push onto the lists.

Implements G4UA::UserActionToolBase< VerboseSelector >.

Definition at line 34 of file VerboseSelectorTool.cxx.

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  }

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 63 of file UserActionToolBase.h.

◆ m_config

VerboseSelector::Config G4UA::VerboseSelectorTool::m_config
private

Definition at line 23 of file VerboseSelectorTool.h.


The documentation for this class was generated from the following files:
G4UA::VerboseSelector::Config::Ymin
double Ymin
Definition: VerboseSelector.h:37
G4UA::VerboseSelector::Config::Xmin
double Xmin
Definition: VerboseSelector.h:36
G4UA::VerboseSelector::Config::targetEvent
int targetEvent
Definition: VerboseSelector.h:31
G4UA::ThreadSpecificUserAction::set
void set(std::unique_ptr< ActionType > action)
Assign the object of the current thread.
Definition: ThreadSpecificUserAction.h:61
G4UA::VerboseSelector::Config::Xmax
double Xmax
Definition: VerboseSelector.h:36
G4UA::VerboseSelector::Config::targetPdgIDs
std::vector< double > targetPdgIDs
Definition: VerboseSelector.h:39
G4UA::VerboseSelectorTool::m_config
VerboseSelector::Config m_config
Definition: VerboseSelectorTool.h:23
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
G4UA::UserActionToolBase< VerboseSelector >::m_actions
ThreadSpecificUserAction< VerboseSelector > m_actions
Thread-specific storage of the user action.
Definition: UserActionToolBase.h:63
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< VerboseSelector >::makeAndFillAction
virtual std::unique_ptr< VerboseSelector > makeAndFillAction(G4AtlasUserActions &actionLists)=0
Make the action and push onto the lists.
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