ATLAS Offline Software
Classes | Functions | Variables
python.TriggerConfigFlags Namespace Reference

Classes

class  ROBPrefetching
 
class  Tests
 

Functions

def trigGlobalTag (flags)
 
def trigGeoTag (flags)
 
def createTriggerFlags (doTriggerRecoFlags)
 
def createTriggerRecoFlags ()
 

Variables

 log
 
 flags
 

Function Documentation

◆ createTriggerFlags()

def python.TriggerConfigFlags.createTriggerFlags (   doTriggerRecoFlags)

Definition at line 34 of file TriggerConfigFlags.py.

34 def createTriggerFlags(doTriggerRecoFlags):
35  flags = AthConfigFlags()
36 
37  flags.addFlag('Trigger.doLVL1', lambda prevFlags: prevFlags.Input.isMC,
38  help='enable L1 simulation')
39 
40  flags.addFlag('Trigger.doHLT', False,
41  help='run HLT selection algorithms')
42 
43  flags.addFlag("Trigger.forceEnableAllChains", False,
44  help='always enable all configured chains (for testing)')
45 
46  flags.addFlag('Trigger.enableL1MuonPhase1', lambda prevFlags:
47  prevFlags.Trigger.EDMVersion >= 3 or prevFlags.Detector.EnableMM or prevFlags.Detector.EnablesTGC,
48  help='enable Run-3 LVL1 muon decoding')
49 
50  flags.addFlag('Trigger.enableL1CaloPhase1', lambda prevFlags:
51  prevFlags.Trigger.EDMVersion >= 3 or prevFlags.GeoModel.Run >= LHCPeriod.Run3,
52  help='enable Phase-1 LVL1 calo simulation and/or decoding for Run-3+')
53 
54  flags.addFlag('Trigger.enableL1TopoDump', False,
55  help='enable L1Topo simulation to write inputs to txt file')
56 
57  flags.addFlag('Trigger.enableL1TopoBWSimulation', True,
58  help='enable bitwise L1Topo simulation')
59 
60  flags.addFlag('Trigger.enableL1CaloLegacy', True,
61  help='enable Run-2 L1Calo simulation and/or decoding')
62 
63  # L1MuonSim category
64  flags.addFlag('Trigger.L1MuonSim.EmulateNSW', False,
65  help='enable emulation tool for NSW-TGC coincidence')
66 
67  flags.addFlag('Trigger.L1MuonSim.doMMTrigger', True,
68  help='enable NSW MM trigger')
69 
70  flags.addFlag('Trigger.L1MuonSim.doPadTrigger', True,
71  help='enable NSW sTGC pad trigger')
72 
73  flags.addFlag('Trigger.L1MuonSim.doStripTrigger', False,
74  help='enable NSW sTGC strip trigger')
75 
76  flags.addFlag('Trigger.L1MuonSim.WriteNSWDebugNtuple', False,
77  help='enable Storing NSW debug Ntuple')
78 
79  flags.addFlag('Trigger.L1MuonSim.WriteMMBranches', False,
80  help='enable storing of Micromega branches in NSW debug Ntuple')
81 
82  flags.addFlag('Trigger.L1MuonSim.WritesTGCBranches', False,
83  help='enable storing of TGC branches in NSW debug Ntuple')
84 
85  flags.addFlag('Trigger.L1MuonSim.NSWVetoMode', True,
86  help='enable the veto mode of the NSW-TGC coincidence')
87 
88  flags.addFlag('Trigger.L1MuonSim.doBIS78', True,
89  help='enable TGC-RPC BIS78 coincidence')
90 
91  flags.addFlag('Trigger.L1MuonSim.CondDBOffline', 'OFLCOND-MC16-SDR-RUN2-04',
92  help='offline CondDB tag for RPC/TGC coincidence window in rerunLVL1 on data')
93 
94  flags.addFlag('Trigger.L1MuonSim.RPCNBX', lambda prevFlags:
95  8 if prevFlags.Input.isMC else 4,
96  help='Number of bunch crossings in RPC readout')
97 
98  flags.addFlag('Trigger.L1MuonSim.RPCNBCZ', lambda prevFlags:
99  3 if prevFlags.Input.isMC else 1,
100  help='Nominal BC for RPC readout')
101 
102 
103  # Detector flags
104  flags.addFlag('Trigger.doID', True,
105  help='enable Inner Detector')
106 
107  flags.addFlag('Trigger.doMuon', True,
108  help='enable muon systems')
109 
110  flags.addFlag('Trigger.doCalo', True,
111  help='enable calorimeters')
112 
113  flags.addFlag('Trigger.doZDC', False,
114  help='enable ZDC system')
115 
116  flags.addFlag('Trigger.ZdcLUT', 'TrigT1ZDC/zdcRun3T1LUT_v2_08_08_2023.json',
117  help='path to Run3 ZDC LUT')
118 
119  # Enable TRT fast-OR trigger
120  flags.addFlag('Trigger.doTRT', False)
121 
122  # Set TTC multiplicity required for the TRT fast-OR trigger
123  flags.addFlag('Trigger.TRT.TTCMultiplicity', 4)
124 
125  # Path to file with list of masked chips
126  flags.addFlag('Trigger.TRT.maskedChipsFile', 'TrigT1TRT/fastORmaskedChips.json')
127 
128 
129  flags.addFlag('Trigger.doValidationMonitoring', False,
130  help='enable additional validation histograms')
131 
132  flags.addFlag('Trigger.doRuntimeNaviVal', False,
133  help=('Check validity of each Decision objects in the entire decision tree (CPU expensive). '
134  'Also enable per-step decision printouts.'))
135 
136  flags.addFlag('Trigger.ROBPrefetchingOptions',
137  [ROBPrefetching.InitialRoI, ROBPrefetching.StepRoI, ROBPrefetching.TauCoreLargeRoI],
138  help='select ROB prefetching types, empty list disables prefetching')
139 
140  def EDMVersion(flags):
141  """Determine Trigger EDM version based on the input file."""
142  _log = logging.getLogger('TriggerConfigFlags.EDMVersion')
143 
144  default_version = -1 # intentionally invalid default value, ATR-22856
145 
146  if flags.Input.Format is Format.BS:
147  _log.debug("Input format is ByteStream")
148 
149  if not any(flags.Input.Files) and flags.Common.isOnline:
150  _log.info("Online reconstruction, no input file. Return default EDMVersion=%d", default_version)
151  return default_version
152  try:
153  from TrigEDMConfig.Utils import getEDMVersionFromBS
154  except ImportError:
155  log.error("Failed to import TrigEDMConfig, analysing ByteStream files is not possible in this release!")
156  raise
157 
158 
159  version = getEDMVersionFromBS(flags.Input.Files[0])
160 
161  return version if version is not None else default_version
162 
163  else:
164  # POOL files: decide based on HLT output type present in the file
165  _log.debug("Input format is POOL -- determine from input file collections")
166  collections = flags.Input.Collections
167  if "HLTResult_EF" in collections:
168  _log.info("Determined EDMVersion to be 1, because HLTResult_EF found in POOL file")
169  return 1
170  elif "TrigNavigation" in collections:
171  _log.info("Determined EDMVersion to be 2, because TrigNavigation found in POOL file")
172  return 2
173  elif any("HLTNav_Summary" in s for s in collections):
174  if flags.GeoModel.Run >= LHCPeriod.Run4:
175  _log.info("Determined EDMVersion to be 4, because HLTNav_Summary.* found in POOL file and GeoModel.Run >= 4")
176  return 4
177  else:
178  _log.info("Determined EDMVersion to be 3, because HLTNav_Summary.* found in POOL file")
179  return 3
180  elif not flags.Input.Collections:
181  # Special case for empty input files (can happen in merge jobs on the grid)
182  # The resulting version doesn't really matter as there's nothing to be done, but we want a valid configuration
183  _log.warning("All input files seem to be empty, cannot determine EDM version. Guessing EDMVersion=3")
184  return 3
185 
186  _log.info("Could not determine EDM version from the input file. Return default EDMVersion=%d",
187  default_version)
188  return default_version
189 
190  flags.addFlag('Trigger.EDMVersion', lambda prevFlags: EDMVersion(prevFlags),
191  help='Trigger EDM version (determined by input file or set to the version to be produced)')
192 
193  flags.addFlag('Trigger.doEDMVersionConversion', False,
194  help='convert Run-1&2 EDM to Run-3 EDM')
195 
196  flags.addFlag('Trigger.doxAODConversion', True,
197  help=('convert Run-1 EDM to xAOD'))
198 
199  flags.addFlag('Trigger.doOnlineNavigationCompactification', True,
200  help='enable trigger Navigation compactification into a single collection')
201 
202  flags.addFlag('Trigger.doNavigationSlimming', True,
203  help='enable Navigation slimming for RAWtoXYZ or AODtoDAOD transforms')
204 
205  flags.addFlag('Trigger.derivationsExtraChains', [],
206  help='list of chains which should be considered for trigger-matching in addition to those from the TriggerAPI when running derivations')
207 
208  # CostMonitoring category
209  flags.addFlag('Trigger.CostMonitoring.doCostMonitoring', True,
210  help='enable cost monitoring')
211 
212  flags.addFlag('Trigger.CostMonitoring.chain', 'HLT_noalg_CostMonDS_L1All',
213  help='Cost monitoring chain name')
214 
215  flags.addFlag('Trigger.CostMonitoring.outputCollection', 'HLT_TrigCostContainer',
216  help='Cost monitoring output collection name')
217 
218  flags.addFlag('Trigger.CostMonitoring.monitorAllEvents', False,
219  help='enable Cost monitoring for all events')
220 
221  flags.addFlag('Trigger.CostMonitoring.monitorROBs', True,
222  help='enable Cost monitoring of ROB accesses')
223 
224  # L1 category
225  flags.addFlag('Trigger.L1.doMuon', True,
226  help='enable L1Muon ByteStream conversion/simulation')
227 
228  flags.addFlag('Trigger.L1.doMuonTopoInputs', True,
229  help='enable ByteStream conversion/simulation of MUCTPI Topo TOBs')
230 
231  flags.addFlag('Trigger.L1.doCalo', True,
232  help='enable L1Calo ByteStream conversion/simulation')
233 
234  flags.addFlag('Trigger.L1.doCaloInputs', lambda prevFlags:
235  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1 and not prevFlags.Trigger.doHLT,
236  help='enable L1Calo Input ([ejg]Towers) ByteStream conversion/simulation')
237 
238  flags.addFlag('Trigger.L1.doeFex', lambda prevFlags:
239  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1,
240  help='enable eFEX ByteStream conversion/simulation')
241 
242  flags.addFlag('Trigger.L1.Menu.doeFexBDTTau', True,
243  help='set BDT tau algorithm as the active one for eFEX when constructing L1 menus')
244 
245  flags.addFlag('Trigger.L1.dojFex', lambda prevFlags:
246  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1,
247  help='enable jFEX ByteStream conversion/simulation')
248 
249  flags.addFlag('Trigger.L1.dogFex', lambda prevFlags:
250  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1,
251  help='enable gFEX ByteStream conversion/simulation')
252 
253  flags.addFlag('Trigger.L1.L1CaloSuperCellContainerName', lambda prevFlags:
254  "EmulatedSCell" if prevFlags.GeoModel.Run is LHCPeriod.Run2 else "SCell",
255  help='name of SuperCell container')
256 
257  flags.addFlag('Trigger.L1.doTopo', True,
258  help='enable L1Topo ByteStream conversion/simulation (steering both legacy and phase-1 Topo)')
259 
260  flags.addFlag('Trigger.L1.doTopoPhase1', lambda prevFlags:
261  prevFlags.Trigger.L1.doTopo and prevFlags.Trigger.enableL1CaloPhase1,
262  help='control Phase-I L1Topo simulation even if L1.doTopo is True')
263 
264  flags.addFlag('Trigger.L1.doGlobal', lambda prevFlags: prevFlags.GeoModel.Run >= LHCPeriod.Run4,
265  help='enable L0Global ByteStream conversion/simulation')
266 
267  flags.addFlag('Trigger.L1.doCTP', True,
268  help='enable CTP ByteStream conversion/simulation')
269 
270  flags.addFlag('Trigger.L1.Menu.doHeavyIonTobThresholds', lambda prevFlags:
271  'HI' in prevFlags.Trigger.triggerMenuSetup,
272  help='modify min-pt-to-Topo threshold for TOBs to HI values')
273 
274  flags.addFlag('Trigger.L1.errorOnMissingTOB', True,
275  help='Set to true to enable strict-mode which will generate an ERROR on missing (non-overflow) TOB events in HLT-seeding from L1')
276 
277  # Online category
278  flags.addFlag('Trigger.Online.partitionName', os.getenv('TDAQ_PARTITION') or '',
279  help='partition name used to determine online vs offline BS result writing')
280 
281  flags.addFlag('Trigger.Online.isPartition', lambda prevFlags: len(prevFlags.Trigger.Online.partitionName)>0,
282  help='check if job is running in a partition (i.e. partition name is not empty)')
283 
284  flags.addFlag('Trigger.Online.useOnlineTHistSvc', False,
285  help='use online THistSvc')
286 
287  flags.addFlag('Trigger.Online.BFieldAutoConfig', True,
288  help='auto-configure magnetic field from currents in IS')
289 
290  flags.addFlag('Trigger.writeBS', False,
291  help='enable bytestream writing of trigger information')
292 
293  flags.addFlag('Trigger.doTransientByteStream', lambda prevFlags:
294  True if prevFlags.Input.Format is Format.POOL and prevFlags.Trigger.doCalo else False,
295  help='create transient BS (for running on MC RDO with clients that require BS inputs)')
296 
297  flags.addFlag('Trigger.AODEDMSet', lambda flags: 'AODSLIM' if flags.Input.isMC else 'AODFULL',
298  help='list of EDM objects to be written to AOD')
299 
300  flags.addFlag('Trigger.ESDEDMSet', 'ESD',
301  help='list of EDM objects to be written to ESD')
302 
303  flags.addFlag('Trigger.ExtraEDMList', [],
304  help='list of extra EDM objects to be stored (for testing). Supported features: Add new items. Add extra decorations to existing Aux. Add additional output targets.')
305 
306  def __availableRecoMetadata(flags):
307  systems = ['L1','HLT']
308  # Online reco without input files
309  if not any(flags.Input.Files) and flags.Common.isOnline:
310  return systems
311  # Makes no sense when running HLT
312  elif flags.Trigger.doHLT:
313  raise RuntimeError('Trigger.availableRecoMetadata is ill-defined if Trigger.doHLT==True')
314  # RAW: check if keys are in COOL
315  elif flags.Input.Format is Format.BS:
316  from TrigConfigSvc.TriggerConfigAccess import getKeysFromCool
317  keys = getKeysFromCool(flags.Input.RunNumbers[0], lbNr = 1) # currently only checking first file
318  return ( (['L1'] if 'L1PSK' in keys else []) +
319  (['HLT'] if 'HLTPSK' in keys else []) )
320  # POOL: metadata (do not distinguish L1/HLT yet, see discussions on GitLab commit f83ae2bc)
321  else:
322  return systems if flags.Trigger.triggerConfig == 'INFILE' else []
323 
324  flags.addFlag('Trigger.availableRecoMetadata', lambda flags: __availableRecoMetadata(flags),
325  help="list of enabled trigger sub-systems in reconstruction: ['L1,'HLT']")
326 
327  flags.addFlag("Trigger.decodeHLT", True,
328  help='enable decoding of HLT trigger decision/result in reconstruction')
329 
330  flags.addFlag("Trigger.DecisionMakerValidation.Execute", True,
331  help='run trigger decision validation algorithm in reconstruction')
332 
333  flags.addFlag("Trigger.DecisionMakerValidation.ErrorMode", True,
334  help='emit an ERROR (or WARNING) in case of trigger decision validation failure')
335 
336  # Auto configure most probable choice for trigger configuration source based on job setup
337  def __triggerConfig(flags):
338  _log = logging.getLogger('TriggerConfigFlags.triggerConfig')
339  if flags.Common.isOnline and not flags.Trigger.doHLT:
340  # When running reconstruction at P1 (e.g. global monitoring, event display, etc.)
341  _log.debug("Autoconfigured default value for running reconstruction inside Point 1: 'DB'")
342  return 'DB'
343  elif flags.Input.Format is Format.BS:
344  from glob import glob
345  hasLocal = True if (glob("HLTMenu*.json") and glob("L1Menu*.json") and glob("HLTPrescales*.json") and glob("L1Prescales*.json") and glob("HLTMonitoring*.json") and glob("BunchGroupSet*.json")) else False
346  if flags.Trigger.doHLT:
347  # When running the Run 3 trigger on data, data the default config source is from the JSON created by compiling the menu in the job config phase
348  _log.debug("Autoconfigured default value for running the trigger on data: 'FILE'")
349  return 'FILE'
350  elif hasLocal:
351  # When running reco (doHLT == False) from RAW in a directory which already has a full suite of JSONs, assume that the user has just run the trigger manually
352  # and now wants to reconstruct the output using the menu files created when the trigger was executed, rather than reading the DB configuration for the run.
353  # A number of ART tests chain trigger then reco like this.
354  _log.debug("Autoconfigured default value for running reconstruction with a pre-supplied set of trigger configuration JSON files: 'FILE'")
355  return 'FILE'
356  elif flags.GeoModel.Run >= LHCPeriod.Run3:
357  # When reconstructing Run 3 data the default config source is the database
358  _log.debug("Autoconfigured default value for reconstruction of Run 3 data: 'DB'")
359  return 'DB'
360  else:
361  # When reconstructing Run 2 or Run 1 data, a stand-alone database converter will be called from python. We then need to load the converted JSON from disk
362  _log.debug("Autoconfigured default value for reconstruction of Run 1 or Run 2 data: 'FILE'")
363  return 'FILE'
364  else: # Format.POOL
365  from AthenaConfiguration.AutoConfigFlags import GetFileMD
366  md = GetFileMD(flags.Input.Files)
367  # Note: the following comprehension will detect both Run 2 and Run 3 in-file metadata formats.
368  # As of 2023, the Run 2 metadata format is still in production use for Run 2 MC AODs, DAODs produced with the Release 21 Run 2 trigger.
369  hasTrigMeta = ("metadata_items" in md and any(('TriggerMenu' in key) for key in md["metadata_items"].keys()))
370  if hasTrigMeta:
371  # When running over a file which already has metadata content (RDO_TRIG, ESD, AOD, DAOD), then read this from within the file's meta store
372  _log.debug("Autoconfigured default value to read trigger configuration data from the input file: 'INFILE'")
373  return 'INFILE'
374  else:
375  # MC production, read the menu JSON generated during the trigger job configuration
376  _log.debug("Autoconfigured default value to read trigger configuration data from disk for MC production: 'FILE'")
377  return 'FILE'
378 
379  flags.addFlag('Trigger.triggerConfig', lambda flags: __triggerConfig(flags),
380  help='Trigger configuration source (https://twiki.cern.ch/twiki/bin/view/Atlas/TriggerConfigFlag)')
381 
382  flags.addFlag('Trigger.triggerMenuSetup', lambda flags: 'MC_pp_run3_v1_BulkMCProd_prescale' if flags.GeoModel.Run is LHCPeriod.Run3 else 'MC_pp_run4_v1_BulkMCProd_prescale',
383  help='name of the trigger menu')
384 
385  flags.addFlag('Trigger.generateMenuDiagnostics', False,
386  help='print debug output from control flow generation')
387 
388  flags.addFlag('Trigger.fastMenuGeneration', True,
389  help='avoid re-merging CAs that were already seen once')
390 
391  flags.addFlag('Trigger.disableCPS', False,
392  help='disable coherent prescale sets (for testing with small menu)')
393 
394  flags.addFlag('Trigger.enableEndOfEventProcessing', True,
395  help='enable execution of extra algorithms for accepted events')
396 
397  flags.addFlag('Trigger.doCFEmulationTest', False,
398  help='enable run Control Flow Emulation test')
399 
400  # trigger reconstruction
401  # Protection against import of packages not in the analysis release
402  # Signature and other trigger reco flags should be handled here
403  if doTriggerRecoFlags:
404  flags.join( createTriggerRecoFlags() )
405 
406  # Disable the CPS system if the restricted menu flags are active
407  flags.Trigger.disableCPS = lambda prevFlags: prevFlags.Trigger.selectChains or len(prevFlags.Trigger.enabledSignatures)==1
408 
409  return flags
410 
411 

