Definition at line 197 of file ReadRPCRun2DataFile.py.
◆ __init__()
def ReadRPCRun2DataFile.Mioct.__init__ |
( |
|
self, |
|
|
|
id, |
|
|
|
slot, |
|
|
|
sectors = [] |
|
) |
| |
Definition at line 198 of file ReadRPCRun2DataFile.py.
198 def __init__(self, id, slot, sectors=[]):
201 self.sectors =
copy(sectors)
202 self.sectordic = dict([ (s.connector, s)
for s
in sectors ])
◆ addSector()
def ReadRPCRun2DataFile.Mioct.addSector |
( |
|
self, |
|
|
|
sector |
|
) |
| |
Definition at line 206 of file ReadRPCRun2DataFile.py.
206 def addSector(self,sector):
207 if sector.connector
in self.sectordic:
208 raise RuntimeError(
"Sector with connector %i already exists" % sector.connector)
209 self.sectors += [ sector ]
210 self.sectordic[sector.connector] = sector
◆ asXML()
def ReadRPCRun2DataFile.Mioct.asXML |
( |
|
self, |
|
|
|
depth |
|
) |
| |
Definition at line 218 of file ReadRPCRun2DataFile.py.
218 def asXML(self, depth):
219 sectorNames = [s.name
for s
in self.sectors]
220 s =
' '*depth +
'<MIOCT id="%s" slot="%i">\n' % (self.id, self.slot)
221 s +=
' '*depth +
' <!-- contains sectors %s -->\n' %
", ".
join(
sorted(sectorNames))
222 for sector
in self.sectors:
223 s += sector.asXML(depth + 4)
225 s += self.decodes.asXML(depth + 4)
226 s +=
' '*depth +
"</MIOCT>"
◆ fillTopoCells()
def ReadRPCRun2DataFile.Mioct.fillTopoCells |
( |
|
self | ) |
|
Definition at line 228 of file ReadRPCRun2DataFile.py.
228 def fillTopoCells( self):
231 for sector
in self.sectors:
232 allROIsInMioct += sector.rois
233 self.decodes = Decodes.fromAllRois(allROIsInMioct)
◆ getSector()
def ReadRPCRun2DataFile.Mioct.getSector |
( |
|
self, |
|
|
|
connector |
|
) |
| |
◆ getStats()
def ReadRPCRun2DataFile.Mioct.getStats |
( |
|
self, |
|
|
|
stats |
|
) |
| |
Definition at line 212 of file ReadRPCRun2DataFile.py.
212 def getStats(self,stats):
213 stats[
'sectors'] += len(self.sectors)
214 for sector
in self.sectors:
215 sector.getStats(stats)
217 self.decodes.getStats(stats)
◆ decodes
ReadRPCRun2DataFile.Mioct.decodes |
◆ id
ReadRPCRun2DataFile.Mioct.id |
◆ sectordic
ReadRPCRun2DataFile.Mioct.sectordic |
◆ sectors
ReadRPCRun2DataFile.Mioct.sectors |
◆ slot
ReadRPCRun2DataFile.Mioct.slot |
The documentation for this class was generated from the following file: