ATLAS Offline Software
Loading...
Searching...
No Matches
StgcMonitorUtils.py
Go to the documentation of this file.
2# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3#
4
6 columnLabels_AL, columnLabels_CL = ['']*71, ['']*71
7 columnLabels_AS, columnLabels_CS = ['']*71, ['']*71
8 rowLabels = ['']*56
9 counterColumnLabels, counterRowLabels = 1, 1
10
11 for columnLabelIt in range(0, 71):
12 if (columnLabelIt/3 - 1) % 3 == 0:
13 columnLabels_AL[columnLabelIt] = 'A' + str(2*counterColumnLabels - 1).zfill(2)
14 columnLabels_CL[columnLabelIt] = 'C' + str(2*counterColumnLabels - 1).zfill(2)
15 columnLabels_AS[columnLabelIt - 2] = 'A' + str(2*counterColumnLabels).zfill(2)
16 columnLabels_CS[columnLabelIt - 2] = 'C' + str(2*counterColumnLabels).zfill(2)
17 counterColumnLabels += 1
18
19 for rowLabelIt in range(0, 56):
20 if (rowLabelIt/5 - 1) % 4 == 0:
21 rowLabels[rowLabelIt] = 'Q' + str(counterRowLabels)
22 counterRowLabels += 1
23
24 return columnLabels_AL, columnLabels_CL, columnLabels_AS, columnLabels_CS, rowLabels
25
27 wireGroupNumberLabel = ['']*929
28 counterGroupNumberLabel = 1
29
30 for wireGroupNumberIt in range(0, 929):
31 if (wireGroupNumberIt/29 + 3) % 4 == 0:
32 wireGroupNumberLabel[wireGroupNumberIt] = 'S' + str(counterGroupNumberLabel).zfill(2)
33 counterGroupNumberLabel += 1
34 elif (wireGroupNumberIt - 76) % 116 == 0:
35 wireGroupNumberLabel[wireGroupNumberIt] = 'S' + str(counterGroupNumberLabel).zfill(2)
36 counterGroupNumberLabel += 1
37
38 return wireGroupNumberLabel
39
41 labels = [ f"Q{int(feb/8)+1}/L{feb%8+1}" for feb in range(0, 24) ]
42 return labels
43
44columnLabels_AL = padTriggerOccupancyLabels()[0]
45columnLabels_CL = padTriggerOccupancyLabels()[1]
46columnLabels_AS = padTriggerOccupancyLabels()[2]
47columnLabels_CS = padTriggerOccupancyLabels()[3]
49wireGroupNumberLabel = wireOccupancyLabels()
50FebLabels = FEBLabels()