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

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, part, sector, layer, ladder, module, roc, reason="unknown")

Member Function Documentation

def PixelMapPlotter.Barrel.__str__ (   self)

Definition at line 295 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 302 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.

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

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

Definition at line 294 of file PixelMapPlotter.py.

PixelMapPlotter.Barrel.roc
PixelMapPlotter.Barrel.sector