ATLAS Offline Software
Loading...
Searching...
No Matches
rpc.py
Go to the documentation of this file.
1# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3from ..lib import DCSC_DefectTranslate_Subdetector, DCSC_Variable
4
5RPCBA, RPCBC = 312, 313
6
8
9 folder_base = "/RPC/DCS"
10
11 mapping = {
12 RPCBA: list(range(203, 405)),
13 RPCBC: list(range( 1, 203)),
14 }
15
16 variables = [
17 DCSC_Variable("DQTOWERS_3", lambda iov: iov.TowerDQFlag == 2),
18 ]
19
20 # If you change this please consult with the Muon groups.
21 # It was decided to make it the same across CSC, MDT, RPC and TGC.
22 dead_fraction_caution = None
23 dead_fraction_bad = 0.1
24
25 def __init__(self, *args, **kwargs):
26 #kwargs['keep_dcsofl'] = True
27 super(RPC, self).__init__(*args, **kwargs)
28 self.translators = [RPC.color_to_defect_translator(flag, defect)
29 for flag, defect in ((RPCBA, 'MS_RPC_BA_STANDBY_HV'),
30 (RPCBC, 'MS_RPC_BC_STANDBY_HV'),
31 )]
__init__(self, *args, **kwargs)
Definition rpc.py:25