ATLAS Offline Software
Loading...
Searching...
No Matches
ReadRPCRun2DataFile.Mioct Class Reference
Inheritance diagram for ReadRPCRun2DataFile.Mioct:
Collaboration diagram for ReadRPCRun2DataFile.Mioct:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, id, slot, sectors=[])
 getSector (self, connector)
 addSector (self, sector)
 getStats (self, stats)
 asXML (self, depth)
 fillTopoCells (self)

Public Attributes

 id = id
 slot = slot
 sectors = copy(sectors)
 sectordic = dict([ (s.connector, s) for s in sectors ])
 decodes = None

Detailed Description

Definition at line 197 of file ReadRPCRun2DataFile.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __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

Member Function Documentation

◆ 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 # add all ROIs in this MIOCT
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?)
Definition hcg.cxx:130

◆ 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)

Member Data Documentation

◆ decodes

ReadRPCRun2DataFile.Mioct.decodes = None

Definition at line 203 of file ReadRPCRun2DataFile.py.

◆ id

ReadRPCRun2DataFile.Mioct.id = id

Definition at line 199 of file ReadRPCRun2DataFile.py.

◆ sectordic

ReadRPCRun2DataFile.Mioct.sectordic = dict([ (s.connector, s) for s in sectors ])

Definition at line 202 of file ReadRPCRun2DataFile.py.

◆ sectors

ReadRPCRun2DataFile.Mioct.sectors = copy(sectors)

Definition at line 201 of file ReadRPCRun2DataFile.py.

◆ slot

ReadRPCRun2DataFile.Mioct.slot = slot

Definition at line 200 of file ReadRPCRun2DataFile.py.


The documentation for this class was generated from the following file: