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

Tool which manages the Looper Threshold options. More...

#include <LooperThresholdSetTool.h>

Inheritance diagram for G4UA::LooperThresholdSetTool:
Collaboration diagram for G4UA::LooperThresholdSetTool:

Public Member Functions

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

Protected Attributes

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

Private Attributes

LooperThresholdSet::Config m_config
 Configuration parameters.

Detailed Description

Tool which manages the Looper Threshold options.

Create the LooperThresholdSet for each worker thread

Author
Miha Muskinja

Definition at line 27 of file LooperThresholdSetTool.h.

Constructor & Destructor Documentation

◆ LooperThresholdSetTool()

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

Standard constructor.

Definition at line 13 of file LooperThresholdSetTool.cxx.

14 :
16 m_config()
17{
18 declareProperty("WarningEnergy", m_config.WarningEnergy);
19 declareProperty("ImportantEnergy", m_config.ImportantEnergy);
20 declareProperty("NumberOfTrials", m_config.NumberOfTrials);
21}
LooperThresholdSet::Config m_config
Configuration parameters.
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)

Member Function Documentation

◆ BeginOfAthenaEvent()

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

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

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

◆ finalize()

StatusCode G4UA::LooperThresholdSetTool::finalize ( )
overridevirtual

Definition at line 32 of file LooperThresholdSetTool.cxx.

33{
34 ATH_MSG_DEBUG("finalize");
35 return StatusCode::SUCCESS;
36}
#define ATH_MSG_DEBUG(x)

◆ initialize()

StatusCode G4UA::LooperThresholdSetTool::initialize ( )
overridevirtual

Definition at line 26 of file LooperThresholdSetTool.cxx.

27{
28 ATH_MSG_DEBUG("initialize");
29 return StatusCode::SUCCESS;
30}

◆ makeAndFillAction()

std::unique_ptr< LooperThresholdSet > G4UA::LooperThresholdSetTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create action for this thread.

Implements G4UA::UserActionToolBase< LooperThresholdSet >.

Definition at line 43 of file LooperThresholdSetTool.cxx.

44{
45 ATH_MSG_DEBUG("Making a LooperThresholdSet action");
46 auto action = std::make_unique<LooperThresholdSet>(m_config);
47 actionList.runActions.push_back( action.get() );
48 return action;
49}

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 70 of file UserActionToolBase.h.

◆ m_config

LooperThresholdSet::Config G4UA::LooperThresholdSetTool::m_config
private

Configuration parameters.

Definition at line 48 of file LooperThresholdSetTool.h.


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