ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonDQA
MuonRawDataMonitoring
StgcRawDataMonitoring
python
StgcMonitorUtils.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
#
4
5
def
padTriggerOccupancyLabels
():
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
26
def
wireOccupancyLabels
():
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
40
def
FEBLabels
():
41
labels = [ f
"Q{int(feb/8)+1}/L{feb%8+1}"
for
feb
in
range(0, 24) ]
42
return
labels
43
44
columnLabels_AL =
padTriggerOccupancyLabels
()[0]
45
columnLabels_CL =
padTriggerOccupancyLabels
()[1]
46
columnLabels_AS =
padTriggerOccupancyLabels
()[2]
47
columnLabels_CS =
padTriggerOccupancyLabels
()[3]
48
rowLabels =
padTriggerOccupancyLabels
()[4]
49
wireGroupNumberLabel =
wireOccupancyLabels
()
50
FebLabels =
FEBLabels
()
StgcMonitorUtils.padTriggerOccupancyLabels
padTriggerOccupancyLabels()
Definition
StgcMonitorUtils.py:5
StgcMonitorUtils.wireOccupancyLabels
wireOccupancyLabels()
Definition
StgcMonitorUtils.py:26
StgcMonitorUtils.FEBLabels
FEBLabels()
Definition
StgcMonitorUtils.py:40
Generated on
for ATLAS Offline Software by
1.17.0