Skip to content
Snippets Groups Projects
Commit b217cbb4 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TriggerJobOpts: delete unused TriggerOnlineFlags

The `TriggerOnlineFlags` are no longer used. Delete file and remove
remaining references to it.
parent 86dcb682
No related branches found
No related tags found
7 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46746TriggerJobOpts: delete unused TriggerOnlineFlags
...@@ -404,10 +404,6 @@ del _flags ...@@ -404,10 +404,6 @@ del _flags
## make an alias for trigger flags which looks like old TriggerFlags class ## make an alias for trigger flags which looks like old TriggerFlags class
TriggerFlags = rec.Trigger TriggerFlags = rec.Trigger
## add online specific flags
import TriggerJobOpts.TriggerOnlineFlags # noqa: F401
## add slices generation flags ## add slices generation flags
log.info("TriggerFlags importing SliceFlags" ) log.info("TriggerFlags importing SliceFlags" )
from TriggerJobOpts.SliceFlags import * # noqa: F401, F403 from TriggerJobOpts.SliceFlags import * # noqa: F401, F403
......
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
################################################################################
# @file TriggerOnlineFlags.py
# @author Frank Winklmeier
# @brief Trigger flags for online running
################################################################################
from AthenaCommon.JobProperties import JobProperty, JobPropertyContainer
from AthenaCommon.JobProperties import jobproperties # noqa: F401
_flags = []
class doDBConfig(JobProperty):
""" Flag to extract the trigger configuration """
statusOn = True
allowedTypes = ['bool']
StoredValue = False
_flags += [doDBConfig]
class doDBConfigBaseName(JobProperty):
""" Base name of the file that holds the trigger configuration """
statusOn = True
allowedTypes = ['str']
StoredValue = ''
_flags += [doDBConfigBaseName]
class partitionName(JobProperty):
""" Name of the partition if running in online environment, otherwise empty """
statusOn = True
allowedTypes = ['str']
import os
StoredValue = os.getenv('TDAQ_PARTITION') or ''
_flags += [partitionName]
# Create "Online" container
class Online(JobPropertyContainer):
""" Trigger online flags
"""
pass
from TriggerJobOpts.TriggerFlags import TriggerFlags
TriggerFlags.add_Container(Online)
# Add all flags
for f in _flags:
TriggerFlags.Online.add_JobProperty(f)
...@@ -29,8 +29,6 @@ class opt: ...@@ -29,8 +29,6 @@ class opt:
doID = True # ConfigFlags.Trigger.doID doID = True # ConfigFlags.Trigger.doID
doCalo = True # ConfigFlags.Trigger.doCalo doCalo = True # ConfigFlags.Trigger.doCalo
doMuon = True # ConfigFlags.Trigger.doMuon doMuon = True # ConfigFlags.Trigger.doMuon
doDBConfig = None # dump trigger configuration
trigBase = None # file name for trigger config dump
doWriteRDOTrigger = False # Write out RDOTrigger? doWriteRDOTrigger = False # Write out RDOTrigger?
doWriteBS = True # Write out BS? doWriteBS = True # Write out BS?
doL1Unpacking = True # decode L1 data in input file if True, else setup emulation doL1Unpacking = True # decode L1 data in input file if True, else setup emulation
...@@ -242,11 +240,6 @@ ConfigFlags.Trigger.enableL1TopoDump = opt.enableL1TopoDump ...@@ -242,11 +240,6 @@ ConfigFlags.Trigger.enableL1TopoDump = opt.enableL1TopoDump
# Pass on the option enabling HLT selection algorithms # Pass on the option enabling HLT selection algorithms
ConfigFlags.Trigger.doHLT = TriggerFlags.doHLT = bool(opt.doHLT) ConfigFlags.Trigger.doHLT = TriggerFlags.doHLT = bool(opt.doHLT)
# To extract the Trigger configuration
TriggerFlags.Online.doDBConfig = bool(opt.doDBConfig)
if opt.trigBase is not None:
TriggerFlags.Online.doDBConfigBaseName = opt.trigBase
# Setup list of modifiers # Setup list of modifiers
# Common modifiers for MC and data # Common modifiers for MC and data
setModifiers = ['noLArCalibFolders', setModifiers = ['noLArCalibFolders',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment