ATLAS Offline Software
Functions | Variables
python.FPGATrackSimAnalysisConfig Namespace Reference

Functions

def getNSubregions (filePath)
 
def FPGATrackSimWriteOutputCfg (flags)
 
def FPGATrackSimBankSvcCfg (flags)
 
def FPGATrackSimRoadUnionToolCfg (flags)
 
def FPGATrackSimRoadUnionTool1DCfg (flags)
 
def FPGATrackSimDataFlowToolCfg (flags)
 
def FPGATrackSimHoughRootOutputToolCfg (flags)
 
def LRTRoadFinderCfg (flags)
 
def NNTrackToolCfg (flags)
 
def FPGATrackSimTrackFitterToolCfg (flags)
 
def FPGATrackSimOverlapRemovalToolCfg (flags)
 
def prepareFlagsForFPGATrackSimLogicalHitsProcessAlg (flags)
 
def FPGATrackSimLogicalHitsProcessAlgCfg (inputFlags)
 

Variables

 log
 
 flags
 
 AtlasVersion
 
 FinalProtoTrackChainxAODTracksKey
 Flags used in the prototrack chain. More...
 
 EnableCalo
 
 doAthenaToActsSpacePoint
 
 doAthenaToActsCluster
 
 recoChain
 
 doRotCorrection
 
 outputFilePrefix
 
 plotsDefFileList
 
 plotsCommonValuesFile
 
 OutputFileName
 
 doWriteAOD_IDTPM
 
 AOD_IDTPMFileName
 
 trkAnaCfgFile
 
 TrigTrkKey
 override respective configurations from trkAnaCfgFile (in case something changes in the config file) More...
 
 doExample
 
 NumThreads
 
 ShowDataDeps
 
 CheckDependencies
 
 etaPatternFilter
 
 phiRoadFilter
 
 hough1D
 
 hough
 
 splitPipeline
 if DP pipeline skip everything else! More...
 
 trackingOption
 
 trackingOptionMod
 
 tracking
 
 wrapperFileName
 
 Files
 
 acc
 
 Output
 
 name
 
 stage
 
 doActsTrk
 
 True
 
 doSP
 
 enableTrackStatePrinter
 
 False
 
 ProtoTracksLocation
 
 finalTrackParticles
 
 doClusters
 
 doHits
 
 perEventReports
 
 statusCode
 

Function Documentation

◆ FPGATrackSimBankSvcCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimBankSvcCfg (   flags)

Definition at line 37 of file FPGATrackSimAnalysisConfig.py.

37 def FPGATrackSimBankSvcCfg(flags):
38  result=ComponentAccumulator()
39  FPGATrackSimBankSvc = CompFactory.FPGATrackSimBankSvc()
40  pathBankSvc = flags.Trigger.FPGATrackSim.bankDir if flags.Trigger.FPGATrackSim.bankDir != '' else f'/eos/atlas/atlascerngroupdisk/det-htt/HTTsim/{flags.GeoModel.AtlasVersion}/21.9.16/'+FPGATrackSimDataPrepConfig.getBaseName(flags)+'/SectorBanks/'
41  FPGATrackSimBankSvc.constantsNoGuess_1st = [
42  f'{pathBankSvc}corrgen_raw_8L_skipPlane0.gcon',
43  f'{pathBankSvc}corrgen_raw_8L_skipPlane1.gcon',
44  f'{pathBankSvc}corrgen_raw_8L_skipPlane2.gcon',
45  f'{pathBankSvc}corrgen_raw_8L_skipPlane3.gcon',
46  f'{pathBankSvc}corrgen_raw_8L_skipPlane4.gcon',
47  f'{pathBankSvc}corrgen_raw_8L_skipPlane5.gcon',
48  f'{pathBankSvc}corrgen_raw_8L_skipPlane6.gcon',
49  f'{pathBankSvc}corrgen_raw_8L_skipPlane7.gcon']
50  FPGATrackSimBankSvc.constantsNoGuess_2nd = [
51  f'{pathBankSvc}corrgen_raw_13L_skipPlane0.gcon',
52  f'{pathBankSvc}corrgen_raw_13L_skipPlane1.gcon',
53  f'{pathBankSvc}corrgen_raw_13L_skipPlane2.gcon',
54  f'{pathBankSvc}corrgen_raw_13L_skipPlane3.gcon',
55  f'{pathBankSvc}corrgen_raw_13L_skipPlane4.gcon',
56  f'{pathBankSvc}corrgen_raw_13L_skipPlane5.gcon',
57  f'{pathBankSvc}corrgen_raw_13L_skipPlane6.gcon',
58  f'{pathBankSvc}corrgen_raw_13L_skipPlane7.gcon']
59  FPGATrackSimBankSvc.constants_1st = f'{pathBankSvc}corrgen_raw_9L_reg{flags.Trigger.FPGATrackSim.region}_checkGood1.gcon'
60  FPGATrackSimBankSvc.constants_2nd = f'{pathBankSvc}corrgen_raw_13L_reg{flags.Trigger.FPGATrackSim.region}_checkGood1.gcon'
61  FPGATrackSimBankSvc.sectorBank_1st = f'{pathBankSvc}sectorsHW_raw_9L_reg{flags.Trigger.FPGATrackSim.region}_checkGood1.patt'
62  FPGATrackSimBankSvc.sectorBank_2nd = f'{pathBankSvc}sectorsHW_raw_13L_reg{flags.Trigger.FPGATrackSim.region}_checkGood1.patt'
63  FPGATrackSimBankSvc.sectorSlices = f'{pathBankSvc}slices_9L_reg{flags.Trigger.FPGATrackSim.region}.root'
64 
65  # These should be configurable. The tag system needs updating though.
66  import FPGATrackSimConfTools.FPGATrackSimTagConfig as FPGATrackSimTagConfig
67  bank_tag = FPGATrackSimTagConfig.getTags(stage='bank')['bank']
68  FPGATrackSimBankSvc.sectorQPtBins = bank_tag['sectorQPtBins']
69  FPGATrackSimBankSvc.qptAbsBinning = bank_tag['qptAbsBinning']
70 
71  result.addService(FPGATrackSimBankSvc, create=True, primary=True)
72  return result
73 
74 

◆ FPGATrackSimDataFlowToolCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimDataFlowToolCfg (   flags)

Definition at line 170 of file FPGATrackSimAnalysisConfig.py.

170 def FPGATrackSimDataFlowToolCfg(flags):
171  result=ComponentAccumulator()
172  DataFlowTool = CompFactory.FPGATrackSimDataFlowTool()
173  DataFlowTool.FPGATrackSimEventSelectionSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimEventSelectionCfg(flags))
174  DataFlowTool.FPGATrackSimMappingSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
175  DataFlowTool.Chi2ndofCut = flags.Trigger.FPGATrackSim.ActiveConfig.chi2cut
176  DataFlowTool.THistSvc = CompFactory.THistSvc()
177  result.setPrivateTools(DataFlowTool)
178  return result
179 

◆ FPGATrackSimHoughRootOutputToolCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimHoughRootOutputToolCfg (   flags)

Definition at line 180 of file FPGATrackSimAnalysisConfig.py.

181  result=ComponentAccumulator()
182  HoughRootOutputTool = CompFactory.FPGATrackSimHoughRootOutputTool()
183  HoughRootOutputTool.FPGATrackSimEventSelectionSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimEventSelectionCfg(flags))
184  HoughRootOutputTool.FPGATrackSimMappingSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
185  HoughRootOutputTool.THistSvc = CompFactory.THistSvc()
186  result.setPrivateTools(HoughRootOutputTool)
187  return result
188 

◆ FPGATrackSimLogicalHitsProcessAlgCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimLogicalHitsProcessAlgCfg (   inputFlags)

Definition at line 247 of file FPGATrackSimAnalysisConfig.py.

