![]() |
ATLAS Offline Software
|
Tool which manages the G4TrackCounter action. More...
#include <G4TrackCounterTool.h>
Public Member Functions | |
| G4TrackCounterTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard constructor. | |
| virtual StatusCode | initialize () override final |
| Initialize tool. | |
| virtual StatusCode | finalize () override final |
| Finalize and merge results from all threads. | |
| 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< G4TrackCounter > | makeAndFillAction (G4AtlasUserActions &) override final |
| Create action for this thread. | |
Protected Attributes | |
| ThreadSpecificUserAction< G4TrackCounter > | m_actions |
| Thread-specific storage of the user action. | |
Tool which manages the G4TrackCounter action.
This tool creates the G4TrackCounter for each thread and merges the track counts from all threads in finalization.
Definition at line 24 of file G4TrackCounterTool.h.
| G4UA::G4TrackCounterTool::G4TrackCounterTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Standard constructor.
Definition at line 13 of file G4TrackCounterTool.cxx.
|
inlineoverrideinherited |
Calls BeginOfAthenaEvent.
Definition at line 59 of file UserActionToolBase.h.
|
inlineoverrideinherited |
|
inlinefinaloverridevirtualinherited |
Fill the user action lists.
Definition at line 47 of file UserActionToolBase.h.
|
finaloverridevirtual |
Finalize and merge results from all threads.
Definition at line 32 of file G4TrackCounterTool.cxx.
|
finaloverridevirtual |
Initialize tool.
Definition at line 23 of file G4TrackCounterTool.cxx.
|
finaloverrideprotectedvirtual |
Create action for this thread.
Implements G4UA::UserActionToolBase< G4TrackCounter >.
Definition at line 54 of file G4TrackCounterTool.cxx.
|
protectedinherited |
Thread-specific storage of the user action.
Definition at line 70 of file UserActionToolBase.h.