CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PixelMapPlotter.Forward Class Reference

Public Member Functions

def __init__ (self, part, disk, blade, panel, ring, roc, reason="unknown")
 
def __str__ (self)
 
def convertParts (self)
 
def GetXYCoords (self)
 

Public Attributes

 blade
 
 disk
 
 isCoverted
 
 panel
 
 part
 
 reason
 
 ring
 
 roc
 

Detailed Description

Definition at line 333 of file PixelMapPlotter.py.

Constructor & Destructor Documentation

def PixelMapPlotter.Forward.__init__ (   self,
  part,
  disk,
  blade,
  panel,
  ring,
  roc,
  reason = "unknown" 
)

Definition at line 334 of file PixelMapPlotter.py.

334  def __init__ (self, part, disk, blade, panel, ring, roc, reason="unknown"):
335  self.part = part
336  self.disk = disk
337  self.blade = blade
338  self.panel = panel
339  self.ring = ring
340  self.roc = roc
341  self.reason = reason
342  self.isCoverted = False
def __init__(self, part, disk, blade, panel, ring, roc, reason="unknown")

Member Function Documentation

def PixelMapPlotter.Forward.__str__ (   self)
def PixelMapPlotter.Forward.convertParts (   self)
def PixelMapPlotter.Forward.GetXYCoords (   self)

Definition at line 350 of file PixelMapPlotter.py.

References TrackerTreeVariables.blade, TkOffTreeVariables.blade, SiPixelErrorEstimation.blade, PixelMapPlotter.Forward.blade, SiPixelErrorEstimation.disk, PixelMapPlotter.Forward.disk, TrackerTreeVariables.panel, TkOffTreeVariables.panel, SiPixelErrorEstimation.panel, PixelMapPlotter.Forward.panel, sipixelobjects::CablingPathToDetUnit.roc, sipixelobjects::ElectronicIndex.roc, CTPPSPixelROCInfo.roc, SiPixelFedCablingMap::Key.roc, PixelMapPlotter.Barrel.roc, and PixelMapPlotter.Forward.roc.

350  def GetXYCoords(self):
351 
352  xBase = -0.625 + ((maxRocIdx - self.roc if self.roc >= rocsInRow else self.roc) + 1) * rocXLen
353 
354  x = self.disk + (xBase if self.disk < 0 else -xBase - rocXLen)
355 
356  flipY = (self.panel == 2 if self.disk < 0 else self.panel == 1)
357 
358  tmpRoc = maxRocIdx - self.roc if flipY else self.roc;
359 
360  yBase = -0.25 - 0.25 * (tmpRoc // rocsInRow) + 0.5 * (self.panel - 1)
361 
362  y = self.blade + yBase
363 
364  # print("roc=%d\t: (%f;%f)"%(self.roc, x, y))
365  return x, y
366 

Member Data Documentation

PixelMapPlotter.Forward.blade
PixelMapPlotter.Forward.disk
PixelMapPlotter.Forward.isCoverted

Definition at line 342 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Forward.convertParts().

PixelMapPlotter.Forward.panel
PixelMapPlotter.Forward.part
PixelMapPlotter.Forward.reason

Definition at line 341 of file PixelMapPlotter.py.

PixelMapPlotter.Forward.ring
PixelMapPlotter.Forward.roc

Definition at line 340 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Forward.GetXYCoords().