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  # if 1, Run1 decoding version is set; if 2, Run2; if 3, Run 3
141  def EDMVersion(flags):
142  """Determine Trigger EDM version based on the input file."""
143  _log = logging.getLogger('TriggerConfigFlags.EDMVersion')
144 
145  default_version = -1 # intentionally invalid default value, ATR-22856
146 
147  if flags.Input.Format is Format.BS:
148  _log.debug("Input format is ByteStream")
149 
150  if not any(flags.Input.Files) and flags.Common.isOnline:
151  _log.info("Online reconstruction, no input file. Return default EDMVersion=%d", default_version)
152  return default_version
153  try:
154  from TrigEDMConfig.Utils import getEDMVersionFromBS
155  except ImportError:
156  log.error("Failed to import TrigEDMConfig, analysing ByteStream files is not possible in this release!")
157  raise
158 
159 
160  version = getEDMVersionFromBS(flags.Input.Files[0])
161 
162  return version if version is not None else default_version
163 
164  else:
165  # POOL files: decide based on HLT output type present in the file
166  _log.debug("Input format is POOL -- determine from input file collections")
167  collections = flags.Input.Collections
168  if "HLTResult_EF" in collections:
169  _log.info("Determined EDMVersion to be 1, because HLTResult_EF found in POOL file")
170  return 1
171  elif "TrigNavigation" in collections:
172  _log.info("Determined EDMVersion to be 2, because TrigNavigation found in POOL file")
173  return 2
174  elif any("HLTNav_Summary" in s for s in collections):
175  _log.info("Determined EDMVersion to be 3, because HLTNav_Summary.* found in POOL file")
176  return 3
177  elif not flags.Input.Collections:
178  # Special case for empty input files (can happen in merge jobs on the grid)
179  # The resulting version doesn't really matter as there's nothing to be done, but we want a valid configuration
180  _log.warning("All input files seem to be empty, cannot determine EDM version. Guessing EDMVersion=3")
181  return 3
182 
183  _log.info("Could not determine EDM version from the input file. Return default EDMVersion=%d",
184  default_version)
185  return default_version
186 
187  flags.addFlag('Trigger.EDMVersion', lambda prevFlags: EDMVersion(prevFlags),
188  help='Trigger EDM version (determined by input file or set to the version to be produced)')
189 
190  flags.addFlag('Trigger.doEDMVersionConversion', False,
191  help='convert Run-1&2 EDM to Run-3 EDM')
192 
193  flags.addFlag('Trigger.doxAODConversion', True,
194  help=('convert Run-1 EDM to xAOD'))
195 
196  flags.addFlag('Trigger.doOnlineNavigationCompactification', True,
197  help='enable trigger Navigation compactification into a single collection')
198 
199  flags.addFlag('Trigger.doNavigationSlimming', True,
200  help='enable Navigation slimming for RAWtoXYZ or AODtoDAOD transforms')
201 
202  flags.addFlag('Trigger.derivationsExtraChains', [],
203  help='list of chains which should be considered for trigger-matching in addition to those from the TriggerAPI when running derivations')
204 
205  # CostMonitoring category
206  flags.addFlag('Trigger.CostMonitoring.doCostMonitoring', True,
207  help='enable cost monitoring')
208 
209  flags.addFlag('Trigger.CostMonitoring.chain', 'HLT_noalg_CostMonDS_L1All',
210  help='Cost monitoring chain name')
211 
212  flags.addFlag('Trigger.CostMonitoring.outputCollection', 'HLT_TrigCostContainer',
213  help='Cost monitoring output collection name')
214 
215  flags.addFlag('Trigger.CostMonitoring.monitorAllEvents', False,
216  help='enable Cost monitoring for all events')
217 
218  flags.addFlag('Trigger.CostMonitoring.monitorROBs', True,
219  help='enable Cost monitoring of ROB accesses')
220 
221  # L1 category
222  flags.addFlag('Trigger.L1.doMuon', True,
223  help='enable L1Muon ByteStream conversion/simulation')
224 
225  flags.addFlag('Trigger.L1.doMuonTopoInputs', lambda prevFlags: prevFlags.Trigger.doLVL1,
226  help='enable ByteStream conversion/simulation of MUCTPI Topo TOBs')
227 
228  flags.addFlag('Trigger.L1.doCalo', True,
229  help='enable L1Calo ByteStream conversion/simulation')
230 
231  flags.addFlag('Trigger.L1.doCaloInputs', lambda prevFlags:
232  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1 and not prevFlags.Trigger.doHLT,
233  help='enable L1Calo Input ([ejg]Towers) ByteStream conversion/simulation')
234 
235  flags.addFlag('Trigger.L1.doeFex', lambda prevFlags:
236  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1,
237  help='enable eFEX ByteStream conversion/simulation')
238 
239  flags.addFlag('Trigger.L1.Menu.doeFexBDTTau', True,
240  help='set BDT tau algorithm as the active one for eFEX when constructing L1 menus')
241 
242  flags.addFlag('Trigger.L1.dojFex', lambda prevFlags:
243  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1,
244  help='enable jFEX ByteStream conversion/simulation')
245 
246  flags.addFlag('Trigger.L1.dogFex', lambda prevFlags:
247  prevFlags.Trigger.L1.doCalo and prevFlags.Trigger.enableL1CaloPhase1,
248  help='enable gFEX ByteStream conversion/simulation')
249 
250  flags.addFlag('Trigger.L1.L1CaloSuperCellContainerName', lambda prevFlags:
251  "EmulatedSCell" if prevFlags.GeoModel.Run is LHCPeriod.Run2 else "SCell",
252  help='name of SuperCell container')
253 
254  flags.addFlag('Trigger.L1.doTopo', True,
255  help='enable L1Topo ByteStream conversion/simulation (steering both legacy and phase-1 Topo)')
256 
257  flags.addFlag('Trigger.L1.doTopoPhase1', lambda prevFlags:
258  prevFlags.Trigger.L1.doTopo and prevFlags.Trigger.enableL1CaloPhase1,
259  help='control Phase-I L1Topo simulation even if L1.doTopo is True')
260 
261  flags.addFlag('Trigger.L1.doCTP', True,
262  help='enable CTP ByteStream conversion/simulation')
263 
264  flags.addFlag('Trigger.L1.Menu.doHeavyIonTobThresholds', lambda prevFlags:
265  'HI' in prevFlags.Trigger.triggerMenuSetup,
266  help='modify min-pt-to-Topo threshold for TOBs to HI values')
267 
268  flags.addFlag('Trigger.L1.errorOnMissingTOB', True,
269  help='Set to true to enable strict-mode which will generate an ERROR on missing (non-overflow) TOB events in HLT-seeding from L1')
270 
271  # Online category
272  flags.addFlag('Trigger.Online.partitionName', os.getenv('TDAQ_PARTITION') or '',
273  help='partition name used to determine online vs offline BS result writing')
274 
275  flags.addFlag('Trigger.Online.isPartition', lambda prevFlags: len(prevFlags.Trigger.Online.partitionName)>0,
276  help='check if job is running in a partition (i.e. partition name is not empty)')
277 
278  flags.addFlag('Trigger.Online.useOnlineTHistSvc', False,
279  help='use online THistSvc')
280 
281  flags.addFlag('Trigger.Online.BFieldAutoConfig', True,
282  help='auto-configure magnetic field from currents in IS')
283 
284  flags.addFlag('Trigger.writeBS', False,
285  help='enable bytestream writing of trigger information')
286 
287  flags.addFlag('Trigger.doTransientByteStream', lambda prevFlags:
288  True if prevFlags.Input.Format is Format.POOL and prevFlags.Trigger.doCalo else False,
289  help='create transient BS (for running on MC RDO with clients that require BS inputs)')
290 
291  flags.addFlag('Trigger.AODEDMSet', lambda flags: 'AODSLIM' if flags.Input.isMC else 'AODFULL',
292  help='list of EDM objects to be written to AOD')
293 
294  flags.addFlag('Trigger.ESDEDMSet', 'ESD',
295  help='list of EDM objects to be written to ESD')
296 
297  flags.addFlag('Trigger.ExtraEDMList', [],
298  help='list of extra EDM objects to be stored (for testing)')
299 
300  def __availableRecoMetadata(flags):
301  systems = ['L1','HLT']
302  # Online reco without input files
303  if not any(flags.Input.Files) and flags.Common.isOnline:
304  return systems
305  # Makes no sense when running HLT
306  elif flags.Trigger.doHLT:
307  raise RuntimeError('Trigger.availableRecoMetadata is ill-defined if Trigger.doHLT==True')
308  # RAW: check if keys are in COOL
309  elif flags.Input.Format is Format.BS:
310  from TrigConfigSvc.TriggerConfigAccess import getKeysFromCool
311  keys = getKeysFromCool(flags.Input.RunNumbers[0], lbNr = 1) # currently only checking first file
312  return ( (['L1'] if 'L1PSK' in keys else []) +
313  (['HLT'] if 'HLTPSK' in keys else []) )
314  # POOL: metadata (do not distinguish L1/HLT yet, see discussions on GitLab commit f83ae2bc)
315  else:
316  return systems if flags.Trigger.triggerConfig == 'INFILE' else []
317 
318  flags.addFlag('Trigger.availableRecoMetadata', lambda flags: __availableRecoMetadata(flags),
319  help="list of enabled trigger sub-systems in reconstruction: ['L1,'HLT']")
320 
321  flags.addFlag("Trigger.decodeHLT", True,
322  help='enable decoding of HLT trigger decision/result in reconstruction')
323 
324  flags.addFlag("Trigger.DecisionMakerValidation.Execute", True,
325  help='run trigger decision validation algorithm in reconstruction')
326 
327  flags.addFlag("Trigger.DecisionMakerValidation.ErrorMode", True,
328  help='emit an ERROR (or WARNING) in case of trigger decision validation failure')
329 
330  # Auto configure most probable choice for trigger configuration source based on job setup
331  def __triggerConfig(flags):
332  _log = logging.getLogger('TriggerConfigFlags.triggerConfig')
333  if flags.Common.isOnline and not flags.Trigger.doHLT:
334  # When running reconstruction at P1 (e.g. global monitoring, event display, etc.)
335  _log.debug("Autoconfigured default value for running reconstruction inside Point 1: 'DB'")
336  return 'DB'
337  elif flags.Input.Format is Format.BS:
338  from glob import glob
339  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
340  if flags.Trigger.doHLT:
341  # 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
342  _log.debug("Autoconfigured default value for running the trigger on data: 'FILE'")
343  return 'FILE'
344  elif hasLocal:
345  # 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
346  # 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.
347  # A number of ART tests chain trigger then reco like this.
348  _log.debug("Autoconfigured default value for running reconstruction with a pre-supplied set of trigger configuration JSON files: 'FILE'")
349  return 'FILE'
350  elif flags.GeoModel.Run >= LHCPeriod.Run3:
351  # When reconstructing Run 3 data the default config source is the database
352  _log.debug("Autoconfigured default value for reconstruction of Run 3 data: 'DB'")
353  return 'DB'
354  else:
355  # 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
356  _log.debug("Autoconfigured default value for reconstruction of Run 1 or Run 2 data: 'FILE'")
357  return 'FILE'
358  else: # Format.POOL
359  from AthenaConfiguration.AutoConfigFlags import GetFileMD
360  md = GetFileMD(flags.Input.Files)
361  # Note: the following comprehension will detect both Run 2 and Run 3 in-file metadata formats.
362  # 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.
363  hasTrigMeta = ("metadata_items" in md and any(('TriggerMenu' in key) for key in md["metadata_items"].keys()))
364  if hasTrigMeta:
365  # 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
366  _log.debug("Autoconfigured default value to read trigger configuration data from the input file: 'INFILE'")
367  return 'INFILE'
368  else:
369  # MC production, read the menu JSON generated during the trigger job configuration
370  _log.debug("Autoconfigured default value to read trigger configuration data from disk for MC production: 'FILE'")
371  return 'FILE'
372 
373  flags.addFlag('Trigger.triggerConfig', lambda flags: __triggerConfig(flags),
374  help='Trigger configuration source (https://twiki.cern.ch/twiki/bin/view/Atlas/TriggerConfigFlag)')
375 
376  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',
377  help='name of the trigger menu')
378 
379  flags.addFlag('Trigger.generateMenuDiagnostics', False,
380  help='print debug output from control flow generation')
381 
382  flags.addFlag('Trigger.fastMenuGeneration', True,
383  help='avoid re-merging CAs that were already seen once')
384 
385  flags.addFlag('Trigger.disableCPS', False,
386  help='disable coherent prescale sets (for testing with small menu)')
387 
388  flags.addFlag('Trigger.enableEndOfEventProcessing', True,
389  help='enable execution of extra algorithms for accepted events')
390 
391  flags.addFlag('Trigger.doCFEmulationTest', False,
392  help='enable run Control Flow Emulation test')
393 
394  # trigger reconstruction
395  # Protection against import of packages not in the analysis release
396  # Signature and other trigger reco flags should be handled here
397  if doTriggerRecoFlags:
398  flags.join( createTriggerRecoFlags() )
399 
400  # Disable the CPS system if the restricted menu flags are active
401  flags.Trigger.disableCPS = lambda prevFlags: prevFlags.Trigger.selectChains or len(prevFlags.Trigger.enabledSignatures)==1
402 
403  return flags
404 
405 

