ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
FPGATrackSimRoadUnionTool Class Reference

#include <FPGATrackSimRoadUnionTool.h>

Inheritance diagram for FPGATrackSimRoadUnionTool:
Collaboration diagram for FPGATrackSimRoadUnionTool:

Public Member Functions

 FPGATrackSimRoadUnionTool (const std::string &, const std::string &, const IInterface *)
 
virtual StatusCode initialize () override
 
virtual StatusCode getRoads (const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits, std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads) override
 
ToolHandleArray< IFPGATrackSimRoadFinderTool > consttools () const
 

Private Attributes

ToolHandleArray< IFPGATrackSimRoadFinderToolm_tools
 

Detailed Description

Definition at line 23 of file FPGATrackSimRoadUnionTool.h.

Constructor & Destructor Documentation

◆ FPGATrackSimRoadUnionTool()

FPGATrackSimRoadUnionTool::FPGATrackSimRoadUnionTool ( const std::string &  algname,
const std::string &  name,
const IInterface *  ifc 
)

Definition at line 14 of file FPGATrackSimRoadUnionTool.cxx.

14  :
15  base_class(algname, name, ifc),
16  m_tools(this)
17 {
18  declareInterface<IFPGATrackSimRoadFinderTool>(this);
19  declareProperty("tools", m_tools, "Array of FPGATrackSimRoadFinderTools");
20 }

Member Function Documentation

◆ getRoads()

StatusCode FPGATrackSimRoadUnionTool::getRoads ( const std::vector< std::shared_ptr< const FPGATrackSimHit >> &  hits,
std::vector< std::shared_ptr< const FPGATrackSimRoad >> &  roads 
)
overridevirtual

Definition at line 37 of file FPGATrackSimRoadUnionTool.cxx.

38 {
39  roads.clear();
40  for (auto & tool : m_tools)
41  {
42  std::vector<std::shared_ptr<const FPGATrackSimRoad>> r;
43  ATH_CHECK(tool->getRoads(hits, r));
44  roads.insert(roads.end(), std::make_move_iterator(r.begin()), std::make_move_iterator(r.end()));
45  }
46 
47  return StatusCode::SUCCESS;
48 }

◆ initialize()

StatusCode FPGATrackSimRoadUnionTool::initialize ( )
overridevirtual

Definition at line 23 of file FPGATrackSimRoadUnionTool.cxx.

24 {
25  // Retrieve
26  ATH_MSG_INFO("Using " << m_tools.size() << " tools");
27  ATH_CHECK(m_tools.retrieve());
28 
29  if (m_tools.empty()) {
30  ATH_MSG_FATAL("initialize() Tool list empty");
31  return StatusCode::FAILURE;
32  }
33  return StatusCode::SUCCESS;
34 }

◆ tools()

ToolHandleArray<IFPGATrackSimRoadFinderTool> const& FPGATrackSimRoadUnionTool::tools ( ) const
inline

Definition at line 42 of file FPGATrackSimRoadUnionTool.h.

42 { return m_tools; }

Member Data Documentation

◆ m_tools

ToolHandleArray<IFPGATrackSimRoadFinderTool> FPGATrackSimRoadUnionTool::m_tools
private

Definition at line 49 of file FPGATrackSimRoadUnionTool.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
getMenu.algname
algname
Definition: getMenu.py:54
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
FPGATrackSimRoadUnionTool::m_tools
ToolHandleArray< IFPGATrackSimRoadFinderTool > m_tools
Definition: FPGATrackSimRoadUnionTool.h:49