ATLAS Offline Software
rpc.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 from ..lib import DCSC_DefectTranslate_Subdetector, DCSC_Variable
4 
5 RPCBA, 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  )]
python.subdetector.DCSC_DefectTranslate_Subdetector.translators
translators
Definition: subdetector.py:541
python.variable.DCSC_Variable
Definition: variable.py:33
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.rpc.RPC
Definition: rpc.py:7
python.subdetectors.rpc.RPC.__init__
def __init__(self, *args, **kwargs)
Definition: rpc.py:25