37 acf.addFlag(
'DQ.doMonitoring',
False)
38 acf.addFlag(
'DQ.doStreamAwareMon',
True)
39 acf.addFlag(
'DQ.disableAtlasReadyFilter',
False)
40 acf.addFlag(
'DQ.disableFilledBunchFilter',
False)
41 acf.addFlag(
'DQ.enableLumiAccess',
True)
42 acf.addFlag(
'DQ.FileKey',
'CombinedMonitoring')
45 acf.addFlag(
'DQ.triggerDataAvailable',
True)
47 acf.addFlag(
'DQ.useTrigger', getUseTrigger)
50 acf.addFlag(
'DQ.Environment', getEnvironment )
51 acf.addFlag(
'DQ.DataType', getDataType, type=DQDataType )
54 acf.addFlag(
'DQ.doPostProcessing',
False)
55 acf.addFlag(
'DQ.postProcessingInterval', 100)
58 for flag
in _steeringFlags + _lowLevelSteeringFlags:
59 if flag ==
'doLVL1CaloMon':
62 if flag
in [
'doJetTagMon',
'doMissingEtMon',
'doTauMon']:
63 arg =
lambda x: x.DQ.DataType
is not DQDataType.Cosmics
and x.Reco.HIMode
is not HIMode.HI
64 if flag
in [
'doJetMon',
'doJetTagMon'] :
65 arg =
lambda x: x.DQ.DataType
is not DQDataType.Cosmics
66 if flag ==
'doHLTMon':
69 arg =
lambda x: x.Trigger.EDMVersion == 3
and x.DQ.Environment !=
'AOD'
70 if flag ==
'LVL1Calo.doValidation':
72 if flag ==
'doZDCMon':
73 arg=
lambda x: (x.Reco.EnableZDC
is True)
74 acf.addFlag(
'DQ.Steering.' + flag, arg)
77 acf.addFlag(
'DQ.Steering.doLVL1CaloMon', _hasL1Calo)
80 from PyUtils.moduleExists
import moduleExists
81 if moduleExists (
'TrigHLTMonitoring'):
82 from TrigHLTMonitoring.TrigHLTMonitorAlgorithm
import createHLTDQConfigFlags
83 acf.join(createHLTDQConfigFlags())
111 if flags.Common.isOnline:
115 from AthenaConfiguration.Enums
import Format
116 if flags.Input.Format
is Format.BS:
117 if flags.Output.AODFileName:
121 elif 'StreamESD' in flags.Input.ProcessingTags:
123 elif 'StreamAOD' in flags.Input.ProcessingTags:
125 elif 'StreamDAOD_PHYS' in flags.Input.ProcessingTags:
128 from AthenaCommon.Logging
import logging
129 local_logger = logging.getLogger(
'DQConfigFlags_getEnvironment')
130 local_logger.warning(
'Unable to figure out environment for DQ; using "tier0ESD"')
134 from AthenaConfiguration.AutoConfigFlags
import GetFileMD
135 md = GetFileMD(flags.Input.Files)
137 detMask = eformat.helper.DetectorMask(f
'{md.get("detectorMask",[0x0])[0]:032x}')
139 detMask.is_set(eformat.helper.SubDetector.TDAQ_CALO_PREPROC),
140 detMask.is_set(eformat.helper.SubDetector.TDAQ_CALO_TOPO_PROC),
141 detMask.is_set(eformat.helper.SubDetector.TDAQ_CALO_FEAT_EXTRACT_DAQ),
142 detMask.is_set(eformat.helper.SubDetector.TDAQ_CALO_FEAT_EXTRACT_ROI)])