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 48 of file DetStatusLib.py.

Constructor & Destructor Documentation

◆ __init__()

def python.DetStatusLib.DetStatusNames.__init__ (   self)

Definition at line 49 of file DetStatusLib.py.

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

Member Function Documentation

◆ allNames()

def python.DetStatusLib.DetStatusNames.allNames (   self)

Definition at line 116 of file DetStatusLib.py.

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

◆ allNums()

def python.DetStatusLib.DetStatusNames.allNums (   self)

Definition at line 121 of file DetStatusLib.py.

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

◆ name()

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

Definition at line 101 of file DetStatusLib.py.

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

◆ num()

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

Definition at line 104 of file DetStatusLib.py.

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

◆ nums()

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

Definition at line 108 of file DetStatusLib.py.

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

Member Data Documentation

◆ namedict

python.DetStatusLib.DetStatusNames.namedict

Definition at line 53 of file DetStatusLib.py.

◆ numdict

python.DetStatusLib.DetStatusNames.numdict

Definition at line 97 of file DetStatusLib.py.


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