ATLAS Offline Software
ITkFastTrackFinderStandaloneConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 def ITkFastTrackFinderStandaloneCfg(flags, SiSPSeededTrackCollectionKey = None):
7 
8  acc.addPublicTool( CompFactory.TrigL2LayerNumberToolITk( name = "TrigL2LayerNumberTool_FTF",UseNewLayerScheme = True) )
9 
10  from TrkConfig.TrkTrackSummaryToolConfig import ITkTrackSummaryToolNoHoleSearchCfg
11  ITkTrackSummaryTool = acc.popToolsAndMerge(ITkTrackSummaryToolNoHoleSearchCfg(flags))
12  acc.addPublicTool(ITkTrackSummaryTool)
13 
14  from InDetConfig.SiTrackMakerConfig import ITkSiTrackMaker_xkCfg
15  ITkSiTrackMakerTool = acc.popToolsAndMerge(ITkSiTrackMaker_xkCfg(flags))
16 
17  ITkSiTrackMakerTool.CombinatorialTrackFinder.writeHolesFromPattern = False
18 
19  acc.addPublicTool( CompFactory.TrigInDetTrackFollowingTool( name = "TrigTrackFollowingTool_FTF") )
20  ITkSiTrackMakerTool.useTrigTrackFollowingTool = True
21  ITkSiTrackMakerTool.TrigTrackFollowingTool = acc.getPublicTool("TrigTrackFollowingTool_FTF")
22 
23  acc.addPublicTool( CompFactory.TrigInDetRoadPredictorTool( name = "TrigRoadPredictorTool_FTF", LayerNumberTool = acc.getPublicTool("TrigL2LayerNumberTool_FTF") ) )
24  ITkSiTrackMakerTool.useTrigInDetRoadPredictorTool = True
25  ITkSiTrackMakerTool.TrigInDetRoadPredictorTool = acc.getPublicTool("TrigRoadPredictorTool_FTF")
26 
27  acc.addPublicTool(ITkSiTrackMakerTool)
28 
29  acc.addPublicTool( CompFactory.TrigInDetTrackFitter( "TrigInDetTrackFitter" ) )
30 
31  from RegionSelector.RegSelToolConfig import (regSelTool_ITkStrip_Cfg, regSelTool_ITkPixel_Cfg)
32  pixRegSelTool = acc.popToolsAndMerge( regSelTool_ITkPixel_Cfg(flags) )
33  sctRegSelTool = acc.popToolsAndMerge( regSelTool_ITkStrip_Cfg(flags) )
34 
35  if flags.Trigger.InDetTracking.doGPU:
36  inDetAccelSvc = CompFactory.TrigInDetAccelerationSvc("TrigInDetAccelerationSvc")
37  inDetAccelSvc.useITkGeometry = True # Allows to read and export the ITk geometry
38  inDetAccelSvc.MiddleSpacePointLayers = [81000, 82000,
39  90011, 90012, 90013, 90014, 91002, 91003, 91004, 91005,
40  92000, 92001, 92002, 92003, 92004, 92005, 92006, 92007, 92008, 92009, 92010,
41  92011, 92012, 92013, 92014, 92015, 92016, 92017, 92018, 92019, 92020, 92021, 92022,
42  70011, 70012, 70013, 70014, 71002, 71003, 71004, 71005,
43  72000, 72001, 72002, 72003, 72004, 72005, 72006, 72007, 72008, 72009, 72010,
44  72011, 72012, 72013, 72014, 72015, 72016, 72017, 72018, 72019, 72020, 72021, 72022
45  ]
46  acc.addService(inDetAccelSvc)
47 
48  acc.addPublicTool(CompFactory.TrigITkAccelerationTool(name = "TrigITkAccelerationTool_FTF"))
49 
50  acc.addPublicTool( CompFactory.TrigSpacePointConversionTool( "TrigSpacePointConversionTool",
51  DoPhiFiltering = True,
52  UseBeamTilt = False,
53  UseNewLayerScheme = True,
54  RegSelTool_Pixel = pixRegSelTool,
55  RegSelTool_SCT = sctRegSelTool,
56  PixelSP_ContainerName = "ITkPixelSpacePoints",
57  UseSctSpacePoints = False,
58  layerNumberTool = acc.getPublicTool("TrigL2LayerNumberTool_FTF") ) )
59 
60  from TrigFastTrackFinder.TrigFastTrackFinderConfig import TrigFastTrackFinderMonitoringArg
61  from TriggerJobOpts.TriggerHistSvcConfig import TriggerHistSvcConfig
62  acc.merge(TriggerHistSvcConfig(flags))
63  monTool = TrigFastTrackFinderMonitoringArg(flags, name = "FullScan", doResMon=False)
64 
65  ftf = CompFactory.TrigFastTrackFinder( name = "TrigFastTrackFinder_",
66  LayerNumberTool = acc.getPublicTool( "TrigL2LayerNumberTool_FTF" ),
67  TrigAccelerationTool = acc.getPublicTool( "TrigITkAccelerationTool_FTF" ) if flags.Trigger.InDetTracking.doGPU else None,
68  TrigAccelerationSvc = acc.getService("TrigInDetAccelerationSvc") if flags.Trigger.InDetTracking.doGPU else None,
69  SpacePointProviderTool = acc.getPublicTool( "TrigSpacePointConversionTool"),
70  TrackSummaryTool = ITkTrackSummaryTool,
71  initialTrackMaker = ITkSiTrackMakerTool,
72  trigInDetTrackFitter = acc.getPublicTool( "TrigInDetTrackFitter" ),
73  trigZFinder = CompFactory.TrigZFinder(),
74  doZFinder = False,
75  SeedRadBinWidth = 10,
76  TrackInitialD0Max = 20.0,
77  TracksName = SiSPSeededTrackCollectionKey,
78  Triplet_D0Max = 4,
79  Triplet_MaxBufferLength = 1,
80  Triplet_MinPtFrac = 0.8,
81  UseTrigSeedML = 1,
82  doResMon = False,
83  doSeedRedundancyCheck = True,
84  pTmin = flags.Tracking.ActiveConfig.minPT[0],
85  useNewLayerNumberScheme = True,
86  MinHits = 3,
87  ITkMode = True, # Allows ftf to use the new TrigTrackSeedGenerator for ITk
88  useGPU = flags.Trigger.InDetTracking.doGPU,
89  StandaloneMode = True, # Allows ftf to be run as an offline algorithm with reco_tf
90  UseTracklets = True,
91  doTrackRefit = False,
92  FreeClustersCut = 1,
93  MonTool = monTool,
94  DoubletDR_Max = 150.0)
95 
96  acc.addEventAlgo( ftf, primary=True )
97 
98  return acc
99 
100 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigFastTrackFinderConfig.TrigFastTrackFinderMonitoringArg
def TrigFastTrackFinderMonitoringArg(flags, name, doResMon)
Definition: TrigFastTrackFinderConfig.py:12
ITkFastTrackFinderStandaloneConfig.ITkFastTrackFinderStandaloneCfg
def ITkFastTrackFinderStandaloneCfg(flags, SiSPSeededTrackCollectionKey=None)
Definition: ITkFastTrackFinderStandaloneConfig.py:5
RegSelToolConfig.regSelTool_ITkPixel_Cfg
def regSelTool_ITkPixel_Cfg(flags)
Definition: RegSelToolConfig.py:115
RegSelToolConfig.regSelTool_ITkStrip_Cfg
def regSelTool_ITkStrip_Cfg(flags)
Definition: RegSelToolConfig.py:121
python.TriggerHistSvcConfig.TriggerHistSvcConfig
def TriggerHistSvcConfig(flags)
Definition: TriggerHistSvcConfig.py:17
python.SiTrackMakerConfig.ITkSiTrackMaker_xkCfg
def ITkSiTrackMaker_xkCfg(flags, name="ITkSiTrackMaker", **kwargs)
Definition: SiTrackMakerConfig.py:163
python.TrkTrackSummaryToolConfig.ITkTrackSummaryToolNoHoleSearchCfg
def ITkTrackSummaryToolNoHoleSearchCfg(flags, name='ITkTrackSummaryToolNoHoleSearch', **kwargs)
Definition: TrkTrackSummaryToolConfig.py:115