ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
generateMioctEncodingFile.Entry Class Reference
Collaboration diagram for generateMioctEncodingFile.Entry:

Public Member Functions

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)
 

Public Attributes

 hemisphere
 
 sectorid
 
 roi
 
 etamin
 
 etamax
 
 phimin
 
 phimax
 
 eta
 
 phi
 
 slot
 
 connector
 
 sectorname
 
 mioct
 
 etacode
 
 phicode
 

Detailed Description

Represents a single input ROI (one line in the .dat file)

Definition at line 17 of file generateMioctEncodingFile.py.

Constructor & Destructor Documentation

◆ __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)
23  self.roi = int(roi)
24  self.etamin = float(etamin)
25  self.etamax = float(etamax)
26  self.phimin = float(phimin)
27  self.phimax = float(phimax)
28  self.eta = float(eta)
29  self.phi = float(phi)
30  self.slot = int(slot)
31  self.connector = int(connector)
32  self.sectorname = sectorname
33  self.mioct = int(mioct)
34  self.etacode = etacode
35  self.phicode = phicode
36 
37  global shiftPhi
38  if shiftPhi:
39  # make sure to have everything between 0 and 2*PI
40  if max(self.phimin, self.phimax) < 0:
41  self.phimin += 2 * PI
42  self.phimax += 2 * PI
43  self.phi += 2 * PI
44 
45 
46  if self.phimin * self.phimax < -1:
47  print("WARNING %s" % str(self))
48 
49 

Member Function Documentation

◆ __repr__()

def generateMioctEncodingFile.Entry.__repr__ (   self)

Definition at line 53 of file generateMioctEncodingFile.py.

53  def __repr__(self):
54  return self.__str__()
55 
56 
57 
58 #def keyfunc(t):
59 # return (t.mioct, t.connector)
60 
61 
62 

◆ __str__()

def generateMioctEncodingFile.Entry.__str__ (   self)

Definition at line 50 of file generateMioctEncodingFile.py.

50  def __str__(self):
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)
52 

Member Data Documentation

◆ connector

generateMioctEncodingFile.Entry.connector

Definition at line 31 of file generateMioctEncodingFile.py.

◆ eta

generateMioctEncodingFile.Entry.eta

Definition at line 28 of file generateMioctEncodingFile.py.

◆ etacode

generateMioctEncodingFile.Entry.etacode

Definition at line 34 of file generateMioctEncodingFile.py.

◆ etamax

generateMioctEncodingFile.Entry.etamax

Definition at line 25 of file generateMioctEncodingFile.py.

◆ etamin

generateMioctEncodingFile.Entry.etamin

Definition at line 24 of file generateMioctEncodingFile.py.

◆ hemisphere

generateMioctEncodingFile.Entry.hemisphere

Definition at line 21 of file generateMioctEncodingFile.py.

◆ mioct

generateMioctEncodingFile.Entry.mioct

Definition at line 33 of file generateMioctEncodingFile.py.

◆ phi

generateMioctEncodingFile.Entry.phi

Definition at line 29 of file generateMioctEncodingFile.py.

◆ phicode

generateMioctEncodingFile.Entry.phicode

Definition at line 35 of file generateMioctEncodingFile.py.

◆ phimax

generateMioctEncodingFile.Entry.phimax

Definition at line 27 of file generateMioctEncodingFile.py.

◆ phimin

generateMioctEncodingFile.Entry.phimin

Definition at line 26 of file generateMioctEncodingFile.py.

◆ roi

generateMioctEncodingFile.Entry.roi

Definition at line 23 of file generateMioctEncodingFile.py.

◆ sectorid

generateMioctEncodingFile.Entry.sectorid

Definition at line 22 of file generateMioctEncodingFile.py.

◆ sectorname

generateMioctEncodingFile.Entry.sectorname

Definition at line 32 of file generateMioctEncodingFile.py.

◆ slot

generateMioctEncodingFile.Entry.slot

Definition at line 30 of file generateMioctEncodingFile.py.


The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11
readCCLHist.float
float
Definition: readCCLHist.py:83