6 @file CaloMonitoringConfig.py
7 @brief Python configuration of Calo Monitoring for the Run III
11 ''' Function to configure Calo Monitoring in the monitoring system for Run III.'''
13 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
16 from AthenaCommon.Logging
import logging
17 msg = logging.getLogger(
'CaloMonitoringCfg' )
19 environment = flags.DQ.Environment
21 if environment
in (
'online',
'tier0',
'tier0ESD'):
22 msg.info(
'Setup Calo Monitoring for ESD data due to environment: %s', environment)
24 from CaloMonitoring.TileCalCellMonAlg
import TileCalCellMonAlgConfig
27 from CaloMonitoring.LArCellMonAlg
import LArCellMonConfig
30 from CaloMonitoring.LArClusterCellMonAlg
import LArClusterCellMonConfig
41 if __name__==
'__main__':
43 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
44 from AthenaConfiguration.TestDefaults
import defaultTestFiles
46 flags.Input.Files = defaultTestFiles.ESD
48 flags.Output.HISTFileName =
'CaloMonitoringOutput.root'
49 flags.DQ.enableLumiAccess =
True
50 flags.DQ.useTrigger =
False
51 flags.DQ.Environment =
'tier0'
56 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
57 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
63 acc.printConfig(withDetails =
True, summariseProps =
True)
65 acc.store(
open(
"CaloMonitoring.pkl",
"wb"))
67 sc = acc.run(maxEvents = 3)
70 sys.exit(
not sc.isSuccess())