ATLAS Offline Software
Loading...
Searching...
No Matches
python.MonTool Namespace Reference

Functions

 createMonTool (flags, slicetag, chain, fillers)

Variables

dict _factory

Function Documentation

◆ createMonTool()

createMonTool ( flags,
slicetag,
chain,
fillers )

Definition at line 53 of file MonTool.py.

53def createMonTool( flags, slicetag, chain, fillers ) :
54
55 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
56 monTool = GenericMonitoringTool( flags, chain )
57
58 histpath = slicetag + monGroup(chain)
59
60 from TrigInDetAnalysisExample.chainString import chainString
61 cs = chainString( chain )
62
63 # monTool.HistPath would this be better set in the c++ code ?
64
65 if flags is None:
66 mypath = "EXPERT"
67 monTool.HistPath = histpath
68 else:
69 # mypath = flags.DQ.FileKey
70 # can't set the "path" in the histograms as that gets apended
71 # to the histogram name when using the official monitoring
72 # framework and we absolutely don't want that
73 mypath = ""
74 monTool.HistPath = "/" + flags.DQ.FileKey + "/" + histpath
75 # monTool.HistPath = histpath
76
77# do we need this ?
78# monTool.UseCache = True
79
80 monTool.convention = 'OFFLINE'
81 monTool.defaultDuration = 'run'
82
83 # now add the requested histograms fro the builders ...
84 # should this function beome a class with the factory and
85 # builders as elements ?
86
87 for filler in fillers:
88 toolbuilder = _factory.get(filler)
89 if toolbuilder is None:
90 print(f"Unknown filler '{filler}'")
91 sys.exit(1)
92 toolbuilder( monTool, mypath, chain, cs )
93
94 # JsonHist_builder( monTool, mypath, "/afs/cern.ch/user/s/sutt/b/Trigger/TrigMonitoring/TrigIDR4Monitoring/data/NtracksPlotsDef.json" )
95
96 return monTool
97
void print(char *figname, TCanvas *c1)

Variable Documentation

◆ _factory

dict python.MonTool._factory
protected
Initial value:
= {
"Tier0" : Tier0_builder,
"Resolutions" : Resolutions_builder,
"Efficiencies" : Efficiencies_builder,
"Vertices" : Vertices_builder,
"TrackParameters" : TrackParameters_builder,
"SiHits" : SiHitPlot_builder,
"TRTHits" : TRTPlot_builder
}

Definition at line 37 of file MonTool.py.