ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1InterfacesMonitoringCfg Namespace Reference

Functions

 LVL1InterfacesMonitoringCfg (flags)

Function Documentation

◆ LVL1InterfacesMonitoringCfg()

LVL1InterfacesMonitoringCfg.LVL1InterfacesMonitoringCfg ( flags)
Function to call T1 interfaces DQ monitoring algorithms

Definition at line 5 of file LVL1InterfacesMonitoringCfg.py.

6 '''Function to call T1 interfaces DQ monitoring algorithms'''
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 from AthenaConfiguration.Enums import Format
9 import logging
10
11 # local printing
12 local_logger = logging.getLogger('AthenaMonitoringCfg')
13 info = local_logger.info
14 info('In LVL1InterfacesMonitoringCfg')
15
16 result = ComponentAccumulator()
17
18 # If we're not putting trigger objects in event store, can't monitor them
19 if not flags.Trigger.Online.isPartition:
20 if not flags.DQ.triggerDataAvailable:
21 return result
22
23 isData = not flags.Input.isMC
24
25 # monitoring algorithm configs
26 # do not run on MC or RAW->ESD(tier0), or AOD-only
27 if isData and flags.DQ.Environment not in ('tier0Raw', 'AOD') and flags.Input.DataYear < 2024:
28 from TrigT1Monitoring.L1CaloL1TopoMonitorAlgorithm import L1CaloL1TopoMonitoringConfig
29 result.merge(L1CaloL1TopoMonitoringConfig(flags))
30
31 from TrigT1Monitoring.L1CaloCTPMonitorAlgorithm import L1CaloCTPMonitoringConfig
32 result.merge(L1CaloCTPMonitoringConfig(flags))
33
34 # For online running on bytestream data
35 if flags.Input.Format is Format.BS and flags.Trigger.Online.isPartition:
36 from L1TopoByteStream.L1TopoByteStreamConfig import L1TopoRawDataContainerBSCnvCfg
37 result.merge(L1TopoRawDataContainerBSCnvCfg(flags))
38
39 return result