10 ''' Function to configure TileMuIdMonitorAlgorithm algorithm in the monitoring system.'''
14 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
17 from TileGeoModel.TileGMConfig
import TileGMCfg
20 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
25 from AthenaMonitoring
import AthMonitorCfgHelper
26 helper = AthMonitorCfgHelper(flags,
'TileMuIdMonitoring')
29 from AthenaConfiguration.ComponentFactory
import CompFactory
30 tileMuIdMonAlg = helper.addAlgorithm(CompFactory.TileMuIdMonitorAlgorithm,
'TileMuIdMonAlg')
32 tileMuIdMonAlg.TriggerChain =
''
37 kwargs.setdefault(
'fillHistogramsForL1Triggers', [
'AnyPhysTrig',
'bit7_Calib'])
38 l1Triggers = kwargs[
'fillHistogramsForL1Triggers']
40 for k, v
in kwargs.items():
41 setattr(tileMuIdMonAlg, k, v)
43 run =
str(flags.Input.RunNumbers[0])
46 executeTimeGroup = helper.addGroup(tileMuIdMonAlg,
'TileMuIdMonExecuteTime',
'Tile/')
47 executeTimeGroup.defineHistogram(
'TIME_execute', path =
'MuId', type=
'TH1F',
48 title =
'Time for execute TileMuIdMonAlg algorithm;time [#mus]',
49 xbins = 100, xmin = 0, xmax = 1000)
52 from TileCalibBlobObjs.Classes
import TileCalibUtils
as Tile
54 from TileMonitoring.TileMonitoringCfgHelper
import addTileEtaPhiMapsArray
58 title =
'Tile MuId muon position', path =
'Tile/MuId',
59 run = run, triggers = l1Triggers, perSample =
False)
63 title =
'Tile MuId Tags=1 muon position', path =
'Tile/MuId',
64 run = run, triggers = l1Triggers, perSample =
False)
68 title =
'Tile MuId Tags=2 muon position', path =
'Tile/MuId',
69 run = run, triggers = l1Triggers, perSample =
False)
72 from TileMonitoring.TileMonitoringCfgHelper
import addTile2DHistogramsArray
76 xvalue =
'energy', yvalue =
'quality', type=
'TH2D',
77 title =
'Tile MuId muon quality vs energy [MeV];Energy [MeV];Quality',
78 path =
'Tile/MuId', xbins = 50, xmin = 0., xmax = 10000.,
79 ybins = 4, ymin = -0.5, ymax = 1.5, run = run, triggers = l1Triggers)
83 xvalue =
'energy', yvalue =
'quality', type=
'TH2D',
84 title =
'Tile MuId Tags=1 muon quality vs energy [MeV];Energy [MeV];Quality',
85 path =
'Tile/MuId', xbins = 50, xmin = 0., xmax = 10000.,
86 ybins = 4, ymin = -0.5, ymax = 1.5, run = run, triggers = l1Triggers)
90 xvalue =
'energy', yvalue =
'quality', type=
'TH2D',
91 title =
'Tile MuId Tags=2 muon quality vs energy [MeV];Energy [MeV];Quality',
92 path =
'Tile/MuId', xbins = 50, xmin = 0., xmax = 10000.,
93 ybins = 4, ymin = -0.5, ymax = 1.5, run = run, triggers = l1Triggers)
96 from TileMonitoring.TileMonitoringCfgHelper
import addTile1DHistogramsArray
100 title =
'Tile MuId number of tags', path =
'Tile/MuId',
101 xbins = 5, xmin = -0.5, xmax = 4.5, type =
'TH1D', run = run,
102 triggers = l1Triggers, perPartition =
False, perSample =
False,
103 perGain =
False, subDirectory =
False, allPartitions =
False)
107 title =
'Tile MuId Energy;Energy [MeV]', path =
'Tile/MuId',
108 xbins = 100, xmin = 0., xmax = 10000., type =
'TH1D', run = run,
109 triggers = l1Triggers, perPartition =
False, perSample =
False,
110 perGain =
False, subDirectory =
False, allPartitions =
False)
114 title =
'Tile MuId muon quality', path =
'Tile/MuId',
115 xbins = 4, xmin = -0.5, xmax = 1.5, type =
'TH1D', run = run,
116 triggers = l1Triggers, perPartition =
False, perSample =
False,
117 perGain =
False, subDirectory =
False, allPartitions =
False)
121 title =
'Tile MuId muon #eta position;#eta', path =
'Tile/MuId',
122 xbins = 40, xmin = -2., xmax = 2., type =
'TH1D', run = run,
123 triggers = l1Triggers, perPartition =
False, perSample =
False,
124 perGain =
False, subDirectory =
False, allPartitions =
False)
128 title =
'Tile MuId muon #phi position;#phi', path =
'Tile/MuId',
129 xbins = Tile.MAX_DRAWER, xmin = -3.15, xmax = 3.15, type =
'TH1D',
130 run = run, triggers = l1Triggers, perPartition =
False, perSample =
False,
131 perGain =
False, subDirectory =
False, allPartitions =
False)
135 value =
'energy', title =
'Tile MuId muon average energy;#eta',
136 path =
'Tile/MuId', xbins = 40, xmin = -2., xmax = 2., type =
'TProfile',
137 run = run, triggers = l1Triggers, perPartition =
False, perSample =
False,
138 perGain =
False, subDirectory =
False, allPartitions =
False)
142 title =
'Tile MuId muon everage energy [MeV];#phi', path =
'Tile/MuId',
143 xbins = Tile.MAX_DRAWER, xmin = -3.15, xmax = 3.15, type =
'TProfile',
144 run = run, triggers = l1Triggers, perPartition =
False, perSample =
False,
145 perGain =
False, subDirectory =
False, allPartitions =
False)
150 title =
'Tile MuId Tags=1 Energy;Energy [MeV]', path =
'Tile/MuId',
151 xbins = 100, xmin = 0., xmax = 10000., type =
'TH1D', run = run,
152 triggers = l1Triggers, perPartition =
False, perSample =
False,
153 perGain =
False, subDirectory =
False, allPartitions =
False)
157 title =
'Tile MuId Tags=1 muon quality', path =
'Tile/MuId',
158 xbins = 4, xmin = -0.5, xmax = 1.5, type =
'TH1D', run = run,
159 triggers = l1Triggers, perPartition =
False, perSample =
False,
160 perGain =
False, subDirectory =
False, allPartitions =
False)
164 title =
'Tile MuId Tags=1 muon #eta position;#eta', path =
'Tile/MuId',
165 weight =
'energy', xbins = 40, xmin = -2., xmax = 2., type =
'TH1D', run = run,
166 triggers = l1Triggers, perPartition =
False, perSample =
False,
167 perGain =
False, subDirectory =
False, allPartitions =
False)
171 title =
'Tile MuId Tags=1 muon #phi position;#phi', path =
'Tile/MuId',
172 weight =
'energy', xbins = Tile.MAX_DRAWER, xmin = -3.15, xmax = 3.15, type =
'TH1D',
173 run = run, triggers = l1Triggers, perPartition =
False, perSample =
False,
174 perGain =
False, subDirectory =
False, allPartitions =
False)
178 title =
'Tile MuId Tags=2 Energy; Energy [MeV]', path =
'Tile/MuId',
179 xbins = 100, xmin = 0., xmax = 10000., type =
'TH1D', run = run,
180 triggers = l1Triggers, perPartition =
False, perSample =
False,
181 perGain =
False, subDirectory =
False, allPartitions =
False)
185 title =
'Tile MuId Tags=2 muon quality', path =
'Tile/MuId',
186 xbins = 4, xmin = -0.5, xmax = 1.5, type =
'TH1D', run = run,
187 triggers = l1Triggers, perPartition =
False, perSample =
False,
188 perGain =
False, subDirectory =
False, allPartitions =
False)
192 title =
'Tile MuId Tags=2 muon #eta position;#eta', path =
'Tile/MuId',
193 weight =
'energy', xbins = 40, xmin = -2., xmax = 2., type =
'TH1D', run = run,
194 triggers = l1Triggers, perPartition =
False, perSample =
False,
195 perGain =
False, subDirectory =
False, allPartitions =
False)
199 title =
'Tile MuId Tags=2 muon #phi position;#phi', path =
'Tile/MuId',
200 weight =
'energy', xbins = Tile.MAX_DRAWER, xmin = -3.15, xmax = 3.15, type =
'TH1D',
201 run = run, triggers = l1Triggers, perPartition =
False, perSample =
False,
202 perGain =
False, subDirectory =
False, allPartitions =
False)
204 accumalator = helper.result()
205 result.merge(accumalator)