6 from AthenaMonitoring
import AthMonitorCfgHelper
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaMonitoring.AtlasReadyFilterConfig
import AtlasReadyFilterCfg
10 helper = AthMonitorCfgHelper(flags,
'DQTDataFlowMonAlgCfg')
12 helper.result().
merge(ReadyFilterCfg)
13 return helper.result()
17 from ROOT
import EventInfo
19 monAlg = helper.addAlgorithm(algConfObj,
'DQTDataFlowMonAlg')
24 group = helper.addGroup(monAlg,
'default',
'GLOBAL/DQTDataFlow',
'lowStat')
28 group.defineHistogram(
"LB;m_sumweights",
30 title=
"Sum of MC event weights",
34 opt=
'kAddBinsDynamically',
39 group.defineHistogram(
"detstates_idx,detstates;eventflag_summary_lowStat",
40 title=
"Event Flag Summary",
42 xbins=EventInfo.nDets+1,
44 xmax=EventInfo.nDets+0.5,
48 xlabels=[
"Pixel",
"SCT",
"TRT",
"LAr",
"Tile",
49 "Muon",
"ForwardDet",
"Core",
50 "Background",
"Lumi",
"All"],
51 ylabels=[
"OK",
"Warning",
"Error"]
55 monAlg.ReadyFilterTool = readyFilterTool
56 group.defineHistogram(
'atlasready',
57 title=
'Events with AtlasReady',
60 xlabels=[
"Not Ready",
"Ready"],
67 if 'AtlasProject' in os.environ
and 'AtlasVersion' in os.environ:
68 releaseString =
'%s-%s' % (os.environ[
'AtlasProject'],
69 os.environ[
'AtlasVersion'])
71 releaseString =
'Unknown'
73 group.defineHistogram(
"environment;m_release_stage_lowStat",
74 title=
"Release - Event Count",
79 xlabels=[_+
'-'+releaseString
for _
in
80 [
"user",
"online",
"tier0",
"tier0Raw",
81 "tier0ESD",
"AOD",
"altprod"]]
84 group.defineHistogram(
"environment;events_lb",
90 xlabels=[
"user",
"online",
"tier0",
"tier0Raw",
91 "tier0ESD",
"AOD",
"altprod"],