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

#include <G4AtlantisDumperTool.h>

Inheritance diagram for G4UA::G4AtlantisDumperTool:
Collaboration diagram for G4UA::G4AtlantisDumperTool:

Public Member Functions

 G4AtlantisDumperTool (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< G4AtlantisDumpermakeAndFillAction (G4AtlasUserActions &) override final
 Make the action and push onto the lists.

Protected Attributes

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

Private Attributes

G4AtlantisDumper::Config m_config

Detailed Description

Definition at line 14 of file G4AtlantisDumperTool.h.

Constructor & Destructor Documentation

◆ G4AtlantisDumperTool()

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

Definition at line 10 of file G4AtlantisDumperTool.cxx.

13 : UserActionToolBase<G4AtlantisDumper>(type, name, parent)
14 {
15 declareProperty("Edep", m_config.tedep_cut);
16 declareProperty("Length", m_config.length_cut);
17 declareProperty("P", m_config.p_cut);
18 declareProperty("KE", m_config.ke_cut);
19 }
G4AtlantisDumper::Config m_config
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ makeAndFillAction()

std::unique_ptr< G4AtlantisDumper > G4UA::G4AtlantisDumperTool::makeAndFillAction ( G4AtlasUserActions & actionLists)
finaloverrideprotectedvirtual

Make the action and push onto the lists.

Implements G4UA::UserActionToolBase< G4AtlantisDumper >.

Definition at line 22 of file G4AtlantisDumperTool.cxx.

23 {
24 ATH_MSG_DEBUG("Constructing a G4AtlasDumper action");
25 auto action = std::make_unique<G4AtlantisDumper>(m_config);
26 actionList.eventActions.push_back( action.get() );
27 actionList.steppingActions.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.

◆ m_config

G4AtlantisDumper::Config G4UA::G4AtlantisDumperTool::m_config
private

Definition at line 28 of file G4AtlantisDumperTool.h.


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