Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SeedingToolBase.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_SEEDINGTOOLBASE_H
6 #define TRIGINDETPATTRECOTOOLS_SEEDINGTOOLBASE_H
7 
8 #include "GaudiKernel/ToolHandle.h"
9 //#include "TrigInDetToolInterfaces/ITrigInDetTrackSeedingTool.h"
12 #include <string>
13 #include <vector>
14 
17 
18 #include "GNN_FasTrackConnector.h"
19 #include "GNN_Geometry.h"
20 #include "GNN_DataStorage.h"
21 
22 class AtlasDetectorID;
23 class SCT_ID;
24 class PixelID;
25 
26 class SeedingToolBase: public AthAlgTool {
27  public:
28  SeedingToolBase(const std::string& t,const std::string& n,const IInterface* p): AthAlgTool(t,n,p){}
29 
30  protected:
31 
35 
36  virtual StatusCode initialize();
37  virtual StatusCode finalize();
38 
39  std::pair<int, int> buildTheGraph(const IRoiDescriptor&, const std::unique_ptr<GNN_DataStorage>&, std::vector<GNN_Edge>&) const;
40 
41  int runCCA(int, std::vector<GNN_Edge>&) const;
42 
43  ToolHandle<ITrigL2LayerNumberTool> m_layerNumberTool {this, "layerNumberTool", "TrigL2LayerNumberToolITk"};
44 
45  const AtlasDetectorID* m_atlasId = nullptr;
46  const SCT_ID* m_sctId = nullptr;
47  const PixelID* m_pixelId = nullptr;
48 
49  BooleanProperty m_filter_phi{this, "DoPhiFiltering", true};
50  BooleanProperty m_useBeamTilt{this, "UseBeamTilt", false};
51  BooleanProperty m_LRTmode{this, "LRTMode",false};
52  BooleanProperty m_useML{this, "useML", true};
53 
54  UnsignedIntegerProperty m_nMaxPhiSlice{this, "nMaxPhiSlice", 53};
55  BooleanProperty m_doubletFilterRZ{this, "Doublet_FilterRZ", true};
56  BooleanProperty m_useEtaBinning{this, "UseEtaBinning", true};
57  FloatProperty m_minPt{this, "pTmin", 1000.0};
58  IntegerProperty m_nMaxEdges{this, "MaxGraphEdges", 2000000};
59  StringProperty m_connectionFile{this, "ConnectionFileName", "binTables_ITK_RUN4.txt"};
60 
61  float m_phiSliceWidth = 0.;
62 
63  std::unique_ptr<GNN_FasTrackConnector> m_connector = nullptr;
64  std::vector<TrigInDetSiLayer> m_layerGeometry;
65  std::unique_ptr<const TrigFTF_GNN_Geometry> m_geo = nullptr;
66 };
67 
68 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IRegSelTool.h
TrigFTF_GNN_DataStorage
Definition: GNN_DataStorage.h:79
SeedingToolBase::initialize
virtual StatusCode initialize()
Definition: SeedingToolBase.cxx:19
SeedingToolBase::m_pixelId
const PixelID * m_pixelId
Definition: SeedingToolBase.h:47
SeedingToolBase
Definition: SeedingToolBase.h:26
GNN_FasTrackConnector.h
SeedingToolBase::buildTheGraph
std::pair< int, int > buildTheGraph(const IRoiDescriptor &, const std::unique_ptr< GNN_DataStorage > &, std::vector< GNN_Edge > &) const
Definition: SeedingToolBase.cxx:68
SeedingToolBase::m_nMaxEdges
IntegerProperty m_nMaxEdges
Definition: SeedingToolBase.h:58
SeedingToolBase::m_connector
std::unique_ptr< GNN_FasTrackConnector > m_connector
Definition: SeedingToolBase.h:63
SeedingToolBase::m_useBeamTilt
BooleanProperty m_useBeamTilt
Definition: SeedingToolBase.h:50
ITrigL2LayerNumberTool.h
SeedingToolBase::m_sctId
const SCT_ID * m_sctId
Definition: SeedingToolBase.h:46
SeedingToolBase::m_filter_phi
BooleanProperty m_filter_phi
Definition: SeedingToolBase.h:49
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TrigFTF_GNN_Node
Definition: GNN_DataStorage.h:18
SeedingToolBase::GNN_Node
TrigFTF_GNN_Node GNN_Node
Definition: SeedingToolBase.h:32
SeedingToolBase::GNN_Edge
TrigFTF_GNN_Edge GNN_Edge
Definition: SeedingToolBase.h:34
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
SeedingToolBase::SeedingToolBase
SeedingToolBase(const std::string &t, const std::string &n, const IInterface *p)
Definition: SeedingToolBase.h:28
SeedingToolBase::m_LRTmode
BooleanProperty m_LRTmode
Definition: SeedingToolBase.h:51
TrigFTF_GNN_Edge
Definition: GNN_DataStorage.h:106
SeedingToolBase::m_minPt
FloatProperty m_minPt
Definition: SeedingToolBase.h:57
beamspotman.n
n
Definition: beamspotman.py:731
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
SeedingToolBase::m_layerGeometry
std::vector< TrigInDetSiLayer > m_layerGeometry
Definition: SeedingToolBase.h:64
SeedingToolBase::m_atlasId
const AtlasDetectorID * m_atlasId
Definition: SeedingToolBase.h:45
AthAlgTool.h
SeedingToolBase::finalize
virtual StatusCode finalize()
Definition: SeedingToolBase.cxx:63
SeedingToolBase::m_connectionFile
StringProperty m_connectionFile
Definition: SeedingToolBase.h:59
SeedingToolBase::m_doubletFilterRZ
BooleanProperty m_doubletFilterRZ
Definition: SeedingToolBase.h:55
SeedingToolBase::m_useEtaBinning
BooleanProperty m_useEtaBinning
Definition: SeedingToolBase.h:56
SeedingToolBase::m_geo
std::unique_ptr< const TrigFTF_GNN_Geometry > m_geo
Definition: SeedingToolBase.h:65
SeedingToolBase::m_phiSliceWidth
float m_phiSliceWidth
Definition: SeedingToolBase.h:61
SCT_ID
Definition: SCT_ID.h:68
SeedingToolBase::m_useML
BooleanProperty m_useML
Definition: SeedingToolBase.h:52
SeedingToolBase::GNN_DataStorage
TrigFTF_GNN_DataStorage GNN_DataStorage
Definition: SeedingToolBase.h:33
AthAlgTool
Definition: AthAlgTool.h:26
GNN_DataStorage.h
PixelID
Definition: PixelID.h:67
SeedingToolBase::runCCA
int runCCA(int, std::vector< GNN_Edge > &) const
Definition: SeedingToolBase.cxx:293
SeedingToolBase::m_layerNumberTool
ToolHandle< ITrigL2LayerNumberTool > m_layerNumberTool
Definition: SeedingToolBase.h:43
SeedingToolBase::m_nMaxPhiSlice
UnsignedIntegerProperty m_nMaxPhiSlice
Definition: SeedingToolBase.h:54
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
GNN_Geometry.h