|
def | __init__ (self, subsystid, sectorid, roi, etamin, etamax, phimin, phimax, eta, phi, slot, connector, sectorname, mioct, sectoraddress, etacode, phicode) |
|
def | __str__ (self) |
|
def | __repr__ (self) |
|
Represents a single input ROI (one line in the .dat file)
Definition at line 17 of file generateMioctEncodingFile.py.
◆ __init__()
def generateMioctEncodingFile.Entry.__init__ |
( |
|
self, |
|
|
|
subsystid, |
|
|
|
sectorid, |
|
|
|
roi, |
|
|
|
etamin, |
|
|
|
etamax, |
|
|
|
phimin, |
|
|
|
phimax, |
|
|
|
eta, |
|
|
|
phi, |
|
|
|
slot, |
|
|
|
connector, |
|
|
|
sectorname, |
|
|
|
mioct, |
|
|
|
sectoraddress, |
|
|
|
etacode, |
|
|
|
phicode |
|
) |
| |
Definition at line 20 of file generateMioctEncodingFile.py.
20 def __init__(self, subsystid, sectorid, roi, etamin, etamax, phimin, phimax, eta, phi, slot, connector, sectorname, mioct, sectoraddress, etacode, phicode):
21 self.hemisphere =
"A" if subsystid==
"0" else "C"
22 self.sectorid =
int(sectorid)
24 self.etamin =
float(etamin)
25 self.etamax =
float(etamax)
26 self.phimin =
float(phimin)
27 self.phimax =
float(phimax)
31 self.connector =
int(connector)
32 self.sectorname = sectorname
33 self.mioct =
int(mioct)
34 self.etacode = etacode
35 self.phicode = phicode
40 if max(self.phimin, self.phimax) < 0:
46 if self.phimin * self.phimax < -1:
◆ __repr__()
def generateMioctEncodingFile.Entry.__repr__ |
( |
|
self | ) |
|
◆ __str__()
def generateMioctEncodingFile.Entry.__str__ |
( |
|
self | ) |
|
Definition at line 50 of file generateMioctEncodingFile.py.
51 return "mioct=%i (slot %i), sector=%i, roi=%i, eta=%f, phi=%f, conn=%i, %s" % (self.mioct, self.slot, self.sectorid, self.roi, self.eta, self.phi, self.connector, self.sectorname)
◆ connector
generateMioctEncodingFile.Entry.connector |
◆ eta
generateMioctEncodingFile.Entry.eta |
◆ etacode
generateMioctEncodingFile.Entry.etacode |
◆ etamax
generateMioctEncodingFile.Entry.etamax |
◆ etamin
generateMioctEncodingFile.Entry.etamin |
◆ hemisphere
generateMioctEncodingFile.Entry.hemisphere |
◆ mioct
generateMioctEncodingFile.Entry.mioct |
◆ phi
generateMioctEncodingFile.Entry.phi |
◆ phicode
generateMioctEncodingFile.Entry.phicode |
◆ phimax
generateMioctEncodingFile.Entry.phimax |
◆ phimin
generateMioctEncodingFile.Entry.phimin |
◆ roi
generateMioctEncodingFile.Entry.roi |
◆ sectorid
generateMioctEncodingFile.Entry.sectorid |
◆ sectorname
generateMioctEncodingFile.Entry.sectorname |
◆ slot
generateMioctEncodingFile.Entry.slot |
The documentation for this class was generated from the following file: