ATLAS Offline Software
IFPGATrackSimRoadFinderTool.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef FPGATrackSimROADFINDERI_H
4 #define FPGATrackSimROADFINDERI_H
5 
21 #include "GaudiKernel/IAlgTool.h"
22 
25 
26 #include <vector>
27 
28 class FPGATrackSimHit;
29 
30 
39 class IFPGATrackSimRoadFinderTool : virtual public IAlgTool
40 {
41  public:
43  virtual StatusCode getRoads(const std::vector<std::shared_ptr<const FPGATrackSimHit>> & hits, std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads) = 0;
44  virtual int getSubRegion() const = 0;
45 
46  StatusCode getRoads(const std::vector<std::shared_ptr<const FPGATrackSimHit>> &hits,
47  std::vector<std::shared_ptr<const FPGATrackSimRoad>> &roads,
48  std::vector<FPGATrackSimTruthTrack> const &truthtracks)
49  {
50  m_truthtracks = truthtracks;
51  return getRoads(hits, roads);
52  }
53 
54  std::vector<FPGATrackSimTruthTrack> const *getTruthTracks() { return &m_truthtracks; }
55 
56  private:
57  std::vector<FPGATrackSimTruthTrack> m_truthtracks;
58 
59 };
60 
61 
62 #endif
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
IFPGATrackSimRoadFinderTool::DeclareInterfaceID
DeclareInterfaceID(IFPGATrackSimRoadFinderTool, 2, 0)
IFPGATrackSimRoadFinderTool::getRoads
StatusCode getRoads(const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits, std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads, std::vector< FPGATrackSimTruthTrack > const &truthtracks)
Definition: IFPGATrackSimRoadFinderTool.h:46
FPGATrackSimHit
Definition: FPGATrackSimHit.h:41
IFPGATrackSimRoadFinderTool
A road finder returns a vector of roads given a vector of hits.
Definition: IFPGATrackSimRoadFinderTool.h:40
IFPGATrackSimRoadFinderTool::m_truthtracks
std::vector< FPGATrackSimTruthTrack > m_truthtracks
Definition: IFPGATrackSimRoadFinderTool.h:57
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IFPGATrackSimRoadFinderTool::getTruthTracks
std::vector< FPGATrackSimTruthTrack > const * getTruthTracks()
Definition: IFPGATrackSimRoadFinderTool.h:54
FPGATrackSimRoad.h
Defines a class for roads.
IFPGATrackSimRoadFinderTool::getSubRegion
virtual int getSubRegion() const =0
FPGATrackSimTruthTrack.h
IFPGATrackSimRoadFinderTool::getRoads
virtual StatusCode getRoads(const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits, std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads)=0