ATLAS Offline Software
Classes | Functions
python.RunLister Namespace Reference

Classes

class  coolRunLister
 
class  LBParams
 
class  RunParams
 
class  TrigLBParams
 

Functions

def timeRep (value)
 
def boolRep (value)
 
def noneZero (value)
 
def noneStr (value)
 
def maskDecode (mask)
 

Function Documentation

◆ boolRep()

def python.RunLister.boolRep (   value)
Utility function to turn bool into yes/no

Definition at line 21 of file RunLister.py.

21 def boolRep(value):
22  """Utility function to turn bool into yes/no"""
23  if (value is not None):
24  if (value):
25  return 'Yes'
26  else:
27  return 'No'
28  else:
29  return '-?-'
30 

◆ maskDecode()

def python.RunLister.maskDecode (   mask)
Decode the detector mask into a string list of detectors

Definition at line 45 of file RunLister.py.

45 def maskDecode(mask):
46  """Decode the detector mask into a string list of detectors"""
47  # data taken from get_detectormask.cc from Giovana L, August 2007
48  masklist=['Pix B','Pix EA','Pix EC','Pix B-layer','SCT BA','SCT BC','SCT EA','SCT EC','TRT BA','TRT BC','TRT EA','TRT EC','LAr EMBA','LAr EMBC','LAr EMECA','LAr EMECC','LAr HECA','LAr HECC','LAR FCALA','LAR FCALC','Til BA','Til BC','Til EA','Til EC','MDT BA','MDT BC','MDT EA','MDT EC','RPC BA','RPC BC','TGC EA','TGC EC','CSC EA','CSC EC','L1calo pre','L1calo cluDAQ','L1calo cluRoI','L1calo JetEDAQ','L1calo JetERoI','MUCTPI','CTP','L2SV','SFI','SFO','LVL2','EF']
49  res=""
50  for i in range(0,64):
51  if (mask & (1 << i)): res+=masklist[i]+", "
52  # chop off last comma-space
53  if len(res)>1: res=res[:-2]
54  return res
55 
56 

◆ noneStr()

def python.RunLister.noneStr (   value)

Definition at line 38 of file RunLister.py.

38 def noneStr(value):
39  "Utility to turn None into '---' (string) for use with string/None args"
40  if (value is None):
41  return "---"
42  else:
43  return str(value)
44 

◆ noneZero()

def python.RunLister.noneZero (   value)

Definition at line 31 of file RunLister.py.

31 def noneZero(value):
32  "Utility function to turn None into 0 (int) for use with integer/None args"
33  if (value is None):
34  return 0
35  else:
36  return int(value)
37 

◆ timeRep()

def python.RunLister.timeRep (   value)
Utility function to turn COOL 63bit time into string, or unknown

Definition at line 13 of file RunLister.py.

13 def timeRep(value):
14  """Utility function to turn COOL 63bit time into string, or unknown"""
15  if (value is not None):
16  stime=int(value/1000000000)
17  return time.strftime('%F:%T',time.gmtime(stime))
18  else:
19  return 'unknown'
20 
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.RunLister.noneZero
def noneZero(value)
Definition: RunLister.py:31
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.RunLister.noneStr
def noneStr(value)
Definition: RunLister.py:38
python.RunLister.maskDecode
def maskDecode(mask)
Definition: RunLister.py:45
str
Definition: BTagTrackIpAccessor.cxx:11
python.RunLister.boolRep
def boolRep(value)
Definition: RunLister.py:21
timeRep
std::string timeRep(const cool::ValidityKey &t, bool isEnd=false, bool runLumi=true)
Definition: MakeReferenceFile.cxx:217