CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, part, sector, layer, ladder, module, roc, reason="unknown")
 
def __str__ (self)
 
def convertParts (self)
 
def GetXYCoords (self)
 

Public Attributes

 isCoverted
 
 ladder
 
 layer
 
 module
 
 part
 
 reason
 
 roc
 
 sector
 

Detailed Description

Definition at line 285 of file PixelMapPlotter.py.

Constructor & Destructor Documentation

◆ __init__()

def PixelMapPlotter.Barrel.__init__ (   self,
  part,
  sector,
  layer,
  ladder,
  module,
  roc,
  reason = "unknown" 
)

Definition at line 286 of file PixelMapPlotter.py.

286  def __init__ (self, part, sector, layer, ladder, module, roc, reason="unknown"):
287  self.part = part
288  self.sector = sector
289  self.layer = layer
290  self.ladder = ladder
291  self.module = module
292  self.roc = roc
293  self.isCoverted = False
294  self.reason = reason

Member Function Documentation

◆ __str__()

def PixelMapPlotter.Barrel.__str__ (   self)

◆ convertParts()

def PixelMapPlotter.Barrel.convertParts (   self)

Definition at line 297 of file PixelMapPlotter.py.

297  def convertParts(self):
298  if not self.isCoverted:
299  self.ladder = -self.ladder if self.part % 2 else self.ladder
300  self.module = -self.module if self.part <= 2 else self.module
301  isConverted = True

References PixelMapPlotter.Barrel.isCoverted, SiPixelErrorEstimation.ladder, PixelMapPlotter.Barrel.ladder, TrackerTreeVariables.module, PixelToFEDAssociate::DetectorRocId.module, ShallowClustersProducer::moduleVars.module, edm::ErrorSummaryEntry.module, TkOffTreeVariables.module, PixelMapPlotter.Barrel.module, TMCReader.part, and PixelMapPlotter.Barrel.part.

◆ GetXYCoords()

def PixelMapPlotter.Barrel.GetXYCoords (   self)

Definition at line 302 of file PixelMapPlotter.py.

302  def GetXYCoords(self):
303 
304  xBase = -0.625 + ((maxRocIdx - self.roc if self.roc >= rocsInRow else self.roc) + 1) * rocXLen
305 
306  flipY = False
307  if self.module < 0:
308  if self.ladder < 0:
309  if abs(self.ladder) % 2:
310  flipY = True
311  else:
312  if self.ladder % 2 == 0:
313  flipY = True
314  else:
315  if self.ladder < 0:
316  if abs(self.ladder) % 2 == 0:
317  flipY = True
318  else:
319  if self.ladder % 2:
320  flipY = True
321 
322  tmpRoc = maxRocIdx - self.roc if flipY else self.roc;
323 
324  yBase = -0.5 * (tmpRoc // rocsInRow)
325 
326  x = self.module + (xBase if self.module < 0 else -xBase - rocXLen)
327  y = self.ladder + yBase
328 
329  #print("roc=%d\t: (%f;%f)"%(self.roc, x, y))
330 
331  return x, y
332 

References funct.abs(), SiPixelErrorEstimation.ladder, PixelMapPlotter.Barrel.ladder, TrackerTreeVariables.module, PixelToFEDAssociate::DetectorRocId.module, ShallowClustersProducer::moduleVars.module, edm::ErrorSummaryEntry.module, TkOffTreeVariables.module, PixelMapPlotter.Barrel.module, sipixelobjects::CablingPathToDetUnit.roc, sipixelobjects::ElectronicIndex.roc, SiPixelROCsStatusAndMapping.roc, CTPPSPixelROCInfo.roc, SiPixelFedCablingMap::Key.roc, and PixelMapPlotter.Barrel.roc.

Member Data Documentation

◆ isCoverted

PixelMapPlotter.Barrel.isCoverted

◆ ladder

PixelMapPlotter.Barrel.ladder

◆ layer

PixelMapPlotter.Barrel.layer

◆ module

PixelMapPlotter.Barrel.module

◆ part

PixelMapPlotter.Barrel.part

◆ reason

PixelMapPlotter.Barrel.reason

Definition at line 294 of file PixelMapPlotter.py.

◆ roc

PixelMapPlotter.Barrel.roc

◆ sector

PixelMapPlotter.Barrel.sector
str
#define str(s)
Definition: TestProcessor.cc:53
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22