◆ createTriggerRecoFlags()

def python.TriggerConfigFlags.createTriggerRecoFlags ( )

Definition at line 412 of file TriggerConfigFlags.py.

413  flags = AthConfigFlags()
414 
415  # Additional flags to filter chains
416  def _allSignatures (prevFlags):
417  from TriggerMenuMT.HLT.Config.GenerateMenuMT import allSignatures
418  l = list(allSignatures())
419  l.sort()
420  return l
421  flags.addFlag("Trigger.enabledSignatures", _allSignatures, help='list of enabled trigger signatures')
422  flags.addFlag("Trigger.disabledSignatures", [], help='list of disabled trigger signatures')
423  flags.addFlag("Trigger.selectChains", [], help='list of enabled chains')
424  flags.addFlag("Trigger.disableChains", [], help='list of disabled chains')
425 
426  def __egamma():
427  from TriggerMenuMT.HLT.Egamma.TrigEgammaConfigFlags import createTrigEgammaConfigFlags
429  flags.addFlagsCategory('Trigger.egamma', __egamma )
430 
431  # muon offline reco flags varaint for trigger
432  def __muonSA():
433  from MuonConfig.MuonConfigFlags import createMuonConfigFlags
434  muonflags = createMuonConfigFlags()
435  muonflags.Muon.useTGCPriorNextBC=True
436  muonflags.Muon.MuonTrigger=True
437  muonflags.Muon.SAMuonTrigger=True
438  muonflags.Muon.runCommissioningChain=False
439  muonflags.Muon.enableErrorTuning=False
440  return muonflags
441  flags.addFlagsCategory('Trigger.Offline.SA', __muonSA, prefix=True)
442 
443  def __muon():
444  from MuonConfig.MuonConfigFlags import createMuonConfigFlags
445  muonflags = createMuonConfigFlags()
446  muonflags.Muon.useTGCPriorNextBC=True
447  muonflags.Muon.MuonTrigger=True
448  muonflags.Muon.enableErrorTuning=False
449  return muonflags
450  flags.addFlagsCategory('Trigger.Offline', __muon, prefix=True)
451 
452  def __muonCombined():
453  from MuonCombinedConfig.MuonCombinedConfigFlags import createMuonCombinedConfigFlags
454  muonflags = createMuonCombinedConfigFlags()
455  muonflags.MuonCombined.doCaloTrkMuId = False
456  muonflags.MuonCombined.doSiAssocForwardMuons = False
457  muonflags.MuonCombined.doStatisticalCombination = False
458  muonflags.MuonCombined.doMuGirl = False
459  muonflags.MuonCombined.doCombinedFit = True
460  return muonflags
461  flags.addFlagsCategory('Trigger.Offline.Combined', __muonCombined, prefix=True)
462 
463  def __tau():
464  from TrigTauRec.TrigTauConfigFlags import createTrigTauConfigFlags
465  return createTrigTauConfigFlags()
466  flags.addFlagsCategory('Trigger.Offline.Tau', __tau )
467 
468  def __idTrk():
469  from TrigInDetConfig.TrigTrackingPassFlags import createTrigTrackingPassFlags
471  flags.addFlagsCategory( 'Trigger.InDetTracking', __idTrk )
472 
473  def __idITk():
474  from TrigInDetConfig.TrigTrackingPassFlags import createTrigTrackingPassFlags
475  return createTrigTrackingPassFlags(mode='ITk')
476  flags.addFlagsCategory( 'Trigger.ITkTracking', __idITk )
477 
478  def _idActs():
479  from TrigInDetConfig.TrigTrackingPassFlags import createTrigTrackingPassFlags
480  return createTrigTrackingPassFlags(mode='Acts')
481  flags.addFlagsCategory( 'Trigger.ActsTracking', _idActs )
482 
483  flags.addFlag('Trigger.useActsTracking', False, help='use ACTS for ITk tracking')
484 
485  def __trigCalo():
486  from TrigCaloRec.TrigCaloConfigFlags import createTrigCaloConfigFlags
488  flags.addFlagsCategory( 'Trigger.Calo', __trigCalo )
489 
490  def __muctpiFlags():
491  from TrigT1MuctpiPhase1.TrigMUCTPIConfigFlags import createTrigMUCTPIConfigFlags
493  flags.addFlagsCategory('Trigger.MUCTPI', __muctpiFlags )
494 
495  def __fpgatracksimFlags():
496  """Additional function delays import"""
497  from FPGATrackSimConfTools.FPGATrackSimConfigFlags import createFPGATrackSimConfigFlags
499  flags.addFlagsCategory("Trigger.FPGATrackSim", __fpgatracksimFlags, prefix=True )
500 
501 
502  # NB: Longer term it may be worth moving these into a PF set of config flags, but right now the only ones that exist do not seem to be used in the HLT.
503  # When we use component accumulators for this in the HLT maybe we should revisit this
504  # PFO-muon removal option for the full-scan hadronic signatures.
505  # Options are:
506  # "None": Do no PFO-muon removal
507  # "Calo": Use the calo-tagging tools from the muon slice
508  # "Iso" : Use the mainly isolation-based selections based on the MET associator package
509  flags.addFlag("Trigger.FSHad.PFOMuonRemoval", "Calo",
510  help='PFO-muon removal option: None, Calo, Iso)')
511 
512  flags.addFlag("Trigger.FSHad.PFOMuonRemovalMinPt", 10 * GeV,
513  help='minimum pT threshold to use for the muon removal')
514 
515  flags.addFlag('Trigger.Jet.doJetSuperPrecisionTracking', False,
516  help='enable precision tracking in jet super-ROI before fast b-tagging (EMTopo jets)')
517 
518  flags.addFlag("Trigger.Jet.fastbtagPFlow", True,
519  help='enable fast b-tagging for all fully calibrated HLT PFlow jets')
520 
521  flags.addFlag("Trigger.Jet.fastbtagVertex", True,
522  help='enable the addition of the super ROI PV to the b-tagging')
523 
524  flags.addFlag("Trigger.Jet.doVRJets", False,
525  help='enable the addition of the VR track jet reconstruction sequence')
526 
527  flags.addFlag("Trigger.FSTrk.doJetRestrictedVertexSort", False,
528  help='use tracks in jets for computing sumpt2 for vertex sorting')
529 
530  # chooses calibration config file for HLT small-R jets
531  # mapping in: Reconstruction/Jet/JetCalibTools/python/JetCalibToolsConfig.py
532  # All calib keys for HLT jets have to start with "Trig" otherwise the JetCalibTool config fails!
533  flags.addFlag("Trigger.Jet.pflowCalibKey", lambda prevFlags: "TrigHIUPC" if 'HI' in prevFlags.Trigger.triggerMenuSetup else "TrigR22Prerec",
534  help='calibration config file for HLT small-R jets')
535 
536  flags.addFlag("Trigger.Jet.emtopoCalibKey", "TrigLS2",
537  help='calibration config file for HLT small-R jets')
538 
539  flags.addFlag("Trigger.Jet.pflowLJCalibKey", "TrigSoftDrop",
540  help='calibration config file for HLT large-R PFlow jets')
541 
542  flags.addFlag("Trigger.Jet.PFlowTolerance", 1e-2,
543  help='tolerance in STEP Propagator')
544 
545  flags.addFlag("Trigger.Jet.TrackVtxAssocWP", "Custom", # offline default is "Nonprompt_All_MaxWeight"
546  help='working point for the TVA algorithm')
547 
548  flags.addFlag("Trigger.Jet.LowPtFilter", lambda prevFlags: 'HI' in prevFlags.Trigger.triggerMenuSetup,
549  help='apply low pT filter on antiKt4 jets (used for HI UPC jet reco)')
550 
551  return flags
552 
553 

◆ trigGeoTag()

def python.TriggerConfigFlags.trigGeoTag (   flags)
Return geometry tag to be used in the HLT. Returns None to indicate that
no trigger-specific tag is required. Used for GeoModel.AtlasVersion in GeoModelConfigFlags.py.

Definition at line 27 of file TriggerConfigFlags.py.

27 def trigGeoTag(flags):
28  """Return geometry tag to be used in the HLT. Returns None to indicate that
29  no trigger-specific tag is required. Used for GeoModel.AtlasVersion in GeoModelConfigFlags.py.
30  """
31  return None if flags.Input.isMC else 'ATLAS-R3S-2021-03-02-00'
32 
33 

◆ trigGlobalTag()

def python.TriggerConfigFlags.trigGlobalTag (   flags)
Return global conditions data to be used in the HLT. Return None to indicate that
no trigger-specific tag is required. Used for IOVDb.GlobalTag in AllConfigFlags.py.

Definition at line 21 of file TriggerConfigFlags.py.

21 def trigGlobalTag(flags):
22  """Return global conditions data to be used in the HLT. Return None to indicate that
23  no trigger-specific tag is required. Used for IOVDb.GlobalTag in AllConfigFlags.py.
24  """
25  return None if flags.Input.isMC else 'CONDBR2-HLTP-2024-02'
26 

