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

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, name, connector, rois=[])
 addROI (self, roi)
 isBarrel (self)
 getStats (self, stats)
 asXML (self, depth)

Public Attributes

 name = name
 connector = connector
 id = int(name.lstrip('BECFA'))
 rois = copy(rois)

Detailed Description

Definition at line 40 of file ReadRPCRun2DataFile.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

ReadRPCRun2DataFile.Sector.__init__ ( self,
name,
connector,
rois = [] )

Definition at line 41 of file ReadRPCRun2DataFile.py.

41 def __init__(self, name, connector, rois=[]):
42 self.name = name
43 self.connector = connector
44 self.id = int(name.lstrip('BECFA'))
45 self.rois = copy(rois)

Member Function Documentation

◆ addROI()

ReadRPCRun2DataFile.Sector.addROI ( self,
roi )

Definition at line 46 of file ReadRPCRun2DataFile.py.

46 def addROI(self,roi):
47 self.rois += [ roi ]

◆ asXML()

ReadRPCRun2DataFile.Sector.asXML ( self,
depth )

Definition at line 54 of file ReadRPCRun2DataFile.py.

54 def asXML(self, depth):
55 s = ' '*depth + '<Sector connector="%s" name="%s">\n' % (self.connector, self.name)
56 s += ' '*depth + ' <!-- contains %i ROIs -->\n' % len(self.rois)
57 s += ' '*depth + ' <!-- mapping from ROI to coding scheme -->\n'
58 for roi in sorted(self.rois, key=lambda roi: int(roi.roiid)):
59 s += roi.asXML(depth + 4 )
60 s += ' '*depth + "</Sector>\n"
61 return s
62
63

◆ getStats()

ReadRPCRun2DataFile.Sector.getStats ( self,
stats )

Definition at line 50 of file ReadRPCRun2DataFile.py.

50 def getStats(self,stats):
51 stats['rois'] += len(self.rois)
52 for roi in self.rois:
53 roi.getStats(stats)

◆ isBarrel()

ReadRPCRun2DataFile.Sector.isBarrel ( self)

Definition at line 48 of file ReadRPCRun2DataFile.py.

48 def isBarrel(self):
49 return self.name.startswith('B')

Member Data Documentation

◆ connector

ReadRPCRun2DataFile.Sector.connector = connector

Definition at line 43 of file ReadRPCRun2DataFile.py.

◆ id

ReadRPCRun2DataFile.Sector.id = int(name.lstrip('BECFA'))

Definition at line 44 of file ReadRPCRun2DataFile.py.

◆ name

ReadRPCRun2DataFile.Sector.name = name

Definition at line 42 of file ReadRPCRun2DataFile.py.

◆ rois

ReadRPCRun2DataFile.Sector.rois = copy(rois)

Definition at line 45 of file ReadRPCRun2DataFile.py.


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