Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
DataQuality
DCSCalculator2
python
subdetectors
stg.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
from
..lib
import
DCSC_DefectTranslate_Subdetector, DCSC_Variable
4
from
DQUtils
import
Databases
5
from
DQUtils.channel_mapping
import
get_channel_ids_names
6
7
folder, database =
"/STG/DCS/HV"
,
"COOLOFL_DCS/CONDBR2"
8
9
ids, names, _ =
get_channel_ids_names
(Databases.get_folder(folder, database))
10
11
STGBA, STGBC, STGEA, STGEC = 1, 2, 3, 4
12
13
def
STG_HV_state
(iov):
14
return
iov.fsmCurrentState ==
"ON"
15
16
class
STG
(
DCSC_DefectTranslate_Subdetector
):
17
18
folder_base =
"/STG/DCS"
19
20
mapping = {
21
STGEA:
list
(
range
(504, 1015)) +
list
(
range
(1024,1025)),
22
STGEC:
list
(
range
(0,504))+
list
(
range
(1015,1024))
23
}
24
25
variables = [
26
DCSC_Variable
(
"HV"
, STG_HV_state),
27
]
28
29
# If you change this please consult with the Muon groups.
30
# It was decided to make it the same across CSC, MDT, RPC and TGC.
31
dead_fraction_caution =
None
32
dead_fraction_bad = 0.5
33
34
def
__init__
(self, *args, **kwargs):
35
36
super(STG, self).
__init__
(*args, **kwargs)
37
38
self.
translators
= [STG.color_to_defect_translator(flag, defect)
39
for
flag, defect
in
((STGEA,
'MS_STG_EA_STANDBY_HV'
),
40
(STGEC,
'MS_STG_EC_STANDBY_HV'
),
41
)]
python.subdetector.DCSC_DefectTranslate_Subdetector.translators
translators
Definition:
subdetector.py:541
python.variable.DCSC_Variable
Definition:
variable.py:33
python.subdetectors.stg.STG_HV_state
def STG_HV_state(iov)
Definition:
stg.py:13
python.channel_mapping.get_channel_ids_names
def get_channel_ids_names(folder)
Definition:
channel_mapping.py:102
python.subdetectors.stg.STG
Definition:
stg.py:16
python.subdetector.DCSC_DefectTranslate_Subdetector
Definition:
subdetector.py:532
plotBeamSpotVxVal.range
range
Definition:
plotBeamSpotVxVal.py:195
histSizes.list
def list(name, path='/')
Definition:
histSizes.py:38
python.subdetectors.stg.STG.__init__
def __init__(self, *args, **kwargs)
Definition:
stg.py:34
Generated on Wed Apr 16 2025 21:19:06 for ATLAS Offline Software by
1.8.18