Variable Documentation

◆ flags

python.TriggerConfigFlags.flags

Definition at line 558 of file TriggerConfigFlags.py.

◆ log

python.TriggerConfigFlags.log

Definition at line 10 of file TriggerConfigFlags.py.

python.ZdcRecConfig.EDMVersion
EDMVersion
Definition: ZdcRecConfig.py:529
python.AutoConfigFlags.GetFileMD
def GetFileMD(filenames, allowEmpty=True, maxLevel='peeker')
Definition: AutoConfigFlags.py:65
GenerateMenuMT.allSignatures
def allSignatures()
Definition: GenerateMenuMT.py:30
TrigCaloConfigFlags.createTrigCaloConfigFlags
def createTrigCaloConfigFlags()
Definition: TrigCaloConfigFlags.py:5
python.TriggerConfigFlags.createTriggerRecoFlags
def createTriggerRecoFlags()
Definition: TriggerConfigFlags.py:412
TrigTauConfigFlags.createTrigTauConfigFlags
def createTrigTauConfigFlags()
Definition: TrigTauConfigFlags.py:6
python.Utils.getEDMVersionFromBS
def getEDMVersionFromBS(filename)
Definition: Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py:11
python.TriggerConfigFlags.trigGlobalTag
def trigGlobalTag(flags)
Definition: TriggerConfigFlags.py:21
python.FPGATrackSimConfigFlags.createFPGATrackSimConfigFlags
def createFPGATrackSimConfigFlags()
Definition: FPGATrackSimConfigFlags.py:4
python.TrigTrackingPassFlags.createTrigTrackingPassFlags
def createTrigTrackingPassFlags(mode="InDet")
Definition: TrigTrackingPassFlags.py:5
python.MuonConfigFlags.createMuonConfigFlags
def createMuonConfigFlags()
Definition: MuonConfigFlags.py:40
python.HLT.Egamma.TrigEgammaConfigFlags.createTrigEgammaConfigFlags
def createTrigEgammaConfigFlags()
Definition: TrigEgammaConfigFlags.py:5
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.TriggerConfigFlags.trigGeoTag
def trigGeoTag(flags)
Definition: TriggerConfigFlags.py:27
python.TrigMUCTPIConfigFlags.createTrigMUCTPIConfigFlags
def createTrigMUCTPIConfigFlags()
Definition: TrigMUCTPIConfigFlags.py:5
python.MuonCombinedConfigFlags.createMuonCombinedConfigFlags
def createMuonCombinedConfigFlags()
Definition: MuonCombinedConfigFlags.py:6
python.TriggerConfigFlags.createTriggerFlags
def createTriggerFlags(doTriggerRecoFlags)
Definition: TriggerConfigFlags.py:34
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.TriggerConfigAccess.getKeysFromCool
dict[str, int] getKeysFromCool(int runNr, int lbNr=0)
Definition: TriggerConfigAccess.py:52