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

NEEDS DOCUMENTATION. More...

#include <FastIDKillerTool.h>

Inheritance diagram for G4UA::FastIDKillerTool:
Collaboration diagram for G4UA::FastIDKillerTool:

Public Member Functions

 FastIDKillerTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
virtual StatusCode finalize () override
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< FastIDKillermakeAndFillAction (G4AtlasUserActions &) override final
 Create the action for the current thread.

Protected Attributes

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

Private Attributes

FastIDKiller::Config m_config

Detailed Description

NEEDS DOCUMENTATION.

Definition at line 18 of file FastIDKillerTool.h.

Constructor & Destructor Documentation

◆ FastIDKillerTool()

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

Standard constructor.

Definition at line 11 of file FastIDKillerTool.cxx.

14 : UserActionToolBase<FastIDKiller>(type, name, parent)
15 {
16 declareProperty("R", m_config.R);
17 declareProperty("Z", m_config.Z);
18 declareProperty("energyCut", m_config.energyCut);
19 declareProperty("isDalek", m_config.isDalek);
20 }
FastIDKiller::Config m_config
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ finalize()

StatusCode G4UA::FastIDKillerTool::finalize ( )
overridevirtual

Definition at line 34 of file FastIDKillerTool.cxx.

35 {
36 // Accumulate results across threads
37 FastIDKiller::Report report;
38 m_actions.accumulate(report, &FastIDKiller::getReport,
40 ATH_MSG_INFO( "Fast Inner Detector Killer killed " << report.killCount <<
41 " particles during this run." );
42 return StatusCode::SUCCESS;
43 }
#define ATH_MSG_INFO(x)
const Report & getReport() const
ThreadSpecificUserAction< FastIDKiller > m_actions
list report
Definition checkTP.py:125
void merge(const Report &rep)

◆ makeAndFillAction()

std::unique_ptr< FastIDKiller > G4UA::FastIDKillerTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create the action for the current thread.

Implements G4UA::UserActionToolBase< FastIDKiller >.

Definition at line 24 of file FastIDKillerTool.cxx.

25 {
26 ATH_MSG_DEBUG("Constructing a FastIDKiller action");
27 auto action = std::make_unique<FastIDKiller>(m_config);
28 actionList.runActions.push_back( action.get() );
29 actionList.steppingActions.push_back( action.get() );
30 return action;
31 }
#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

FastIDKiller::Config G4UA::FastIDKillerTool::m_config
private

Definition at line 37 of file FastIDKillerTool.h.


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