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
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.Barrel.__str__ (   self)

Definition at line 295 of file PixelMapPlotter.py.

References SiPixelErrorEstimation.ladder, PixelMapPlotter.Barrel.ladder, HcalParameters::LayerItem.layer, ChamberLocationSpec.layer, reco::PixelClusterProperties.layer, TmCcu.layer, TrackerTreeVariables.layer, CSCBadStrips::BadChannel.layer, CSCBadWires::BadChannel.layer, RPCObFebAssmap::FebAssmap_Item.layer, RPCObGasmap::GasMap_Item.layer, RPCObPVSSmap::Item.layer, TmModule.layer, TkOffTreeVariables.layer, GeometryBranch.layer, cscdqm::AddressMask.layer, cscdqm::Address.layer, SiPixelErrorEstimation.layer, PixelMapPlotter.Barrel.layer, l1t::EMTFHit.layer, TrackerTreeVariables.module, PixelToFEDAssociate::DetectorRocId.module, ShallowClustersProducer::moduleVars.module, edm::ErrorSummaryEntry.module, TkOffTreeVariables.module, PixelMapPlotter.Barrel.module, PixelMapPlotter.Barrel.part, ChamberLocationSpec.sector, RPCObFebAssmap::FebAssmap_Item.sector, RPCObGasmap::GasMap_Item.sector, PPSTimingCalibrationLUT::Key.sector, RPCObPVSSmap::Item.sector, CSCMapItem::MapItem.sector, l1t::EMTFRoad.sector, DTSurveyChamber.sector, L1MuDTChambThDigi.sector, L1MuDTChambPhDigi.sector, L1MuDTTrackCand.sector, MuonResidualsFitter::MuonAlignmentTreeRow.sector, l1t::emtf::EventHeader.sector, HcalLogicalMapGenerator.sector, l1t::EMTFTrack.sector, PixelMapPlotter.Barrel.sector, l1t::EMTFHit.sector, and str.

Referenced by edmStreamStallGrapher.Point.__repr__().

295  def __str__(self):
296  return str([self.part, self.sector, self.layer, self.ladder, self.module])
#define str(s)

◆ convertParts()

def PixelMapPlotter.Barrel.convertParts (   self)

Definition at line 297 of file PixelMapPlotter.py.

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, and PixelMapPlotter.Barrel.part.

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

◆ GetXYCoords()

def PixelMapPlotter.Barrel.GetXYCoords (   self)

Definition at line 302 of file PixelMapPlotter.py.

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.

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 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

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