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 332 of file PixelMapPlotter.py.

Constructor & Destructor Documentation

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

Definition at line 333 of file PixelMapPlotter.py.

333  def __init__ (self, part, disk, blade, panel, ring, roc, reason="unknown"):
334  self.part = part
335  self.disk = disk
336  self.blade = blade
337  self.panel = panel
338  self.ring = ring
339  self.roc = roc
340  self.reason = reason
341  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 349 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::ElectronicIndex.roc, sipixelobjects::CablingPathToDetUnit.roc, CTPPSPixelROCInfo.roc, SiPixelFedCablingMap::Key.roc, PixelMapPlotter.Barrel.roc, and PixelMapPlotter.Forward.roc.

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

Member Data Documentation

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

Definition at line 341 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Forward.convertParts().

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

Definition at line 340 of file PixelMapPlotter.py.

PixelMapPlotter.Forward.ring
PixelMapPlotter.Forward.roc

Definition at line 339 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Forward.GetXYCoords().