248 
250 
251  result=ComponentAccumulator()
252  if not flags.Trigger.FPGATrackSim.wrapperFileName:
253  from InDetConfig.InDetPrepRawDataFormationConfig import AthenaTrkClusterizationCfg
254  result.merge(AthenaTrkClusterizationCfg(flags))
255 
256  theFPGATrackSimLogicalHitsProcessAlg=CompFactory.FPGATrackSimLogicalHitsProcessAlg()
257  theFPGATrackSimLogicalHitsProcessAlg.writeOutputData = flags.Trigger.FPGATrackSim.ActiveConfig.writeOutputData
258  theFPGATrackSimLogicalHitsProcessAlg.tracking = flags.Trigger.FPGATrackSim.tracking
259  theFPGATrackSimLogicalHitsProcessAlg.DoMissingHitsChecks = flags.Trigger.FPGATrackSim.ActiveConfig.doMissingHitsChecks
260  theFPGATrackSimLogicalHitsProcessAlg.DoHoughRootOutput = flags.Trigger.FPGATrackSim.ActiveConfig.houghRootoutput
261  theFPGATrackSimLogicalHitsProcessAlg.DoNNTrack = False
262  theFPGATrackSimLogicalHitsProcessAlg.runOnRDO = not flags.Trigger.FPGATrackSim.wrapperFileName
263  theFPGATrackSimLogicalHitsProcessAlg.eventSelector = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimEventSelectionCfg(flags))
264  theFPGATrackSimLogicalHitsProcessAlg.TrackScoreCut = flags.Trigger.FPGATrackSim.ActiveConfig.chi2cut
265 
266  FPGATrackSimMaping = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
267  theFPGATrackSimLogicalHitsProcessAlg.FPGATrackSimMapping = FPGATrackSimMaping
268 
269  # If tracking is set to False, don't configure the bank service
270  if flags.Trigger.FPGATrackSim.tracking:
271  result.getPrimaryAndMerge(FPGATrackSimBankSvcCfg(flags))
272 
273  if (flags.Trigger.FPGATrackSim.ActiveConfig.hough1D):
274  theFPGATrackSimLogicalHitsProcessAlg.RoadFinder = result.getPrimaryAndMerge(FPGATrackSimRoadUnionTool1DCfg(flags))
275  else:
276  theFPGATrackSimLogicalHitsProcessAlg.RoadFinder = result.getPrimaryAndMerge(FPGATrackSimRoadUnionToolCfg(flags))
277 
278  if flags.Trigger.FPGATrackSim.ActiveConfig.etaPatternFilter:
279  EtaPatternFilter = CompFactory.FPGATrackSimEtaPatternFilterTool()
280  EtaPatternFilter.FPGATrackSimMappingSvc = FPGATrackSimMaping
281  EtaPatternFilter.threshold = flags.Trigger.FPGATrackSim.Hough1D.threshold[0]
282  EtaPatternFilter.EtaPatterns = flags.Trigger.FPGATrackSim.mapsDir+"/"+FPGATrackSimDataPrepConfig.getBaseName(flags)+".patt"
283  theFPGATrackSimLogicalHitsProcessAlg.RoadFilter = EtaPatternFilter
284  theFPGATrackSimLogicalHitsProcessAlg.FilterRoads = True
285 
286  if (flags.Trigger.FPGATrackSim.ActiveConfig.phiRoadFilter):
287  RoadFilter2 = CompFactory.FPGATrackSimPhiRoadFilterTool()
288  RoadFilter2.FPGATrackSimMappingSvc = FPGATrackSimMaping
289  RoadFilter2.threshold = flags.Trigger.FPGATrackSim.Hough1D.threshold[0]
290  RoadFilter2.fieldCorrection = flags.Trigger.FPGATrackSim.ActiveConfig.fieldCorrection
291 
292  windows = [flags.Trigger.FPGATrackSim.Hough1D.phifilterwindow for i in range(len(flags.Trigger.FPGATrackSim.ActiveConfig.hitExtendX))]
293  RoadFilter2.window = windows
294 
295  theFPGATrackSimLogicalHitsProcessAlg.RoadFilter2 = RoadFilter2
296  theFPGATrackSimLogicalHitsProcessAlg.FilterRoads2 = True
297 
298 
299  theFPGATrackSimLogicalHitsProcessAlg.HoughRootOutputTool = result.getPrimaryAndMerge(FPGATrackSimHoughRootOutputToolCfg(flags))
300 
301  LRTRoadFilter = CompFactory.FPGATrackSimLLPRoadFilterTool()
302  result.addPublicTool(LRTRoadFilter)
303  theFPGATrackSimLogicalHitsProcessAlg.LRTRoadFilter = LRTRoadFilter
304 
305  theFPGATrackSimLogicalHitsProcessAlg.LRTRoadFinder = result.getPrimaryAndMerge(LRTRoadFinderCfg(flags))
306  theFPGATrackSimLogicalHitsProcessAlg.NNTrackTool = result.getPrimaryAndMerge(NNTrackToolCfg(flags))
307 
308  theFPGATrackSimLogicalHitsProcessAlg.OutputTool = result.getPrimaryAndMerge(FPGATrackSimWriteOutputCfg(flags))
309  theFPGATrackSimLogicalHitsProcessAlg.TrackFitter_1st = result.getPrimaryAndMerge(FPGATrackSimTrackFitterToolCfg(flags))
310  theFPGATrackSimLogicalHitsProcessAlg.OverlapRemoval_1st = result.getPrimaryAndMerge(FPGATrackSimOverlapRemovalToolCfg(flags))
311 
312  # Create SPRoadFilterTool if spacepoints are turned on. TODO: make things configurable?
313  if flags.Trigger.FPGATrackSim.spacePoints:
314  SPRoadFilter = CompFactory.FPGATrackSimSpacepointRoadFilterTool("FPGATrackSimSpacepointRoadFilterTool_1st")
315  SPRoadFilter.filtering = flags.Trigger.FPGATrackSim.ActiveConfig.spacePointFiltering
316  SPRoadFilter.minSpacePlusPixel = flags.Trigger.FPGATrackSim.minSpacePlusPixel
317  # TODO guard here against threshold being more than one value?
318  if (flags.Trigger.FPGATrackSim.ActiveConfig.hough1D):
319  SPRoadFilter.threshold = flags.Trigger.FPGATrackSim.Hough1D.threshold[0]
320  else:
321  SPRoadFilter.threshold = flags.Trigger.FPGATrackSim.ActiveConfig.threshold[0]
322  SPRoadFilter.setSectors = (flags.Trigger.FPGATrackSim.ActiveConfig.IdealGeoRoads and flags.Trigger.FPGATrackSim.tracking)
323 
324  theFPGATrackSimLogicalHitsProcessAlg.SPRoadFilterTool = SPRoadFilter
325  theFPGATrackSimLogicalHitsProcessAlg.Spacepoints = True
326 
327 
328  if flags.Trigger.FPGATrackSim.ActiveConfig.lrt:
329  assert flags.Trigger.FPGATrackSim.ActiveConfig.lrtUseBasicHitFilter != flags.Trigger.FPGATrackSim.ActiveConfig.lrtUseMlHitFilter, 'Inconsistent LRT hit filtering setup, need either ML of Basic filtering enabled'
330  assert flags.Trigger.FPGATrackSim.ActiveConfig.lrtUseStraightTrackHT != flags.Trigger.FPGATrackSim.ActiveConfig.lrtUseDoubletHT, 'Inconsistent LRT HT setup, need either double or strightTrack enabled'
331  theFPGATrackSimLogicalHitsProcessAlg.doLRT = True
332  theFPGATrackSimLogicalHitsProcessAlg.LRTHitFiltering = (not flags.Trigger.FPGATrackSim.ActiveConfig.lrtSkipHitFiltering)
333 
334  from FPGATrackSimAlgorithms.FPGATrackSimAlgorithmConfig import FPGATrackSimLogicalHitsProcessAlgMonitoringCfg
335  theFPGATrackSimLogicalHitsProcessAlg.MonTool = result.getPrimaryAndMerge(FPGATrackSimLogicalHitsProcessAlgMonitoringCfg(flags))
336 
337  result.addEventAlgo(theFPGATrackSimLogicalHitsProcessAlg)
338 
339  return result
340 
341 
342 
343 

