4 from AthenaMonitoring
import AthMonitorCfgHelper
5 monConfig = AthMonitorCfgHelper(configFlags,
'TrigAFPSidHypoMonitoring')
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 alg = monConfig.addAlgorithm( CompFactory.TrigAFPSidHypoMonitoringAlg,
'TrigAFPSidHypoMonitoring')
10 alg.Chains = [
"all",
"AFP",
"HLT_mb_afprec_L1CEP-CjJ50"]
12 mbtsGroup = monConfig.addGroup(alg,
'AFPCoarse', topPath=
'HLT/MBAFPCoarse/')
13 mbtsGroup.defineHistogram(
'TrigCounts', title=
'Trigger counts;;Event rate',
14 xbins=len(alg.Chains), xmin=0, xmax=len(alg.Chains), xlabels=
list(alg.Chains))
15 mbtsGroup.defineHistogram(
'xDiff', title=
'xLocal diff online-offline', xbins=101, xmin=-10, xmax=10)
16 mbtsGroup.defineHistogram(
'yDiff', title=
'yLocal diff online-offline', xbins=101, xmin=-10, xmax=10)
17 mbtsGroup.defineHistogram(
'xDiff;xDiffWideRange', title=
'xLocal diff online-offline large scale', xbins=101, xmin=-100, xmax=100)
18 mbtsGroup.defineHistogram(
'yDiff;yDiffWideRange', title=
'yLocal diff online-offline large scale', xbins=101, xmin=-100, xmax=100)
20 return monConfig.result()
22 if __name__ ==
'__main__':
26 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
29 flags.Output.HISTFileName =
'TestMonitorOutput.root'
34 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
35 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
40 cfg.getEventAlgo(
'TrigAFPSidHypoMonitoring').OutputLevel = DEBUG
41 cfg.printConfig(withDetails=
True)
42 with open(
"cfg.pkl",
"wb")
as f: