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

Tool which manages the RadLenNtuple action. More...

#include <RadLenNtupleTool.h>

Inheritance diagram for G4UA::RadLenNtupleTool:
Collaboration diagram for G4UA::RadLenNtupleTool:

Public Member Functions

 RadLenNtupleTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
StatusCode initialize () override final
 Framework methods.
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< RadLenNtuplemakeAndFillAction (G4AtlasUserActions &) override final
 Create action for this thread.

Protected Attributes

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

Private Attributes

RadLenNtuple::Config m_config
 Configuration parameters.
Gaudi::Property< std::string > m_mcEventCollName {this, "McEventCollName", "GEN_EVENT"}

Detailed Description

Tool which manages the RadLenNtuple action.

Create the RadLenNtuple for each worker thread

Author
Andrea Di Simone

Definition at line 26 of file RadLenNtupleTool.h.

Constructor & Destructor Documentation

◆ RadLenNtupleTool()

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

Standard constructor.

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ initialize()

StatusCode G4UA::RadLenNtupleTool::initialize ( )
finaloverride

Framework methods.

◆ makeAndFillAction()

virtual std::unique_ptr< RadLenNtuple > G4UA::RadLenNtupleTool::makeAndFillAction ( G4AtlasUserActions & )
finaloverrideprotectedvirtual

Create action for this thread.

Implements G4UA::UserActionToolBase< RadLenNtuple >.

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 70 of file UserActionToolBase.h.

◆ m_config

RadLenNtuple::Config G4UA::RadLenNtupleTool::m_config
private

Configuration parameters.

Definition at line 46 of file RadLenNtupleTool.h.

◆ m_mcEventCollName

Gaudi::Property<std::string> G4UA::RadLenNtupleTool::m_mcEventCollName {this, "McEventCollName", "GEN_EVENT"}
private

Definition at line 47 of file RadLenNtupleTool.h.

47{this, "McEventCollName", "GEN_EVENT"};

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