◆ FPGATrackSimOverlapRemovalToolCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimOverlapRemovalToolCfg (   flags)

Definition at line 226 of file FPGATrackSimAnalysisConfig.py.

227  result=ComponentAccumulator()
228  OR_1st = CompFactory.FPGATrackSimOverlapRemovalTool("FPGATrackSimOverlapRemovalTool_1st")
229  OR_1st.ORAlgo = "Normal"
230  OR_1st.doFastOR =flags.Trigger.FPGATrackSim.ActiveConfig.doFastOR
231  OR_1st.NumOfHitPerGrouping = 5
232  OR_1st.FPGATrackSimMappingSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
233  OR_1st.MinChi2 = flags.Trigger.FPGATrackSim.ActiveConfig.chi2cut
234  if flags.Trigger.FPGATrackSim.ActiveConfig.hough:
235  OR_1st.nBins_x = flags.Trigger.FPGATrackSim.ActiveConfig.xBins + 2 * flags.Trigger.FPGATrackSim.ActiveConfig.xBufferBins
236  OR_1st.nBins_y = flags.Trigger.FPGATrackSim.ActiveConfig.yBins + 2 * flags.Trigger.FPGATrackSim.ActiveConfig.yBufferBins
237  OR_1st.localMaxWindowSize = flags.Trigger.FPGATrackSim.ActiveConfig.localMaxWindowSize
238  OR_1st.roadSliceOR = flags.Trigger.FPGATrackSim.ActiveConfig.roadSliceOR
239 
240  result.addPublicTool(OR_1st, primary=True)
241  return result
242 

◆ FPGATrackSimRoadUnionTool1DCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionTool1DCfg (   flags)

Definition at line 129 of file FPGATrackSimAnalysisConfig.py.

130  result=ComponentAccumulator()
131  tools = []
132  RF = CompFactory.FPGATrackSimRoadUnionTool()
133  splitpt=flags.Trigger.FPGATrackSim.Hough1D.splitpt
134  FPGATrackSimMapping = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
135  for ptstep in range(splitpt):
136  qpt_min = flags.Trigger.FPGATrackSim.Hough1D.qptMin
137  qpt_max = flags.Trigger.FPGATrackSim.Hough1D.qptMax
138  lowpt = qpt_min + (qpt_max-qpt_min)/splitpt*ptstep
139  highpt = qpt_min + (qpt_max-qpt_min)/splitpt*(ptstep+1)
140  nSlice = getNSubregions(FPGATrackSimMapping.subrmap)
141  for iSlice in range(nSlice):
142  tool = CompFactory.FPGATrackSimHough1DShiftTool("Hough1DShift" + str(iSlice)+(("_pt{}".format(ptstep)) if splitpt>1 else ""))
143  tool.subRegion = iSlice if nSlice > 1 else -1
144  tool.phiMin = flags.Trigger.FPGATrackSim.Hough1D.phiMin
145  tool.phiMax = flags.Trigger.FPGATrackSim.Hough1D.phiMax
146  tool.qptMin = lowpt
147  tool.qptMax = highpt
148  tool.nBins = flags.Trigger.FPGATrackSim.Hough1D.xBins
149  tool.useDiff = True
150  tool.variableExtend = True
151  tool.drawHitMasks = False
152  tool.phiRangeCut = flags.Trigger.FPGATrackSim.Hough1D.phiRangeCut
153  tool.d0spread=-1.0 # mm
154  tool.iterStep = 0 # auto, TODO put in tag
155  tool.iterLayer = 7 # TODO put in tag
156  tool.threshold = flags.Trigger.FPGATrackSim.Hough1D.threshold[0]
157  tool.hitExtend = flags.Trigger.FPGATrackSim.Hough1D.hitExtendX
158  tool.FPGATrackSimEventSelectionSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimEventSelectionCfg(flags))
159  tool.FPGATrackSimBankSvc = result.getPrimaryAndMerge(FPGATrackSimBankSvcCfg(flags))
160  tool.FPGATrackSimMappingSvc = FPGATrackSimMapping
161  tool.IdealGeoRoads = (flags.Trigger.FPGATrackSim.ActiveConfig.IdealGeoRoads and flags.Trigger.FPGATrackSim.tracking)
162  tool.useSpacePoints = flags.Trigger.FPGATrackSim.spacePoints
163 
164  tools.append(tool)
165 
166  RF.tools = tools
167  result.addPublicTool(RF, primary=True)
168  return result
169 

◆ FPGATrackSimRoadUnionToolCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionToolCfg (   flags)

Definition at line 75 of file FPGATrackSimAnalysisConfig.py.

76  result=ComponentAccumulator()
77  RF = CompFactory.FPGATrackSimRoadUnionTool()
78 
79  xBins = flags.Trigger.FPGATrackSim.ActiveConfig.xBins
80  xBufferBins = flags.Trigger.FPGATrackSim.ActiveConfig.xBufferBins
81  yBins = flags.Trigger.FPGATrackSim.ActiveConfig.yBins
82  yBufferBins = flags.Trigger.FPGATrackSim.ActiveConfig.yBufferBins
83  xMin = flags.Trigger.FPGATrackSim.ActiveConfig.phiMin
84  xMax = flags.Trigger.FPGATrackSim.ActiveConfig.phiMax
85  xBuffer = (xMax - xMin) / xBins * xBufferBins
86  xMin = xMin - xBuffer
87  xMax = xMax + xBuffer
88  yMin = flags.Trigger.FPGATrackSim.ActiveConfig.qptMin
89  yMax = flags.Trigger.FPGATrackSim.ActiveConfig.qptMax
90  yBuffer = (yMax - yMin) / yBins * yBufferBins
91  yMin -= yBuffer
92  yMax += yBuffer
93  tools = []
94 
95  FPGATrackSimMapping = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
96  for number in range(getNSubregions(FPGATrackSimMapping.subrmap)):
97  HoughTransform = CompFactory.FPGATrackSimHoughTransformTool("HoughTransform_0_" + str(number))
98  HoughTransform.FPGATrackSimEventSelectionSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimEventSelectionCfg(flags))
99  HoughTransform.FPGATrackSimBankSvc = result.getPrimaryAndMerge(FPGATrackSimBankSvcCfg(flags))
100  HoughTransform.FPGATrackSimMappingSvc = FPGATrackSimMapping
101  HoughTransform.combine_layers = flags.Trigger.FPGATrackSim.ActiveConfig.combineLayers
102  HoughTransform.convSize_x = flags.Trigger.FPGATrackSim.ActiveConfig.convSizeX
103  HoughTransform.convSize_y = flags.Trigger.FPGATrackSim.ActiveConfig.convSizeY
104  HoughTransform.convolution = flags.Trigger.FPGATrackSim.ActiveConfig.convolution
105  HoughTransform.d0_max = 0
106  HoughTransform.d0_min = 0
107  HoughTransform.fieldCorrection = flags.Trigger.FPGATrackSim.ActiveConfig.fieldCorrection
108  HoughTransform.hitExtend_x = flags.Trigger.FPGATrackSim.ActiveConfig.hitExtendX
109  HoughTransform.localMaxWindowSize = flags.Trigger.FPGATrackSim.ActiveConfig.localMaxWindowSize
110  HoughTransform.nBins_x = xBins + 2 * xBufferBins
111  HoughTransform.nBins_y = yBins + 2 * yBufferBins
112  HoughTransform.phi_max = xMax
113  HoughTransform.phi_min = xMin
114  HoughTransform.qpT_max = yMax
115  HoughTransform.qpT_min = yMin
116  HoughTransform.scale = flags.Trigger.FPGATrackSim.ActiveConfig.scale
117  HoughTransform.subRegion = number
118  HoughTransform.threshold = flags.Trigger.FPGATrackSim.ActiveConfig.threshold
119  HoughTransform.traceHits = True
120  HoughTransform.IdealGeoRoads = (flags.Trigger.FPGATrackSim.ActiveConfig.IdealGeoRoads and flags.Trigger.FPGATrackSim.tracking)
121  HoughTransform.useSpacePoints = flags.Trigger.FPGATrackSim.spacePoints
122 
123  tools.append(HoughTransform)
124 
125  RF.tools = tools
126  result.addPublicTool(RF, primary=True)
127  return result
128 

◆ FPGATrackSimTrackFitterToolCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimTrackFitterToolCfg (   flags)

Definition at line 210 of file FPGATrackSimAnalysisConfig.py.

211  result=ComponentAccumulator()
212  TF_1st = CompFactory.FPGATrackSimTrackFitterTool("FPGATrackSimTrackFitterTool_1st")
213  TF_1st.GuessHits = flags.Trigger.FPGATrackSim.ActiveConfig.guessHits
214  TF_1st.IdealCoordFitType = flags.Trigger.FPGATrackSim.ActiveConfig.idealCoordFitType
215  TF_1st.FPGATrackSimBankSvc = result.getPrimaryAndMerge(FPGATrackSimBankSvcCfg(flags))
216  TF_1st.FPGATrackSimMappingSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
217  TF_1st.chi2DofRecoveryMax = flags.Trigger.FPGATrackSim.ActiveConfig.chi2DoFRecoveryMax
218  TF_1st.chi2DofRecoveryMin = flags.Trigger.FPGATrackSim.ActiveConfig.chi2DoFRecoveryMin
219  TF_1st.doMajority = flags.Trigger.FPGATrackSim.ActiveConfig.doMajority
220  TF_1st.nHits_noRecovery = flags.Trigger.FPGATrackSim.ActiveConfig.nHitsNoRecovery
221  TF_1st.DoDeltaGPhis = flags.Trigger.FPGATrackSim.ActiveConfig.doDeltaGPhis
222  TF_1st.DoMissingHitsChecks = flags.Trigger.FPGATrackSim.ActiveConfig.doMissingHitsChecks
223  result.addPublicTool(TF_1st, primary=True)
224  return result
225 

