ATLAS Offline Software
Functions
TileTowerMonitorAlgorithm Namespace Reference

Functions

def TileTowerMonitoringConfig (flags, **kwargs)
 

Function Documentation

◆ TileTowerMonitoringConfig()

def TileTowerMonitorAlgorithm.TileTowerMonitoringConfig (   flags,
**  kwargs 
)
Function to configure TileTowerMonitorAlgorithm algorithm in the monitoring system.

Definition at line 11 of file TileTowerMonitorAlgorithm.py.

11 def TileTowerMonitoringConfig(flags, **kwargs):
12 
13  ''' Function to configure TileTowerMonitorAlgorithm algorithm in the monitoring system.'''
14 
15  # Define one top-level monitoring algorithm. The new configuration
16  # framework uses a component accumulator.
17 
18  result = ComponentAccumulator()
19 
20  from TileMonitoring.TileTowerBuilderConfig import TileTowerBuilderAlgCfg
21  result.merge(TileTowerBuilderAlgCfg(flags))
22 
23  # The following class will make a sequence, configure algorithms, and link
24  # them to GenericMonitoringTools
25  from AthenaMonitoring import AthMonitorCfgHelper
26  helper = AthMonitorCfgHelper(flags,'TileTowerMonitoring')
27 
28  # Adding an TileTowerMonitorAlgorithm algorithm to the helper
29  TileTowerMonitorAlgorithm=CompFactory.TileTowerMonitorAlgorithm
30  tileTowerMonAlg = helper.addAlgorithm(TileTowerMonitorAlgorithm, 'TileTowerMonAlg')
31 
32  tileTowerMonAlg.TriggerChain = ''
33 
34  # L1Trigger Type Bits:
35  # bit0_RNDM, bit1_ZeroBias, bit2_L1Cal, bit3_Muon,
36  # bit4_RPC, bit5_FTK, bit6_CTP, bit7_Calib, AnyPhysTrig
37  kwargs.setdefault('fillHistogramsForL1Triggers', ['AnyPhysTrig', 'bit7_Calib'])
38  l1Triggers = kwargs['fillHistogramsForL1Triggers']
39 
40  for k, v in kwargs.items():
41  setattr(tileTowerMonAlg, k, v)
42 
43  run = str(flags.Input.RunNumbers[0])
44 
45  # 1) Configure histogram with TileTowerMonAlg algorithm execution time
46  executeTimeGroup = helper.addGroup(tileTowerMonAlg, 'TileTowerMonExecuteTime', 'Tile/')
47  executeTimeGroup.defineHistogram('TIME_execute', path = 'Tower', type='TH1F',
48  title = 'Time for execute TileTowerMonAlg algorithm;time [#mus]',
49  xbins = 100, xmin = 0, xmax = 100000)
50 
51 
52  from TileCalibBlobObjs.Classes import TileCalibUtils as Tile
53  from TileMonitoring.TileMonitoringCfgHelper import addTileEtaPhiMapsArray
54 
55  # ) Configure histograms with most energetic Tile tower position
56  addTileEtaPhiMapsArray(helper, tileTowerMonAlg, name = 'TileTowerEtaPhi', type='TH2D',
57  title = 'Most energetic Tile Tower position', path = 'Tile/Tower',
58  run = run, triggers = l1Triggers, perSample = False)
59 
60  # ) Configure histograms with position correlation of Tile tower opposite to most energetic tower
61  addTileEtaPhiMapsArray(helper, tileTowerMonAlg, name = 'TileTowerEtaPhiDiff', type='TH2D',
62  title = 'Position correlation of Tile Tower opposite to most energetic tower',
63  path = 'Tile/Tower', run = run, triggers = l1Triggers, perSample = False,
64  etaTitle = '#Delta #eta', etabins = 41, etamin = -2.05, etamax = 2.05,
65  phiTitle = '#Delta #phi', phibins = Tile.MAX_DRAWER + 1, phimin = -0.05, phimax = 6.45)
66 
67 
68  from TileMonitoring.TileMonitoringCfgHelper import addTile1DHistogramsArray
69 
70  # ) Configure histograms with Et in most energetic Tile tower per partition
71  addTile1DHistogramsArray(helper, tileTowerMonAlg, name = 'TileTowerEt', xvalue = 'Et',
72  title = 'E_{T} [MeV] in most energetic Tile Tower', path = 'Tile/Tower',
73  xbins = 80, xmin = 0., xmax = 20000., type = 'TH1D', run = run,
74  triggers = l1Triggers, perPartition = True, perSample = False,
75  perGain = False, subDirectory = True, allPartitions = True)
76 
77  # ) Configure histograms with all Tile towers energy per partition
78  addTile1DHistogramsArray(helper, tileTowerMonAlg, name = 'TileAllTowerEnergy', xvalue = 'energy',
79  title = 'All Tile Towers Energy [MeV]', path = 'Tile/Tower',
80  xbins = 80, xmin = 0., xmax = 20000., type = 'TH1D', run = run,
81  triggers = l1Triggers, perPartition = True, perSample = False,
82  perGain = False, subDirectory = True, allPartitions = True)
83 
84 
85  accumalator = helper.result()
86  result.merge(accumalator)
87  return result
88 
TileTowerBuilderConfig.TileTowerBuilderAlgCfg
def TileTowerBuilderAlgCfg(flags, **kwargs)
Definition: TileTowerBuilderConfig.py:11
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TileTowerMonitorAlgorithm.TileTowerMonitoringConfig
def TileTowerMonitoringConfig(flags, **kwargs)
Definition: TileTowerMonitorAlgorithm.py:11
TileMonitoringCfgHelper.addTile1DHistogramsArray
def addTile1DHistogramsArray(helper, algorithm, name='', xvalue='', value='', title='', path='', weight='', xbins=0, xmin=0., xmax=0., type='TH1D', run='', triggers=[], subDirectory=False, perPartition=True, perSample=False, opt='', perGain=False, xlabels=(), allPartitions=False, separator='_', merge=None)
Definition: TileMonitoringCfgHelper.py:536
TileMonitoringCfgHelper.addTileEtaPhiMapsArray
def addTileEtaPhiMapsArray(helper, algorithm, name, title, path, weight='', type='TH2D', value='', run='', triggers=[], perSample=True, perGain=False, separator='_', etaTitle='#eta', etabins=21, etamin=-2.025, etamax=2.025, phiTitle='#phi', phibins=Tile.MAX_DRAWER, phimin=-3.15, phimax=3.15)
Definition: TileMonitoringCfgHelper.py:501
str
Definition: BTagTrackIpAccessor.cxx:11