Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TrigInDetTrackSeedingTool.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 
23 
26 
27 #include "GNN_FasTrackConnector.h"
28 #include "GNN_Geometry.h"
29 #include "GNN_DataStorage.h"
30 
31 #include "SeedingToolBase.h"
32 
33 class AtlasDetectorID;
34 class SCT_ID;
35 class PixelID;
36 
38  public:
39 
40  // standard AlgTool methods
41  TrigInDetTrackSeedingTool(const std::string&,const std::string&,const IInterface*);
43 
44  // standard Athena methods
45  virtual StatusCode initialize() override;
46  virtual StatusCode finalize() override;
47 
48  //concrete implementations
49  virtual TrigInDetTrackSeedingResult findSeeds(const IRoiDescriptor&, std::vector<TrigInDetTracklet>&, const EventContext&) const override final;
50 
51  protected:
52 
53  void createGraphNodes(const SpacePointCollection*, std::vector<GNN_Node>&, std::vector<const Trk::SpacePoint*>&, unsigned short, float, float) const;
54 
55  SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
56 
57  BooleanProperty m_usePixelSpacePoints{this, "UsePixelSpacePoints", true};
58  BooleanProperty m_useSctSpacePoints{this, "UseSctSpacePoints", false};
59 
60  //offline/EF containers
61  SG::ReadHandleKey<SpacePointContainer> m_sctSpacePointsContainerKey{this, "SCT_SP_ContainerName", "ITkStripTrigSpacePoints"};
62  SG::ReadHandleKey<SpacePointContainer> m_pixelSpacePointsContainerKey{this, "PixelSP_ContainerName", "ITkPixelTrigSpacePoints"};
63 
64 
66  ToolHandle<IRegSelTool> m_regsel_pix { this, "RegSelTool_Pixel", "RegSelTool/RegSelTool_Pixel" };
67  ToolHandle<IRegSelTool> m_regsel_sct { this, "RegSelTool_SCT", "RegSelTool/RegSelTool_SCT" };
68 
69  // for GPU offloading
70 
71  BooleanProperty m_useGPU{this, "UseGPU", false};
72  ServiceHandle<ITrigInDetAccelerationSvc> m_accelSvc {this, "TrigAccelerationSvc", ""};
73 
74 };
75 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigInDetTrackSeedingTool::m_accelSvc
ServiceHandle< ITrigInDetAccelerationSvc > m_accelSvc
Definition: TrigInDetTrackSeedingTool.h:72
IRegSelTool.h
ITrigInDetTrackSeedingTool
Definition: ITrigInDetTrackSeedingTool.h:19
TrigInDetTrackSeedingTool::m_useSctSpacePoints
BooleanProperty m_useSctSpacePoints
Definition: TrigInDetTrackSeedingTool.h:58
SeedingToolBase
Definition: SeedingToolBase.h:26
ITrigInDetAccelerationSvc.h
TrigInDetTrackSeedingTool::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: TrigInDetTrackSeedingTool.h:55
GNN_FasTrackConnector.h
TrigInDetTrackSeedingTool
Definition: TrigInDetTrackSeedingTool.h:37
ITrigL2LayerNumberTool.h
SG::ReadHandleKey< SpacePointContainer >
TrigInDetTrackSeedingTool::m_usePixelSpacePoints
BooleanProperty m_usePixelSpacePoints
Definition: TrigInDetTrackSeedingTool.h:57
ITrigInDetTrackSeedingTool.h
TrigInDetTrackSeedingTool::m_regsel_pix
ToolHandle< IRegSelTool > m_regsel_pix
region selector tools
Definition: TrigInDetTrackSeedingTool.h:66
TrigInDetTrackSeedingTool::m_useGPU
BooleanProperty m_useGPU
Definition: TrigInDetTrackSeedingTool.h:71
SpacePointContainer.h
TrigInDetTrackSeedingTool::~TrigInDetTrackSeedingTool
virtual ~TrigInDetTrackSeedingTool()
Definition: TrigInDetTrackSeedingTool.h:42
TrigInDetTrackSeedingTool::m_sctSpacePointsContainerKey
SG::ReadHandleKey< SpacePointContainer > m_sctSpacePointsContainerKey
Definition: TrigInDetTrackSeedingTool.h:61
TrigInDetTrackSeedingTool::m_regsel_sct
ToolHandle< IRegSelTool > m_regsel_sct
Definition: TrigInDetTrackSeedingTool.h:67
TrigInDetTrackSeedingTool::initialize
virtual StatusCode initialize() override
Definition: TrigInDetTrackSeedingTool.cxx:34
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
TrigInDetTrackSeedingTool::findSeeds
virtual TrigInDetTrackSeedingResult findSeeds(const IRoiDescriptor &, std::vector< TrigInDetTracklet > &, const EventContext &) const override final
Definition: TrigInDetTrackSeedingTool.cxx:73
TrigInDetTrackSeedingTool::finalize
virtual StatusCode finalize() override
Definition: TrigInDetTrackSeedingTool.cxx:68
TrigInDetTrackSeedingTool::TrigInDetTrackSeedingTool
TrigInDetTrackSeedingTool(const std::string &, const std::string &, const IInterface *)
Definition: TrigInDetTrackSeedingTool.cxx:27
TrigInDetTrackSeedingTool::createGraphNodes
void createGraphNodes(const SpacePointCollection *, std::vector< GNN_Node > &, std::vector< const Trk::SpacePoint * > &, unsigned short, float, float) const
Definition: TrigInDetTrackSeedingTool.cxx:612
TrigInDetTrackSeedingResult
Definition: TrigInDetTrackSeedingResult.h:8
SG::ReadCondHandleKey< InDet::BeamSpotData >
SCT_ID
Definition: SCT_ID.h:68
SpacePointCollection
Definition: SpacePointCollection.h:40
BeamSpotData.h
TrigInDetTrackSeedingTool::m_pixelSpacePointsContainerKey
SG::ReadHandleKey< SpacePointContainer > m_pixelSpacePointsContainerKey
Definition: TrigInDetTrackSeedingTool.h:62
GNN_DataStorage.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
SeedingToolBase.h
ServiceHandle< ITrigInDetAccelerationSvc >
GNN_Geometry.h