5 '''@file TrigEgammaMonitorAlgorithm.py
6 @author J. Pinto (jodafons)
8 @author E. Bergeaas Kuutmann
11 @brief Egamma trigger python configuration for the Run III AthenaMonitoring package, based on the example by E. Bergeaas Kuutmann
13 from AthenaCommon.Logging
import logging
14 log_trigeg = logging.getLogger(
'TrigEgammaMonitorAlgorithm' )
18 '''Function to configures some algorithms in the monitoring system.'''
21 from AthenaMonitoring
import AthMonitorCfgHelper
22 helper = AthMonitorCfgHelper(inputFlags,
'TrigEgammaAthMonitorCfg')
24 from TrigConfigSvc.TriggerConfigAccess
import getHLTMonitoringAccess
29 acc.addPublicTool(emulator.core())
32 from TrigEgammaMonitoring.TrigEgammaMonitoringConfig
import TrigEgammaMonAlgBuilder
33 monAlgCfg = TrigEgammaMonAlgBuilder( helper,
'2018', moniAccess, detailedHistograms=
False, emulator=emulator )
42 return helper.result()
46 if __name__==
'__main__':
49 from PyUtils.Helpers
import ROOT6Setup
53 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
55 path =
'/afs/cern.ch/work/j/jodafons/public/valid_sampleA/valid1.361106.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zee.recon.AOD.e5112_s3214_d1731_r13252_tid27512952_00'
56 path+=
'/AOD.27512952._000185.pool.root.1'
58 flags.Input.Files = [path]
59 flags.Input.isMC =
True
60 flags.Output.HISTFileName =
'TrigEgammaMonitorOutput.root'
65 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
66 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
71 cfg.merge(trigEgammaMonitorAcc)
77 cfg.printConfig(withDetails=
False)