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

Tool which manages the volume dumper action. More...

#include <VolumeDumperTool.h>

Inheritance diagram for G4UA::VolumeDumperTool:
Collaboration diagram for G4UA::VolumeDumperTool:

Public Member Functions

 VolumeDumperTool (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< VolumeDumpermakeAndFillAction (G4AtlasUserActions &) override final
 creates the action instances

Protected Attributes

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

Detailed Description

Tool which manages the volume dumper action.

Author
Miha Muskinja

Definition at line 26 of file VolumeDumperTool.h.

Constructor & Destructor Documentation

◆ VolumeDumperTool()

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

Standard constructor.

Definition at line 13 of file VolumeDumperTool.cxx.

14 :
15 UserActionToolBase<VolumeDumper>(type, name, parent)
16{
17}
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ makeAndFillAction()

std::unique_ptr< VolumeDumper > G4UA::VolumeDumperTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

creates the action instances

Implements G4UA::UserActionToolBase< VolumeDumper >.

Definition at line 23 of file VolumeDumperTool.cxx.

24{
25 ATH_MSG_DEBUG("Constructing a VolumeDumper action");
26 auto action = std::make_unique<VolumeDumper>();
27 actionList.eventActions.push_back( action.get() );
28 return action;
29}
#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.


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