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

◆ __init__()

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, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __str__()

def PixelMapPlotter.Forward.__str__ (   self)

◆ convertParts()

def PixelMapPlotter.Forward.convertParts (   self)

Definition at line 345 of file PixelMapPlotter.py.

References TrackerTreeVariables.blade, TkOffTreeVariables.blade, SiPixelErrorEstimation.blade, PixelMapPlotter.Forward.blade, GEMEfficiencyAnalyzer::GEMLayer.disk, SiPixelErrorEstimation.disk, PixelMapPlotter.Forward.disk, PixelMapPlotter.Barrel.isCoverted, PixelMapPlotter.Forward.isCoverted, PixelMapPlotter.Barrel.part, and PixelMapPlotter.Forward.part.

345  def convertParts(self):
346  if not self.isCoverted:
347  self.blade = -self.blade if self.part % 2 else self.blade
348  self.disk = -self.disk if self.part <= 2 else self.disk
349  self.isCoverted = True

◆ GetXYCoords()

def PixelMapPlotter.Forward.GetXYCoords (   self)

Definition at line 350 of file PixelMapPlotter.py.

References TrackerTreeVariables.blade, TkOffTreeVariables.blade, SiPixelErrorEstimation.blade, PixelMapPlotter.Forward.blade, GEMEfficiencyAnalyzer::GEMLayer.disk, SiPixelErrorEstimation.disk, PixelMapPlotter.Forward.disk, TrackerTreeVariables.panel, TkOffTreeVariables.panel, SiPixelErrorEstimation.panel, PixelMapPlotter.Forward.panel, sipixelobjects::CablingPathToDetUnit.roc, sipixelobjects::ElectronicIndex.roc, SiPixelROCsStatusAndMapping.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

◆ blade

PixelMapPlotter.Forward.blade

◆ disk

PixelMapPlotter.Forward.disk

◆ isCoverted

PixelMapPlotter.Forward.isCoverted

Definition at line 342 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Forward.convertParts().

◆ panel

PixelMapPlotter.Forward.panel

◆ part

PixelMapPlotter.Forward.part

◆ reason

PixelMapPlotter.Forward.reason

Definition at line 341 of file PixelMapPlotter.py.

◆ ring

PixelMapPlotter.Forward.ring

◆ roc

PixelMapPlotter.Forward.roc

Definition at line 340 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Forward.GetXYCoords().