ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
ReadRPCRun2DataFile.Mioct Class Reference
Inheritance diagram for ReadRPCRun2DataFile.Mioct:
Collaboration diagram for ReadRPCRun2DataFile.Mioct:

Public Member Functions

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

Public Attributes

 id
 
 slot
 
 sectors
 
 sectordic
 
 decodes
 

Detailed Description

Definition at line 197 of file ReadRPCRun2DataFile.py.

Constructor & Destructor Documentation

◆ __init__()

def 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()

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
211  return 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)
224  if self.decodes:
225  s += self.decodes.asXML(depth + 4)
226  s += ' '*depth + "</MIOCT>"
227  return s

◆ fillTopoCells()

def 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()

def ReadRPCRun2DataFile.Mioct.getSector (   self,
  connector 
)

Definition at line 204 of file ReadRPCRun2DataFile.py.

204  def getSector(self,connector):
205  return self.sectordic.get(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)
216  if self.decodes:
217  self.decodes.getStats(stats)

Member Data Documentation

◆ decodes

ReadRPCRun2DataFile.Mioct.decodes

Definition at line 203 of file ReadRPCRun2DataFile.py.

◆ id

ReadRPCRun2DataFile.Mioct.id

Definition at line 199 of file ReadRPCRun2DataFile.py.

◆ sectordic

ReadRPCRun2DataFile.Mioct.sectordic

Definition at line 202 of file ReadRPCRun2DataFile.py.

◆ sectors

ReadRPCRun2DataFile.Mioct.sectors

Definition at line 201 of file ReadRPCRun2DataFile.py.

◆ slot

ReadRPCRun2DataFile.Mioct.slot

Definition at line 200 of file ReadRPCRun2DataFile.py.


The documentation for this class was generated from the following file:
cscHashToHuman.getSector
def getSector(phi, tech)
Definition: cscHashToHuman.py:19
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127
calibdata.copy
bool copy
Definition: calibdata.py:27