ATLAS Offline Software
Loading...
Searching...
No Matches
FastSimulationMasterTool Class Reference

#include <FastSimulationMasterTool.h>

Inheritance diagram for FastSimulationMasterTool:
Collaboration diagram for FastSimulationMasterTool:

Public Member Functions

 FastSimulationMasterTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~FastSimulationMasterTool ()
StatusCode initializeFastSims () override final
StatusCode BeginOfAthenaEvent () override final
 !< Base class method to initialize all the fast simulation models
StatusCode EndOfAthenaEvent () override final
 !< Base class method that calls BeginOfAthenaEvent for all fast simulation models.

Private Attributes

ToolHandleArray< IFastSimulationm_FastSimList {this, "FastSimulations", {}, "Tool handle array of fast simulation tools"}
 !< Base class method that calls EndOfAthenaEvent for all fast simulation models.

Detailed Description

Definition at line 16 of file FastSimulationMasterTool.h.

Constructor & Destructor Documentation

◆ FastSimulationMasterTool()

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

Definition at line 13 of file FastSimulationMasterTool.cxx.

14 : base_class(type,name,parent)
15{
16}

◆ ~FastSimulationMasterTool()

virtual FastSimulationMasterTool::~FastSimulationMasterTool ( )
inlinevirtual

Definition at line 20 of file FastSimulationMasterTool.h.

20{}

Member Function Documentation

◆ BeginOfAthenaEvent()

StatusCode FastSimulationMasterTool::BeginOfAthenaEvent ( )
finaloverride

!< Base class method to initialize all the fast simulation models

Definition at line 34 of file FastSimulationMasterTool.cxx.

34 {
35 // Method that gets called at the beginning of every *athena* event
36 for (auto& ifs : m_FastSimList){
37 CHECK(ifs->BeginOfAthenaEvent());
38 }
39 return StatusCode::SUCCESS;
40}
#define CHECK(...)
Evaluate an expression and check for errors.
ToolHandleArray< IFastSimulation > m_FastSimList
!< Base class method that calls EndOfAthenaEvent for all fast simulation models.

◆ EndOfAthenaEvent()

StatusCode FastSimulationMasterTool::EndOfAthenaEvent ( )
finaloverride

!< Base class method that calls BeginOfAthenaEvent for all fast simulation models.

Definition at line 42 of file FastSimulationMasterTool.cxx.

42 {
43 // Method that gets called at the end of every *athena* event
44 for (auto& ifs : m_FastSimList){
45 CHECK(ifs->EndOfAthenaEvent());
46 }
47 return StatusCode::SUCCESS;
48}

◆ initializeFastSims()

StatusCode FastSimulationMasterTool::initializeFastSims ( )
finaloverride

Definition at line 18 of file FastSimulationMasterTool.cxx.

18 {
19 ATH_MSG_VERBOSE( name() << "::initializeFastSims()" );
20 // Loop through list of fast simulations and retrieve them
21 // This forces a call to initialize() for each of them
22 ATH_MSG_INFO( "Initializing list of " << m_FastSimList.size() << " fast simulation tools in " << name() );
23 CHECK( m_FastSimList.retrieve() );
24
25 // Initialize the FastSim processes. Each process will attach
26 // itself to the relevant region at construction
27 for (auto& ifs : m_FastSimList){
28 CHECK(ifs->initializeFastSim());
29 }
30
31 return StatusCode::SUCCESS;
32}
#define ATH_MSG_INFO(x)
#define ATH_MSG_VERBOSE(x)

Member Data Documentation

◆ m_FastSimList

ToolHandleArray<IFastSimulation> FastSimulationMasterTool::m_FastSimList {this, "FastSimulations", {}, "Tool handle array of fast simulation tools"}
private

!< Base class method that calls EndOfAthenaEvent for all fast simulation models.

Definition at line 28 of file FastSimulationMasterTool.h.

28{this, "FastSimulations", {}, "Tool handle array of fast simulation tools"};

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