ATLAS Offline Software
FPGATrackSimWindowExtensionTool.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef FPGATrackSimWINDOWEXTENSION_H
4 #define FPGATrackSimWINDOWEXTENSION_H
5 
13 #include "GaudiKernel/ServiceHandle.h"
15 
16 // add public header directory to algorithms for this?
18 
28 
29 #include <vector>
30 
31 class FPGATrackSimWindowExtensionTool : public extends <AthAlgTool, IFPGATrackSimTrackExtensionTool>
32 {
33  public:
34 
35  FPGATrackSimWindowExtensionTool(const std::string&, const std::string&, const IInterface*);
36 
37  virtual StatusCode initialize() override;
38 
39  virtual StatusCode extendTracks(const std::vector<std::shared_ptr<const FPGATrackSimHit>> & hits,
40  const std::vector<std::shared_ptr<const FPGATrackSimTrack>> & tracks,
41  std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads) override;
42 
43  // Deduplicate, fold into sector bank.
45 
46  private:
47 
48  ServiceHandle<IFPGATrackSimBankSvc> m_FPGATrackSimBankSvc {this, "FPGATrackSimBankSvc", "FPGATrackSimBankSvc"};
49  ServiceHandle<IFPGATrackSimMappingSvc> m_FPGATrackSimMapping {this, "FPGATrackSimMappingSvc", "FPGATrackSimMappingSvc"};
50 
51  // We'll definitely need properties, but I don't know which ones.
52  Gaudi::Property<int> m_threshold { this, "threshold", 11, "Minimum number of hits to fire a road"};
53  Gaudi::Property<std::vector<float>> m_windows {this, "phiWindow", {}, "Default window settings for phi, must be size nlayers."};
54  Gaudi::Property<std::vector<float>> m_zwindows {this, "zWindow", {}, "Default window settings for z, must be size nlayers."};
55  Gaudi::Property<bool> m_fieldCorrection {this, "fieldCorrection", true, "Use magnetic field correction for Hough transform"};
56  Gaudi::Property<bool> m_idealGeoRoads {this, "IdealGeoRoads", true, "Do sector assignment of second stage roads"};
57 
58  // Options only needed for sector assignment.
59  // The eta pattern option here should probably be dropped, because we're not using it
60  // and supporting it requires having two sets of eta patterns (one for the first stage, one for the second)
61  // and then running the eta pattern filter a second time.
62  Gaudi::Property <bool> m_doRegionalMapping { this, "RegionalMapping", false, "Use the sub-region maps to define the sector"};
63  Gaudi::Property <bool> m_doEtaPatternConsts { this, "doEtaPatternConsts", false, "Whether to use the eta pattern tool for constant generation"};
64  Gaudi::Property <bool> m_useSpacePoints { this, "useSpacePoints", false, "Whether we are using spacepoints."};
65 
66  std::vector<FPGATrackSimRoad> m_roads;
67  std::map<unsigned, std::vector<std::shared_ptr<const FPGATrackSimHit>>> m_phits_atLayer;
68  unsigned m_nLayers_1stStage = 0;
69  unsigned m_nLayers_2ndStage = 0;
70 
71 };
72 
73 #endif
beamspotman.r
def r
Definition: beamspotman.py:676
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
FPGATrackSimWindowExtensionTool::m_fieldCorrection
Gaudi::Property< bool > m_fieldCorrection
Definition: FPGATrackSimWindowExtensionTool.h:55
FPGATrackSimWindowExtensionTool::m_useSpacePoints
Gaudi::Property< bool > m_useSpacePoints
Definition: FPGATrackSimWindowExtensionTool.h:64
FPGATrackSimPlaneMap.h
Maps physical layers to logical layers.
IFPGATrackSimMappingSvc.h
FPGATrackSimWindowExtensionTool::m_phits_atLayer
std::map< unsigned, std::vector< std::shared_ptr< const FPGATrackSimHit > > > m_phits_atLayer
Definition: FPGATrackSimWindowExtensionTool.h:67
IFPGATrackSimTrackExtensionTool.h
Interface declaration for track extension tools (tracks + hits -> roads)
FPGATrackSimWindowExtensionTool::m_FPGATrackSimBankSvc
ServiceHandle< IFPGATrackSimBankSvc > m_FPGATrackSimBankSvc
Definition: FPGATrackSimWindowExtensionTool.h:48
FPGATrackSimRegionMap.h
Maps ITK module indices to FPGATrackSim regions.
FPGATrackSimWindowExtensionTool::extendTracks
virtual StatusCode extendTracks(const std::vector< std::shared_ptr< const FPGATrackSimHit >> &hits, const std::vector< std::shared_ptr< const FPGATrackSimTrack >> &tracks, std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads) override
Definition: FPGATrackSimWindowExtensionTool.cxx:46
FPGATrackSimWindowExtensionTool::m_doRegionalMapping
Gaudi::Property< bool > m_doRegionalMapping
Definition: FPGATrackSimWindowExtensionTool.h:62
FPGATrackSimWindowExtensionTool
Definition: FPGATrackSimWindowExtensionTool.h:32
FPGATrackSimWindowExtensionTool::initialize
virtual StatusCode initialize() override
Definition: FPGATrackSimWindowExtensionTool.cxx:29
FPGATrackSimWindowExtensionTool::m_roads
std::vector< FPGATrackSimRoad > m_roads
Definition: FPGATrackSimWindowExtensionTool.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
FPGATrackSimWindowExtensionTool::m_windows
Gaudi::Property< std::vector< float > > m_windows
Definition: FPGATrackSimWindowExtensionTool.h:53
FPGATrackSimWindowExtensionTool::FPGATrackSimWindowExtensionTool
FPGATrackSimWindowExtensionTool(const std::string &, const std::string &, const IInterface *)
Definition: FPGATrackSimWindowExtensionTool.cxx:23
FPGATrackSimWindowExtensionTool::m_FPGATrackSimMapping
ServiceHandle< IFPGATrackSimMappingSvc > m_FPGATrackSimMapping
Definition: FPGATrackSimWindowExtensionTool.h:49
FPGATrackSimFunctions.h
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
FPGATrackSimWindowExtensionTool::m_nLayers_2ndStage
unsigned m_nLayers_2ndStage
Definition: FPGATrackSimWindowExtensionTool.h:69
FPGATrackSimWindowExtensionTool::m_nLayers_1stStage
unsigned m_nLayers_1stStage
Definition: FPGATrackSimWindowExtensionTool.h:68
FPGATrackSimWindowExtensionTool::matchIdealGeoSector
void matchIdealGeoSector(FPGATrackSimRoad &r) const
Definition: FPGATrackSimWindowExtensionTool.cxx:186
FPGATrackSimWindowExtensionTool::m_threshold
Gaudi::Property< int > m_threshold
Definition: FPGATrackSimWindowExtensionTool.h:52
FPGATrackSimWindowExtensionTool::m_idealGeoRoads
Gaudi::Property< bool > m_idealGeoRoads
Definition: FPGATrackSimWindowExtensionTool.h:56
FPGATrackSimWindowExtensionTool::m_zwindows
Gaudi::Property< std::vector< float > > m_zwindows
Definition: FPGATrackSimWindowExtensionTool.h:54
IFPGATrackSimBankSvc.h
FPGATrackSimWindowExtensionTool::m_doEtaPatternConsts
Gaudi::Property< bool > m_doEtaPatternConsts
Definition: FPGATrackSimWindowExtensionTool.h:63
FPGATrackSimRoad.h
Defines a class for roads.
FPGATrackSimTypes.h
FPGATrackSimTrack.h
FPGATrackSimRoad
Definition: FPGATrackSimRoad.h:30
ServiceHandle< IFPGATrackSimBankSvc >