11 '''Function to configures some algorithms in the monitoring system.'''
12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
13 result = ComponentAccumulator()
15 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
16 result.merge( TileCablingSvcCfg(flags) )
18 from AthenaMonitoring
import AthMonitorCfgHelper
19 helper = AthMonitorCfgHelper(flags,
'TileTMDBDigitsMonitoring')
22 from AthenaConfiguration.ComponentFactory
import CompFactory
23 tileTMDBDigitsMonAlg = helper.addAlgorithm(CompFactory.TileTMDBDigitsMonitorAlgorithm,
'TileTMDBDigitsMonAlg')
25 tileTMDBDigitsMonAlg.TriggerChain =
''
28 run = str(flags.Input.RunNumbers[0])
29 from TileMonitoring.TileMonitoringCfgHelper
import addTileTMDB_1DHistogramsArray, addTileTMDB_2DHistogramsArray
34 addTileTMDB_2DHistogramsArray(helper, tileTMDBDigitsMonAlg, name =
'TMDB_DigitsPedestal',
35 value =
'pedestal', title =
'Mean pedestal (sample[0])',
36 path =
'Tile/TMDBDigits', type=
'TProfile2D', run = run)
38 addTileTMDB_2DHistogramsArray(helper, tileTMDBDigitsMonAlg, name =
'TMDB_DigitsAmplitude',
39 value =
'amplitude', title =
'Difference between maximum and minimum sample',
40 path =
'Tile/TMDBDigits', type=
'TProfile2D', run = run)
42 addTileTMDB_2DHistogramsArray(helper, tileTMDBDigitsMonAlg, name =
'TMDB_DigitsHFN',
43 value =
'HFN', title =
'Mean RMS of 7 samples (HFN)',
44 path =
'Tile/TMDBDigits', type=
'TProfile2D', run = run)
47 addTileTMDB_1DHistogramsArray(helper, tileTMDBDigitsMonAlg, name =
'TMDB_DigitsCellPedestal',
48 xvalue =
'pedestal', title =
'Pedestal (sample[0]);[ADC]',
49 path =
'Tile/TMDBDigits', type=
'TH1D', run = run,
50 xbins = 101, xmin = -0.5, xmax = 100.5)
52 addTileTMDB_1DHistogramsArray(helper, tileTMDBDigitsMonAlg, name =
'TMDB_DigitsCellHFN',
53 xvalue =
'HFN', title =
'Mean RMS (HFN);[ADC]',
54 path =
'Tile/TMDBDigits', type=
'TH1D', run = run,
55 xbins = 41, xmin = -0.5, xmax = 40.5)
57 addTileTMDB_1DHistogramsArray(helper, tileTMDBDigitsMonAlg, name =
'TMDB_DigitsCellAmplitude',
58 xvalue =
'amplitude', title =
'Difference between maximum and minimum sample;[ADC]',
59 path =
'Tile/TMDBDigits', type=
'TH1D', run = run,
60 xbins = 101, xmin = -0.5, xmax = 100.5)
63 accumalator = helper.result()
64 result.merge(accumalator)
77 from AthenaConfiguration.TestDefaults
import defaultGeometryTags, defaultTestFiles