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

Public Member Functions

def __init__ (self, name, connector, rois=[])
 
def addROI (self, roi)
 
def isBarrel (self)
 
def getStats (self, stats)
 
def asXML (self, depth)
 

Public Attributes

 name
 
 connector
 
 id
 
 rois
 

Detailed Description

Definition at line 40 of file ReadRPCRun2DataFile.py.

Constructor & Destructor Documentation

◆ __init__()

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

def ReadRPCRun2DataFile.Sector.addROI (   self,
  roi 
)

Definition at line 46 of file ReadRPCRun2DataFile.py.

46  def addROI(self,roi):
47  self.rois += [ 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"
61  return s
62 
63 

◆ getStats()

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

def 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

Definition at line 43 of file ReadRPCRun2DataFile.py.

◆ id

ReadRPCRun2DataFile.Sector.id

Definition at line 44 of file ReadRPCRun2DataFile.py.

◆ name

ReadRPCRun2DataFile.Sector.name

Definition at line 42 of file ReadRPCRun2DataFile.py.

◆ rois

ReadRPCRun2DataFile.Sector.rois

Definition at line 45 of file ReadRPCRun2DataFile.py.


The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
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.
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.LArCondContChannels.isBarrel
isBarrel
Definition: LArCondContChannels.py:659
calibdata.copy
bool copy
Definition: calibdata.py:27