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

Constructor & Destructor Documentation

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

Definition at line 285 of file PixelMapPlotter.py.

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

Member Function Documentation

def PixelMapPlotter.Barrel.__str__ (   self)

Definition at line 294 of file PixelMapPlotter.py.

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

Referenced by edmStreamStallGrapher.Point.__repr__().

def PixelMapPlotter.Barrel.convertParts (   self)
def PixelMapPlotter.Barrel.GetXYCoords (   self)

Definition at line 301 of file PixelMapPlotter.py.

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

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

Member Data Documentation

PixelMapPlotter.Barrel.isCoverted
PixelMapPlotter.Barrel.ladder
PixelMapPlotter.Barrel.layer
PixelMapPlotter.Barrel.module
PixelMapPlotter.Barrel.part
PixelMapPlotter.Barrel.reason

Definition at line 293 of file PixelMapPlotter.py.

PixelMapPlotter.Barrel.roc
PixelMapPlotter.Barrel.sector