◆ FPGATrackSimWriteOutputCfg()

def python.FPGATrackSimAnalysisConfig.FPGATrackSimWriteOutputCfg (   flags)

Definition at line 24 of file FPGATrackSimAnalysisConfig.py.

25  result=ComponentAccumulator()
26  FPGATrackSimWriteOutput = CompFactory.FPGATrackSimOutputHeaderTool("FPGATrackSimWriteOutput")
27  FPGATrackSimWriteOutput.InFileName = ["test.root"]
28  # RECREATE means that that this tool opens the file.
29  # HEADER would mean that something else (e.g. THistSvc) opens it and we just add the object.
30  FPGATrackSimWriteOutput.RWstatus = "HEADER"
31  FPGATrackSimWriteOutput.THistSvc = CompFactory.THistSvc()
32  result.addPublicTool(FPGATrackSimWriteOutput, primary=True)
33  return result
34 
35 
36 

◆ getNSubregions()

def python.FPGATrackSimAnalysisConfig.getNSubregions (   filePath)

Definition at line 14 of file FPGATrackSimAnalysisConfig.py.

14 def getNSubregions(filePath):
15  with open(PathResolver.FindCalibFile(filePath), 'r') as f:
16  fields = f.readline()
17  assert(fields.startswith('towers'))
18  n = fields.split()[1]
19  return int(n)
20 
21 
22 
23 # Need to figure out if we have two output writers or somehow only one.

◆ LRTRoadFinderCfg()

def python.FPGATrackSimAnalysisConfig.LRTRoadFinderCfg (   flags)

Definition at line 189 of file FPGATrackSimAnalysisConfig.py.

189 def LRTRoadFinderCfg(flags):
190  result=ComponentAccumulator()
191  LRTRoadFinder =CompFactory.FPGATrackSimHoughTransform_d0phi0_Tool()
192  LRTRoadFinder.FPGATrackSimBankSvc = result.getPrimaryAndMerge(FPGATrackSimBankSvcCfg(flags))
193  LRTRoadFinder.FPGATrackSimMappingSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
194  LRTRoadFinder.combine_layers = flags.Trigger.FPGATrackSim.ActiveConfig.lrtStraighttrackCombineLayers
195  LRTRoadFinder.convolution = flags.Trigger.FPGATrackSim.ActiveConfig.lrtStraighttrackConvolution
196  LRTRoadFinder.hitExtend_x = flags.Trigger.FPGATrackSim.ActiveConfig.lrtStraighttrackHitExtendX
197  LRTRoadFinder.scale = flags.Trigger.FPGATrackSim.ActiveConfig.scale
198  LRTRoadFinder.threshold = flags.Trigger.FPGATrackSim.ActiveConfig.lrtStraighttrackThreshold
199  result.setPrivateTools(LRTRoadFinder)
200  return result
201 

◆ NNTrackToolCfg()

def python.FPGATrackSimAnalysisConfig.NNTrackToolCfg (   flags)

Definition at line 202 of file FPGATrackSimAnalysisConfig.py.

202 def NNTrackToolCfg(flags):
203  result=ComponentAccumulator()
204  NNTrackTool = CompFactory.FPGATrackSimNNTrackTool()
205  NNTrackTool.THistSvc = CompFactory.THistSvc()
206  NNTrackTool.FPGATrackSimMappingSvc = result.getPrimaryAndMerge(FPGATrackSimDataPrepConfig.FPGATrackSimMappingCfg(flags))
207  result.setPrivateTools(NNTrackTool)
208  return result
209 

◆ prepareFlagsForFPGATrackSimLogicalHitsProcessAlg()

def python.FPGATrackSimAnalysisConfig.prepareFlagsForFPGATrackSimLogicalHitsProcessAlg (   flags)

Definition at line 243 of file FPGATrackSimAnalysisConfig.py.

244  newFlags = flags.cloneAndReplace("Trigger.FPGATrackSim.ActiveConfig", "Trigger.FPGATrackSim." + flags.Trigger.FPGATrackSim.algoTag)
245  return newFlags
246 

Variable Documentation

◆ acc

python.FPGATrackSimAnalysisConfig.acc

Definition at line 437 of file FPGATrackSimAnalysisConfig.py.

◆ AOD_IDTPMFileName

python.FPGATrackSimAnalysisConfig.AOD_IDTPMFileName

Definition at line 375 of file FPGATrackSimAnalysisConfig.py.

◆ AtlasVersion

python.FPGATrackSimAnalysisConfig.AtlasVersion

Definition at line 352 of file FPGATrackSimAnalysisConfig.py.

◆ CheckDependencies

python.FPGATrackSimAnalysisConfig.CheckDependencies

Definition at line 388 of file FPGATrackSimAnalysisConfig.py.

◆ doActsTrk

python.FPGATrackSimAnalysisConfig.doActsTrk

Definition at line 475 of file FPGATrackSimAnalysisConfig.py.

◆ doAthenaToActsCluster

python.FPGATrackSimAnalysisConfig.doAthenaToActsCluster

Definition at line 361 of file FPGATrackSimAnalysisConfig.py.

◆ doAthenaToActsSpacePoint

python.FPGATrackSimAnalysisConfig.doAthenaToActsSpacePoint

Definition at line 360 of file FPGATrackSimAnalysisConfig.py.

◆ doClusters

python.FPGATrackSimAnalysisConfig.doClusters

Definition at line 487 of file FPGATrackSimAnalysisConfig.py.

◆ doExample

python.FPGATrackSimAnalysisConfig.doExample

Definition at line 383 of file FPGATrackSimAnalysisConfig.py.

◆ doHits

python.FPGATrackSimAnalysisConfig.doHits

Definition at line 488 of file FPGATrackSimAnalysisConfig.py.

◆ doRotCorrection

python.FPGATrackSimAnalysisConfig.doRotCorrection

Definition at line 364 of file FPGATrackSimAnalysisConfig.py.

◆ doSP

python.FPGATrackSimAnalysisConfig.doSP

Definition at line 475 of file FPGATrackSimAnalysisConfig.py.

◆ doWriteAOD_IDTPM

python.FPGATrackSimAnalysisConfig.doWriteAOD_IDTPM

Definition at line 374 of file FPGATrackSimAnalysisConfig.py.

◆ EnableCalo

python.FPGATrackSimAnalysisConfig.EnableCalo

Definition at line 357 of file FPGATrackSimAnalysisConfig.py.

◆ enableTrackStatePrinter

python.FPGATrackSimAnalysisConfig.enableTrackStatePrinter

Definition at line 481 of file FPGATrackSimAnalysisConfig.py.

◆ etaPatternFilter

python.FPGATrackSimAnalysisConfig.etaPatternFilter

Definition at line 401 of file FPGATrackSimAnalysisConfig.py.

◆ False

python.FPGATrackSimAnalysisConfig.False

Definition at line 481 of file FPGATrackSimAnalysisConfig.py.

◆ Files

python.FPGATrackSimAnalysisConfig.Files

Definition at line 433 of file FPGATrackSimAnalysisConfig.py.

◆ FinalProtoTrackChainxAODTracksKey

python.FPGATrackSimAnalysisConfig.FinalProtoTrackChainxAODTracksKey

Flags used in the prototrack chain.

Definition at line 356 of file FPGATrackSimAnalysisConfig.py.

◆ finalTrackParticles

python.FPGATrackSimAnalysisConfig.finalTrackParticles

Definition at line 485 of file FPGATrackSimAnalysisConfig.py.

◆ flags

python.FPGATrackSimAnalysisConfig.flags

Definition at line 348 of file FPGATrackSimAnalysisConfig.py.

◆ hough

python.FPGATrackSimAnalysisConfig.hough

Definition at line 404 of file FPGATrackSimAnalysisConfig.py.

◆ hough1D

python.FPGATrackSimAnalysisConfig.hough1D

Definition at line 403 of file FPGATrackSimAnalysisConfig.py.

◆ log

python.FPGATrackSimAnalysisConfig.log

Definition at line 8 of file FPGATrackSimAnalysisConfig.py.

◆ name

python.FPGATrackSimAnalysisConfig.name

Definition at line 475 of file FPGATrackSimAnalysisConfig.py.

◆ NumThreads

python.FPGATrackSimAnalysisConfig.NumThreads

Definition at line 385 of file FPGATrackSimAnalysisConfig.py.

◆ Output

python.FPGATrackSimAnalysisConfig.Output

Definition at line 439 of file FPGATrackSimAnalysisConfig.py.

◆ OutputFileName

python.FPGATrackSimAnalysisConfig.OutputFileName

Definition at line 373 of file FPGATrackSimAnalysisConfig.py.

◆ outputFilePrefix

python.FPGATrackSimAnalysisConfig.outputFilePrefix

Definition at line 370 of file FPGATrackSimAnalysisConfig.py.

◆ perEventReports

python.FPGATrackSimAnalysisConfig.perEventReports

Definition at line 492 of file FPGATrackSimAnalysisConfig.py.

◆ phiRoadFilter

python.FPGATrackSimAnalysisConfig.phiRoadFilter

Definition at line 402 of file FPGATrackSimAnalysisConfig.py.

◆ plotsCommonValuesFile

python.FPGATrackSimAnalysisConfig.plotsCommonValuesFile

Definition at line 372 of file FPGATrackSimAnalysisConfig.py.

◆ plotsDefFileList

python.FPGATrackSimAnalysisConfig.plotsDefFileList

Definition at line 371 of file FPGATrackSimAnalysisConfig.py.

◆ ProtoTracksLocation

python.FPGATrackSimAnalysisConfig.ProtoTracksLocation

Definition at line 481 of file FPGATrackSimAnalysisConfig.py.

◆ recoChain

python.FPGATrackSimAnalysisConfig.recoChain

Definition at line 363 of file FPGATrackSimAnalysisConfig.py.

◆ ShowDataDeps

python.FPGATrackSimAnalysisConfig.ShowDataDeps

Definition at line 387 of file FPGATrackSimAnalysisConfig.py.

◆ splitPipeline

python.FPGATrackSimAnalysisConfig.splitPipeline

if DP pipeline skip everything else!

Definition at line 416 of file FPGATrackSimAnalysisConfig.py.

◆ stage

python.FPGATrackSimAnalysisConfig.stage

Definition at line 475 of file FPGATrackSimAnalysisConfig.py.

◆ statusCode

python.FPGATrackSimAnalysisConfig.statusCode

Definition at line 500 of file FPGATrackSimAnalysisConfig.py.

◆ tracking

python.FPGATrackSimAnalysisConfig.tracking

Definition at line 423 of file FPGATrackSimAnalysisConfig.py.

◆ trackingOption

python.FPGATrackSimAnalysisConfig.trackingOption

Definition at line 417 of file FPGATrackSimAnalysisConfig.py.

◆ trackingOptionMod

python.FPGATrackSimAnalysisConfig.trackingOptionMod

Definition at line 420 of file FPGATrackSimAnalysisConfig.py.

◆ TrigTrkKey

python.FPGATrackSimAnalysisConfig.TrigTrkKey

override respective configurations from trkAnaCfgFile (in case something changes in the config file)

Definition at line 380 of file FPGATrackSimAnalysisConfig.py.

◆ trkAnaCfgFile

python.FPGATrackSimAnalysisConfig.trkAnaCfgFile

Definition at line 376 of file FPGATrackSimAnalysisConfig.py.

◆ True

python.FPGATrackSimAnalysisConfig.True

Definition at line 475 of file FPGATrackSimAnalysisConfig.py.

◆ wrapperFileName

python.FPGATrackSimAnalysisConfig.wrapperFileName

Definition at line 432 of file FPGATrackSimAnalysisConfig.py.

PathResolver::FindCalibFile
static std::string FindCalibFile(const std::string &logical_file_name)
Definition: PathResolver.h:108
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
python.FPGATrackSimAnalysisConfig.FPGATrackSimBankSvcCfg
def FPGATrackSimBankSvcCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:37
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.FPGATrackSimAnalysisConfig.FPGATrackSimTrackFitterToolCfg
def FPGATrackSimTrackFitterToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:210
python.FPGATrackSimAnalysisConfig.FPGATrackSimDataFlowToolCfg
def FPGATrackSimDataFlowToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:170
python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionTool1DCfg
def FPGATrackSimRoadUnionTool1DCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:129
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.FPGATrackSimAnalysisConfig.prepareFlagsForFPGATrackSimLogicalHitsProcessAlg
def prepareFlagsForFPGATrackSimLogicalHitsProcessAlg(flags)
Definition: FPGATrackSimAnalysisConfig.py:243
python.FPGATrackSimAnalysisConfig.LRTRoadFinderCfg
def LRTRoadFinderCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:189
python.FPGATrackSimAnalysisConfig.FPGATrackSimWriteOutputCfg
def FPGATrackSimWriteOutputCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:24
python.FPGATrackSimAnalysisConfig.FPGATrackSimRoadUnionToolCfg
def FPGATrackSimRoadUnionToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:75
python.FPGATrackSimAnalysisConfig.NNTrackToolCfg
def NNTrackToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:202
FPGATrackSimAlgorithmConfig.FPGATrackSimLogicalHitsProcessAlgMonitoringCfg
def FPGATrackSimLogicalHitsProcessAlgMonitoringCfg(flags)
Definition: FPGATrackSimAlgorithmConfig.py:246
python.FPGATrackSimAnalysisConfig.getNSubregions
def getNSubregions(filePath)
Definition: FPGATrackSimAnalysisConfig.py:14
python.FPGATrackSimAnalysisConfig.FPGATrackSimOverlapRemovalToolCfg
def FPGATrackSimOverlapRemovalToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:226
Trk::open
@ open
Definition: BinningType.h:40
python.InDetPrepRawDataFormationConfig.AthenaTrkClusterizationCfg
def AthenaTrkClusterizationCfg(flags)
Definition: InDetPrepRawDataFormationConfig.py:306
python.FPGATrackSimAnalysisConfig.FPGATrackSimLogicalHitsProcessAlgCfg
def FPGATrackSimLogicalHitsProcessAlgCfg(inputFlags)
Definition: FPGATrackSimAnalysisConfig.py:247
str
Definition: BTagTrackIpAccessor.cxx:11
python.FPGATrackSimAnalysisConfig.FPGATrackSimHoughRootOutputToolCfg
def FPGATrackSimHoughRootOutputToolCfg(flags)
Definition: FPGATrackSimAnalysisConfig.py:180