ATLAS Offline Software
Loading...
Searching...
No Matches
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.
StatusCode BeginOfAthenaEvent (HitCollectionMap &) override
 Calls BeginOfAthenaEvent.
StatusCode EndOfAthenaEvent (HitCollectionMap &) override
 Calls EndOfAthenaEvent.

Protected Member Functions

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

Protected Attributes

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

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 }
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
VerboseSelector::Config m_config

Member Function Documentation

◆ BeginOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< VerboseSelector >::BeginOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls BeginOfAthenaEvent.

Definition at line 59 of file UserActionToolBase.h.

59{return StatusCode::SUCCESS;};
abstract template utility base-class for G4 user-action tools.

◆ EndOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< VerboseSelector >::EndOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

Fill the user action lists.

Definition at line 47 of file UserActionToolBase.h.

48 {
50 if(myAction == nullptr) {
51 ATH_MSG_ERROR( "Failed to construct user action in " << name() );
53 }
56 }
#define ATH_MSG_ERROR(x)
virtual std::unique_ptr< VerboseSelector > makeAndFillAction(G4AtlasUserActions &actionLists)=0

◆ 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 }
#define ATH_MSG_DEBUG(x)

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 70 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: