ATLAS Offline Software
TrigInDetR3TrackSeedingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGINDETPATTRECOTOOLS_TRIGINDETTRACKSEEDINGTOOL_H
6 #define TRIGINDETPATTRECOTOOLS_TRIGINDETTRACKSEEDINGTOOL_H
7 
8 #include "GaudiKernel/ToolHandle.h"
9 
11 
14 #include <string>
15 #include <vector>
16 
19 
20 //for GPU offloading
21 
22 // #include "TrigInDetR3AccelerationService/ITrigInDetR3AccelerationSvc.h"
23 // #include "TrigInDetAccelerationService/ITrigInDetAccelerationSvc.h"
24 
27 
29 #include "GNNR3_Geometry.h"
30 #include "GNNR3_DataStorage.h"
31 
32 #include "SeedingToolBase.h"
33 
34 class AtlasDetectorID;
35 class SCT_ID;
36 class PixelID;
37 
39  public:
40 
41  // standard AlgTool methods
42  TrigInDetR3TrackSeedingTool(const std::string&,const std::string&,const IInterface*);
44 
45  // standard Athena methods
46  virtual StatusCode initialize() override;
47  virtual StatusCode finalize() override;
48 
49  //concrete implementations
50  virtual TrigInDetTrackSeedingResult findSeeds(const IRoiDescriptor&, std::vector<TrigInDetTracklet>&, const EventContext&) const override final;
51 
52  protected:
53 
54  void createGraphNodes(const SpacePointCollection*, std::vector<GNNR3_Node>&, std::vector<const Trk::SpacePoint*>&, unsigned short, float, float) const;
55 
56  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
57 
58  BooleanProperty m_usePixelSpacePoints{this, "UsePixelSpacePoints", true};
59  BooleanProperty m_useSctSpacePoints{this, "UseSctSpacePoints", false};
60 
61  //offline/EF containers
62  SG::ReadHandleKey<SpacePointContainer> m_sctSpacePointsContainerKey{this, "SCT_SP_ContainerName", "ITkStripTrigSpacePoints"};
63  SG::ReadHandleKey<SpacePointContainer> m_pixelSpacePointsContainerKey{this, "PixelSP_ContainerName", "ITkPixelTrigSpacePoints"};
64 
65 
67  ToolHandle<IRegSelTool> m_regsel_pix { this, "RegSelTool_Pixel", "RegSelTool/RegSelTool_Pixel" };
68  ToolHandle<IRegSelTool> m_regsel_sct { this, "RegSelTool_SCT", "RegSelTool/RegSelTool_SCT" };
69 
70  // for GPU offloading
71 
72  BooleanProperty m_useGPU{this, "UseGPU", false};
73  // ServiceHandle<ITrigInDetR3AccelerationSvc> m_accelSvc {this, "TrigAccelerationSvc", ""};
74 
75 };
76 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IRegSelTool.h
ITrigInDetTrackSeedingTool
Definition: ITrigInDetTrackSeedingTool.h:19
SeedingToolBase
Definition: TrigInDetPattRecoTools/src/SeedingToolBase.h:26
GNNR3_Geometry.h
GNNR3_DataStorage.h
ITrigL2LayerNumberTool.h
TrigInDetR3TrackSeedingTool::m_regsel_sct
ToolHandle< IRegSelTool > m_regsel_sct
Definition: TrigInDetR3TrackSeedingTool.h:68
SG::ReadHandleKey< SpacePointContainer >
TrigInDetR3TrackSeedingTool::createGraphNodes
void createGraphNodes(const SpacePointCollection *, std::vector< GNNR3_Node > &, std::vector< const Trk::SpacePoint * > &, unsigned short, float, float) const
Definition: TrigInDetR3TrackSeedingTool.cxx:634
ITrigInDetTrackSeedingTool.h
SpacePointContainer.h
TrigInDetR3TrackSeedingTool::TrigInDetR3TrackSeedingTool
TrigInDetR3TrackSeedingTool(const std::string &, const std::string &, const IInterface *)
Definition: TrigInDetR3TrackSeedingTool.cxx:27
GNNR3_FasTrackConnector.h
TrigInDetR3TrackSeedingTool::m_usePixelSpacePoints
BooleanProperty m_usePixelSpacePoints
Definition: TrigInDetR3TrackSeedingTool.h:58
SeedingToolBase.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IRoiDescriptor
Describes the API of the Region of Ineterest geometry.
Definition: IRoiDescriptor.h:23
AthAlgTool.h
TrigInDetR3TrackSeedingTool::m_pixelSpacePointsContainerKey
SG::ReadHandleKey< SpacePointContainer > m_pixelSpacePointsContainerKey
Definition: TrigInDetR3TrackSeedingTool.h:63
TrigInDetR3TrackSeedingTool::finalize
virtual StatusCode finalize() override
Definition: TrigInDetR3TrackSeedingTool.cxx:70
TrigInDetR3TrackSeedingTool::initialize
virtual StatusCode initialize() override
Definition: TrigInDetR3TrackSeedingTool.cxx:34
TrigInDetR3TrackSeedingTool::findSeeds
virtual TrigInDetTrackSeedingResult findSeeds(const IRoiDescriptor &, std::vector< TrigInDetTracklet > &, const EventContext &) const override final
Definition: TrigInDetR3TrackSeedingTool.cxx:75
TrigInDetR3TrackSeedingTool::m_useGPU
BooleanProperty m_useGPU
Definition: TrigInDetR3TrackSeedingTool.h:72
TrigInDetTrackSeedingResult
Definition: TrigInDetTrackSeedingResult.h:8
TrigInDetR3TrackSeedingTool::~TrigInDetR3TrackSeedingTool
virtual ~TrigInDetR3TrackSeedingTool()
Definition: TrigInDetR3TrackSeedingTool.h:43
SG::ReadCondHandleKey< InDet::BeamSpotData >
SCT_ID
Definition: SCT_ID.h:68
TrigInDetR3TrackSeedingTool::m_useSctSpacePoints
BooleanProperty m_useSctSpacePoints
Definition: TrigInDetR3TrackSeedingTool.h:59
SpacePointCollection
Definition: SpacePointCollection.h:40
TrigInDetR3TrackSeedingTool::m_sctSpacePointsContainerKey
SG::ReadHandleKey< SpacePointContainer > m_sctSpacePointsContainerKey
Definition: TrigInDetR3TrackSeedingTool.h:62
TrigInDetR3TrackSeedingTool
Definition: TrigInDetR3TrackSeedingTool.h:38
BeamSpotData.h
PixelID
Definition: PixelID.h:67
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
TrigInDetR3TrackSeedingTool::m_regsel_pix
ToolHandle< IRegSelTool > m_regsel_pix
region selector tools
Definition: TrigInDetR3TrackSeedingTool.h:67
TrigInDetR3TrackSeedingTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: TrigInDetR3TrackSeedingTool.h:56