ATLAS Offline Software
Loading...
Searching...
No Matches
G4UA::iGeant4::TrackProcessorUserActionFullG4Tool Class Reference

Tool which manages the TrackProcessorUserActionFullG4. More...

#include <TrackProcessorUserActionFullG4Tool.h>

Inheritance diagram for G4UA::iGeant4::TrackProcessorUserActionFullG4Tool:
Collaboration diagram for G4UA::iGeant4::TrackProcessorUserActionFullG4Tool:

Public Member Functions

 TrackProcessorUserActionFullG4Tool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
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< TrackProcessorUserActionFullG4makeAndFillAction (G4AtlasUserActions &) override final
 Create an action for this thread.

Protected Attributes

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

Private Attributes

TrackProcessorUserActionFullG4::Config m_config
 Configuration parameters.

Detailed Description

Tool which manages the TrackProcessorUserActionFullG4.

Author
Andrea Di Simone

Definition at line 22 of file TrackProcessorUserActionFullG4Tool.h.

Constructor & Destructor Documentation

◆ TrackProcessorUserActionFullG4Tool()

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

Standard constructor.

Definition at line 13 of file TrackProcessorUserActionFullG4Tool.cxx.

18 m_config(name)
19 {
20 declareProperty("EntryLayerTool", m_config.entryLayerTool, "ISF Entry Layer Tool");
21 declareProperty("GeoIDSvc", m_config.geoIDSvc, "ISF GeoIDService" );
22 declareProperty("TruthVolumeLevel", m_config.truthVolLevel, "Level in geo hierarchy for the truth volumes");
23 declareProperty("IsITkGeometry", m_config.isITkGeometry, "toggle for ITk");
24 }
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
TrackProcessorUserActionFullG4::Config m_config
Configuration parameters.

Member Function Documentation

◆ BeginOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >::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< TrackProcessorUserActionFullG4 >::EndOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >::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< TrackProcessorUserActionFullG4 > makeAndFillAction(G4AtlasUserActions &actionLists)=0

◆ makeAndFillAction()

std::unique_ptr< TrackProcessorUserActionFullG4 > G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create an action for this thread.

Implements G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >.

Definition at line 27 of file TrackProcessorUserActionFullG4Tool.cxx.

28 {
29 ATH_MSG_DEBUG("Constructing a TrackProcessorUserActionFullG4");
30 if(msgLvl(MSG::VERBOSE)) { m_config.verboseLevel = 10; }
31 else if(msgLvl(MSG::DEBUG)) { m_config.verboseLevel = 5; }
32 auto action = std::make_unique<TrackProcessorUserActionFullG4>(m_config);
33 actionList.eventActions.push_back( action.get() );
34 actionList.trackingActions.push_back( action.get() );
35 actionList.steppingActions.push_back( action.get() );
36 return action;
37 }
#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

TrackProcessorUserActionFullG4::Config G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::m_config
private

Configuration parameters.

Definition at line 37 of file TrackProcessorUserActionFullG4Tool.h.


The documentation for this class was generated from the following files: