ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.DetStatusLib.DetStatusNames Class Reference
Collaboration diagram for python.DetStatusLib.DetStatusNames:

Public Member Functions

def __init__ (self)
 
def name (self, num)
 
def num (self, name)
 
def nums (self, name)
 
def allNames (self)
 
def allNums (self)
 

Public Attributes

 namedict
 
 numdict
 

Detailed Description

Definition at line 49 of file DetStatusLib.py.

Constructor & Destructor Documentation

◆ __init__()

def python.DetStatusLib.DetStatusNames.__init__ (   self)

Definition at line 50 of file DetStatusLib.py.

50  def __init__(self):
51  # current list of status flags
52  # has to match definition in DetStatusSvc.cxx
53 
54  self.namedict={'PIXB':101,'PIX0':102,'PIXEA':104,'PIXEC':105,
55  'SCTB':111,'SCTEA':114,'SCTEC':115,
56  'TRTB':121,'TRTEA':124,'TRTEC':125,'TRTTR':126,
57  'IDGL':130,
58  'IDAL':140,
59  'IDBS':150,
60  'IDPF':160,'IDVX':161,
61  'IDBCM':170,
62  'EMBA':202,'EMBC':203,'EMECA':204,'EMECC':205,
63  'HECA':214,'HECC':215,'FCALA':224,'FCALC':225,
64  'TIGB':230,
65  'TILBA':232,'TILBC':233,'TIEBA':234,'TIEBC':235,
66  'MBTSA':244,'MBTSC':245,
67  'CALBA':251,'CALEA':254,'CALEC':255,
68  'MDTBA':302,'MDTBC':303,'MDTEA':304,'MDTEC':305,
69  'RPCBA':312,'RPCBC':313,
70  'TGCEA':324,'TGCEC':325,
71  'CSCEA':334,'CSCEC':335,
72  'LCD':350,'LCDA':353,'LCDC':354,
73  'ALFA':360,'ZDC':370,
74  'L1CAL':401,'L1MUB':402,'L1MUE':403,'L1CTP':404,
75  'TRCAL':411,
76  'TRDF':420,
77  'TRBJT':421,'TRBPH':422,'TRCOS':423,'TRELE':424,
78  'TRGAM':425,'TRJET':426,'TRMET':427,'TRMBI':428,
79  'TRMUO':429,'TRTAU':430,'TRIDT':431,
80  'LUMI':450,'LUMIONL':451,
81  'RUNCLT':460,
82  'RCOPS':461,
83  'ATLGL':480,'ATLSOL':481,'ATLTOR':482,
84  'EIDB':501,'EIDCR':502,'EIDE':503,
85  'PIDB':505,'PIDCR':506,'PIDE':507,
86  'EIDF':508,'EIDSOFT':509,
87  'MSTACO':510,'MMUIDCB':511,'MMUIDVX':512,
88  'MMUGIRL':513,'MMUBOY':514,'MMUIDSA':515,
89  'MMUTAG':516,'MMTIMO':517,'MCMUTAG':518,
90  'MCALLHR':519,
91  'JETB':521,'JETEA':524,'JETEC':525,
92  'JETFA':526,'JETFC':527,
93  'MET':530,'METCALO':531,'METMUON':532,
94  'BTGLIFE':541,'BTGSOFTE':544,'BTGSOFTM':545,
95  'TAUB':551,'TAUCR':552,'TAUE':553}
96 
97  # initialise reverse map from channel numbers to names
98  self.numdict={}
99  for (name,num) in self.namedict.items():
100  self.numdict[num]=name
101 

Member Function Documentation

◆ allNames()

def python.DetStatusLib.DetStatusNames.allNames (   self)

Definition at line 117 of file DetStatusLib.py.

117  def allNames(self):
118  a=self.namedict.keys()
119  a.sort()
120  return a
121 

◆ allNums()

def python.DetStatusLib.DetStatusNames.allNums (   self)

Definition at line 122 of file DetStatusLib.py.

122  def allNums(self):
123  a=self.namedict.values()
124  a.sort()
125  return a
126 

◆ name()

def python.DetStatusLib.DetStatusNames.name (   self,
  num 
)

Definition at line 102 of file DetStatusLib.py.

102  def name(self,num):
103  return self.numdict[num]
104 

◆ num()

def python.DetStatusLib.DetStatusNames.num (   self,
  name 
)

Definition at line 105 of file DetStatusLib.py.

105  def num(self,name):
106  "Return the numeric channel identifier which exactly matches name"
107  return self.namedict[name]
108 

◆ nums()

def python.DetStatusLib.DetStatusNames.nums (   self,
  name 
)

Definition at line 109 of file DetStatusLib.py.

109  def nums(self,name):
110  "Return a list of all numeric channel identifiers which match name"
111  result=[]
112  for (iname,inum) in self.namedict.items():
113  if (name==iname[:len(name)]):
114  result+=[inum]
115  return result
116 

Member Data Documentation

◆ namedict

python.DetStatusLib.DetStatusNames.namedict

Definition at line 54 of file DetStatusLib.py.

◆ numdict

python.DetStatusLib.DetStatusNames.numdict

Definition at line 98 of file DetStatusLib.py.


The documentation for this class was generated from the following file:
python.Bindings.values
values
Definition: Control/AthenaPython/python/Bindings.py:797
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790