ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
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. More...
 
virtual StatusCode finalize () override
 
virtual StatusCode fillUserAction (G4AtlasUserActions &actionLists) override final
 Fill the user action lists. More...
 

Protected Member Functions

virtual std::unique_ptr< FastIDKillermakeAndFillAction (G4AtlasUserActions &) override final
 Create the action for the current thread. More...
 

Protected Attributes

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

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  {
18  declareProperty("energyCut", m_config.energyCut);
19  declareProperty("isDalek", m_config.isDalek);
20  }

Member Function Documentation

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< FastIDKiller >::fillUserAction ( G4AtlasUserActions actionLists)
inlinefinaloverridevirtualinherited

Fill the user action lists.

Definition at line 45 of file UserActionToolBase.h.

46  {
47  auto myAction = makeAndFillAction(actionLists);
48  if(myAction == nullptr) {
49  ATH_MSG_ERROR( "Failed to construct user action in " << name() );
50  return StatusCode::FAILURE;
51  }
52  m_actions.set( std::move(myAction) );
53  return StatusCode::SUCCESS;
54  }

◆ finalize()

StatusCode G4UA::FastIDKillerTool::finalize ( )
overridevirtual

Definition at line 34 of file FastIDKillerTool.cxx.

35  {
36  // Accumulate results across threads
37  FastIDKiller::Report report;
40  ATH_MSG_INFO( "Fast Inner Detector Killer killed " << report.killCount <<
41  " particles during this run." );
42  return StatusCode::SUCCESS;
43  }

◆ 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  }

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 63 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:
G4UA::FastIDKiller::Report::merge
void merge(const Report &rep)
Definition: FastIDKiller.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
G4UA::ThreadSpecificUserAction::set
void set(std::unique_ptr< ActionType > action)
Assign the object of the current thread.
Definition: ThreadSpecificUserAction.h:61
checkTP.report
report
Definition: checkTP.py:127
G4UA::ThreadSpecificUserAction::accumulate
void accumulate(ResultType &result, Mapper mapOp, Reducer reduceOp)
Accumulate results across user actions with specified operations.
Definition: ThreadSpecificUserAction.h:88
G4UA::FastIDKiller::Config::isDalek
bool isDalek
Definition: FastIDKiller.h:30
G4UA::FastIDKiller::Config::R
float R
Definition: FastIDKiller.h:27
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
G4UA::UserActionToolBase< FastIDKiller >::m_actions
ThreadSpecificUserAction< FastIDKiller > m_actions
Thread-specific storage of the user action.
Definition: UserActionToolBase.h:63
G4UA::FastIDKillerTool::m_config
FastIDKiller::Config m_config
Definition: FastIDKillerTool.h:37
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::FastIDKiller::Config::energyCut
float energyCut
Definition: FastIDKiller.h:29
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
G4UA::UserActionToolBase< FastIDKiller >::makeAndFillAction
virtual std::unique_ptr< FastIDKiller > makeAndFillAction(G4AtlasUserActions &actionLists)=0
Make the action and push onto the lists.
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
G4UA::FastIDKiller::Config::Z
float Z
Definition: FastIDKiller.h:28
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
G4UA::FastIDKiller::getReport
const Report & getReport() const
Definition: FastIDKiller.h:45