6 @file TileMonitoringConfig.py
7 @brief Python configuration of Tile Monitoring for the Run III
11 ''' Function to configure Tile Monitoring in the monitoring system for Run III.'''
13 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
16 from AthenaCommon.Logging
import logging
17 msg = logging.getLogger(
'TileMonitoringCfg' )
19 environment = flags.DQ.Environment
21 if environment
in (
'online',
'tier0',
'tier0Raw'):
22 msg.info(
'Setup Tile Monitoring for RAW data due to environment: %s', environment)
24 from TileMonitoring.TileDQFragMonitorAlgorithm
import TileDQFragMonitoringConfig
27 from TileMonitoring.TileMBTSMonitorAlgorithm
import TileMBTSMonitoringConfig
30 from TileMonitoring.TileDigiNoiseMonitorAlgorithm
import TileDigiNoiseMonitoringConfig
33 if environment
in (
'online',
'tier0',
'tier0ESD'):
34 msg.info(
'Setup Tile Monitoring for ESD data due to environment: %s', environment)
36 from TileMonitoring.TileCellMonitorAlgorithm
import TileCellMonitoringConfig
39 from TileMonitoring.TileTowerMonitorAlgorithm
import TileTowerMonitoringConfig
42 from TileMonitoring.TileClusterMonitorAlgorithm
import TileClusterMonitoringConfig
45 from TileMonitoring.TileMuIdMonitorAlgorithm
import TileMuIdMonitoringConfig
48 from TileMonitoring.TileJetMonitorAlgorithm
import TileJetMonitoringConfig
51 if flags.IOVDb.DatabaseInstance ==
'CONDBR2' and flags.DQ.triggerDataAvailable:
52 from TileMonitoring.TileTMDBRawChannelMonitorAlgorithm
import TileTMDBRawChannelMonitoringConfig
55 from AthenaConfiguration.Enums
import BeamType
56 if flags.Beam.Type
in [BeamType.Cosmics, BeamType.SingleBeam]:
57 from TileCosmicAlgs.TileMuonFitterConfig
import TileMuonFitterCfg
60 from TileMonitoring.TileMuonFitMonitorAlgorithm
import TileMuonFitMonitoringConfig
67 if __name__==
'__main__':
69 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
70 from AthenaCommon.Logging
import log
75 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/q431/22.0/v1/myESD.pool.root']
76 flags.Output.HISTFileName =
'TileMonitoringOutput.root'
77 flags.DQ.enableLumiAccess =
False
78 flags.DQ.useTrigger =
False
79 flags.DQ.Environment =
'tier0'
80 flags.Exec.MaxEvents = 3
85 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
86 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
92 acc.printConfig(withDetails =
True, summariseProps =
True)
94 acc.store(
open(
"TileMonitoring.pkl",
"wb"))
99 sys.exit(
not sc.isSuccess())