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