ATLAS Offline Software
TrigMinBiasMonitoring.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 def SpCountMonitoring(flags):
4 
5  from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
6  monTool = GenericMonitoringTool(flags, 'MonTool')
7  monTool.defineHistogram('pixCL_1', path='EXPERT', type='TH1I', title='pixCL_1',xbins=100, xmin=0, xmax=6000)
8  monTool.defineHistogram('pixCLBeforeCuts', path='EXPERT', type='TH1I', title='totPixBeforeCuts', xbins = 250, xmin=0, xmax=6000)
9  monTool.defineHistogram('pixCL_2', path='EXPERT', type='TH1I', title='pixCL_2',xbins=100, xmin=0, xmax=6000)
10  monTool.defineHistogram('pixCLmin3', path='EXPERT', type='TH1I', title='pixCLmin3',xbins=100, xmin=0, xmax=6000)
11  monTool.defineHistogram('pixCL', path='EXPERT', type='TH1I', title='pixCL', xbins = 500, xmin=0, xmax=6000)
12  monTool.defineHistogram('pixCLnoToT', path='EXPERT', type='TH1I', title='pixCLnoToT', xbins = 500, xmin=0, xmax=6000)
13  monTool.defineHistogram('pixCLBarrel', path='EXPERT', type='TH1I', title='pixClBarrel', xbins = 500, xmin=0, xmax=6000)
14  monTool.defineHistogram('pixCLEndcapA', path='EXPERT', type='TH1I', title='pixClEndcapA', xbins = 500, xmin=0, xmax=3000)
15  monTool.defineHistogram('pixCLEndcapC', path='EXPERT', type='TH1I', title='pixClEndcapC', xbins = 500, xmin=0, xmax=3000)
16  monTool.defineHistogram('pixModulesOverThreshold', path='EXPERT', type='TH1I', title='Pixels ModulesOverThreshold', xbins = 100, xmin=1, xmax=200)
17  monTool.defineHistogram('sctSP', path='EXPERT', type='TH1I', title='sctSP', xbins = 500, xmin=0, xmax=6000)
18  monTool.defineHistogram('sctSPEndcapC', path='EXPERT', type='TH1I', title='sctSPEndcapC', xbins = 500, xmin=0, xmax=3000)
19  monTool.defineHistogram('sctSPBarrel', path='EXPERT', type='TH1I', title='sctSPBarrel', xbins = 500, xmin=0, xmax=6000)
20  monTool.defineHistogram('sctSPEndcapA', path='EXPERT', type='TH1I', title='sctSPEndcapA', xbins = 500, xmin=0, xmax=3000)
21  monTool.defineHistogram('pixCL, sctSP', path='EXPERT', type='TH2I', title='SP ; pix SP after ToT cut; sct SP', xbins = 50, xmin=0, xmax=6000, ybins = 50, ymin=0, ymax=6000)
22  monTool.defineHistogram('sctModulesOverThreshold', path='EXPERT', type='TH1I', title='SCT ModulesOverThreshold', xbins = 100, xmin=1, xmax=200)
23 
24  return monTool
25 
26 __MBTSXTitle="channel (0-15 A side, 16-31 C side)"
27 def MbtsFexMonitoring(flags):
28  from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
29  monTool = GenericMonitoringTool(flags,'MonTool')
30  monTool.defineHistogram('triggerEnergies', path='EXPERT', type='TH1D', title='triggerEnergies',xbins=50, xmin=-5, xmax=45)
31  monTool.defineHistogram('triggerTimes', path='EXPERT', type='TH1I', title='triggerTimes',xbins=100, xmin=-50, xmax=50)
32  monTool.defineHistogram('channelID, triggerEnergies', path='EXPERT', title=f'signal per channel;{__MBTSXTitle}; energy[pC]', type='TH2F', xbins=32, xmin=-0.5, xmax=31.5, ybins=20, ymin=-5,ymax=45)
33  monTool.defineHistogram('channelID, triggerEnergies;triggerEnergies_vs_channelID_zoom', path='EXPERT', title=f'signal per channel;{__MBTSXTitle}; energy[pC]', type='TH2F', xbins=32, xmin=-0.5, xmax=31.5, ybins=50, ymin=-2, ymax=3)
34  monTool.defineHistogram('channelID, triggerTimes', path='EXPERT', title=f'times per channel;{__MBTSXTitle}; time[ns]', type='TH2F', xbins=32, xmin=-0.5, xmax=31.5, ybins=20, ymin=-50, ymax=50)
35  monTool.defineHistogram('channelID, triggerTimes;triggerTimes_vs_channelID_zoom', path='EXPERT', title=f'times per channel;{__MBTSXTitle}; time[ns]', type='TH2F', xbins=32, xmin=-0.5, xmax=31.5, ybins=20, ymin=-5, ymax=5)
36  monTool.defineHistogram('timeDelta', path='EXPERT', type='TH1F', title='MBTS time delta;time[ns]', xbins=80, xmin=-40, xmax=40)
37 
38  return monTool
39 
41  from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
42  monTool = GenericMonitoringTool(flags, 'MonTool')
43  monTool.defineHistogram('Counts', path='EXPERT', title=f'MBTS counts per channel;{__MBTSXTitle};counts', type='TH1F', xbins=32, xmin=-0.5, xmax=31.5)
44 
45  return monTool
46 
47 def TrackCountMonitoring(flags, hypoAlg):
48  from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
49  monTool = GenericMonitoringTool(flags, 'MonTool')
50  monTool.defineHistogram('ntrks', path='EXPERT', type='TH1I', title='ntrks', xbins=200, xmin=0, xmax=200)
51  for i in range(len(hypoAlg.minPt)):
52  monTool.defineHistogram('countsSelection{}'.format(i),
53  path='EXPERT', type='TH1I', title='counts for min pT and max z0 cut',
54  xbins=200, xmin=0, xmax=200)
55  monTool.defineHistogram( "trkPt", path='EXPERT', type='TH1I', title="Tracks pt (low pt part);p_{T} [GeV]", xbins=100, xmin=0, xmax=10)
56  monTool.defineHistogram( "trkEta", path='EXPERT', type='TH1I', title="Tracks eta;#eta", xbins=50, xmin=-2.5, xmax=2.5)
57 
58  return monTool
vtune_athena.format
format
Definition: vtune_athena.py:14
GenericMonitoringTool
Definition: GenericMonitoringTool.h:53
python.TrigMinBiasMonitoring.MbtsFexMonitoring
def MbtsFexMonitoring(flags)
Definition: TrigMinBiasMonitoring.py:27
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.TrigMinBiasMonitoring.TrackCountMonitoring
def TrackCountMonitoring(flags, hypoAlg)
Definition: TrigMinBiasMonitoring.py:47
python.TrigMinBiasMonitoring.SpCountMonitoring
def SpCountMonitoring(flags)
Definition: TrigMinBiasMonitoring.py:3
python.TrigMinBiasMonitoring.MbtsHypoToolMonitoring
def MbtsHypoToolMonitoring(flags)
Definition: TrigMinBiasMonitoring.py:40