ATLAS Offline Software
Classes | Functions
python.DetStatusLib Namespace Reference

Classes

class  DetStatusNames
 
class  DetStatusReq
 
class  StatusList
 
class  StatusObj
 

Functions

def folderName (runLumi=True)
 
def colour (code)
 
def colourVal (sval)
 

Function Documentation

◆ colour()

def python.DetStatusLib.colour (   code)

Definition at line 15 of file DetStatusLib.py.

15 def colour(code):
16  if (code==-1):
17  return "BLACK"
18  rcode=code % 4
19  if (rcode==1):
20  return "RED"
21  elif (rcode==2):
22  return "YELLOW"
23  elif (rcode==3):
24  return "GREEN"
25  return "UNKNOWN"
26 

◆ colourVal()

def python.DetStatusLib.colourVal (   sval)

Definition at line 27 of file DetStatusLib.py.

27 def colourVal(sval):
28  "Translate traffic light string (numerical literal or letter) to number"
29  status=0
30  try:
31  uplight=sval.upper()
32  if uplight in ["R","RED"]:
33  status=1
34  elif uplight in ["Y","YELLOW"]:
35  status=2
36  elif uplight in ["G","GREEN"]:
37  status=3
38  elif uplight in ["U","UNKNOWN"]:
39  status=0
40  elif uplight in ["B","BLACK"]:
41  status=-1
42  else:
43  status=int(sval)
44  except Exception:
45  status=None
46  return status
47 
48 

◆ folderName()

def python.DetStatusLib.folderName (   runLumi = True)

Definition at line 9 of file DetStatusLib.py.

9 def folderName(runLumi=True):
10  if (runLumi):
11  return '/GLOBAL/DETSTATUS/LBSUMM'
12  else:
13  return '/GLOBAL/DETSTATUS/TISUMM'
14 
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.DetStatusLib.folderName
def folderName(runLumi=True)
Definition: DetStatusLib.py:9
python.DetStatusLib.colourVal
def colourVal(sval)
Definition: DetStatusLib.py:27
python.DetStatusLib.colour
def colour(code)
Definition: DetStatusLib.py:15