◆ createTriggerRecoFlags()

def python.TriggerConfigFlags.createTriggerRecoFlags ( )

Definition at line 406 of file TriggerConfigFlags.py.

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

◆ 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 552 of file TriggerConfigFlags.py.

◆ log

python.TriggerConfigFlags.log

Definition at line 10 of file TriggerConfigFlags.py.

python.ZdcRecConfig.EDMVersion
EDMVersion
Definition: ZdcRecConfig.py:365
GenerateMenuMT.allSignatures
def allSignatures()
Definition: GenerateMenuMT.py:30
TrigCaloConfigFlags.createTrigCaloConfigFlags
def createTrigCaloConfigFlags()
Definition: TrigCaloConfigFlags.py:5
python.TriggerConfigFlags.createTriggerRecoFlags
def createTriggerRecoFlags()
Definition: TriggerConfigFlags.py:406
TrigTauConfigFlags.createTrigTauConfigFlags
def createTrigTauConfigFlags()
Definition: TrigTauConfigFlags.py:6
python.Utils.getEDMVersionFromBS
def getEDMVersionFromBS(filename)
Definition: Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py:11
python.AutoConfigFlags.GetFileMD
def GetFileMD(filenames, allowEmpty=True)
Definition: AutoConfigFlags.py:51
python.TriggerConfigFlags.trigGlobalTag
def trigGlobalTag(flags)
Definition: TriggerConfigFlags.py:21
python.FPGATrackSimConfigFlags.createFPGATrackSimConfigFlags
def createFPGATrackSimConfigFlags()
Definition: FPGATrackSimConfigFlags.py:3
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:790
python.TriggerConfigAccess.getKeysFromCool
dict[str, int] getKeysFromCool(int runNr, int lbNr=0)
Definition: TriggerConfigAccess.py:52