Definition at line 197 of file ReadRPCRun2DataFile.py.
◆ result
◆ __init__()
| ReadRPCRun2DataFile.Mioct.__init__ |
( |
| self, |
|
|
| id, |
|
|
| slot, |
|
|
| sectors = [] ) |
Definition at line 198 of file ReadRPCRun2DataFile.py.
198 def __init__(self, id, slot, sectors=[]):
199 self.id = id
200 self.slot = slot
201 self.sectors = copy(sectors)
202 self.sectordic = dict([ (s.connector, s) for s in sectors ])
203 self.decodes = None
◆ addSector()
| 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
211 return sector
◆ asXML()
| 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)
224 if self.decodes:
225 s += self.decodes.asXML(depth + 4)
226 s += ' '*depth + "</MIOCT>"
227 return s
◆ fillTopoCells()
| ReadRPCRun2DataFile.Mioct.fillTopoCells |
( |
| self | ) |
|
Definition at line 228 of file ReadRPCRun2DataFile.py.
228 def fillTopoCells( self):
229
230 allROIsInMioct = []
231 for sector in self.sectors:
232 allROIsInMioct += sector.rois
233 self.decodes = Decodes.fromAllRois(allROIsInMioct)
234
235
◆ getSector()
| ReadRPCRun2DataFile.Mioct.getSector |
( |
| self, |
|
|
| connector ) |
Definition at line 204 of file ReadRPCRun2DataFile.py.
204 def getSector(self,connector):
205 return self.sectordic.
get(connector)
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
◆ getStats()
| 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)
216 if self.decodes:
217 self.decodes.getStats(stats)
◆ decodes
| ReadRPCRun2DataFile.Mioct.decodes = None |
◆ id
| ReadRPCRun2DataFile.Mioct.id = id |
◆ sectordic
| ReadRPCRun2DataFile.Mioct.sectordic = dict([ (s.connector, s) for s in sectors ]) |
◆ sectors
| ReadRPCRun2DataFile.Mioct.sectors = copy(sectors) |
◆ slot
| ReadRPCRun2DataFile.Mioct.slot = slot |
The documentation for this class was generated from the following file: