Definition at line 40 of file ReadRPCRun2DataFile.py.
◆ __init__()
def ReadRPCRun2DataFile.Sector.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
connector, |
|
|
|
rois = [] |
|
) |
| |
Definition at line 41 of file ReadRPCRun2DataFile.py.
41 def __init__(self, name, connector, rois=[]):
43 self.connector = connector
44 self.id =
int(name.lstrip(
'BECFA'))
45 self.rois =
copy(rois)
◆ addROI()
def ReadRPCRun2DataFile.Sector.addROI |
( |
|
self, |
|
|
|
roi |
|
) |
| |
◆ asXML()
def 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"
◆ getStats()
def ReadRPCRun2DataFile.Sector.getStats |
( |
|
self, |
|
|
|
stats |
|
) |
| |
◆ isBarrel()
def ReadRPCRun2DataFile.Sector.isBarrel |
( |
|
self | ) |
|
◆ connector
ReadRPCRun2DataFile.Sector.connector |
◆ id
ReadRPCRun2DataFile.Sector.id |
◆ name
ReadRPCRun2DataFile.Sector.name |
◆ rois
ReadRPCRun2DataFile.Sector.rois |
The documentation for this class was generated from the following file: