CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
PixelMapPlotter.Barrel Class Reference

Public Member Functions

def __init__
 
def __str__
 
def convertParts
 
def GetXYCoords
 

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.

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

Member Function Documentation

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, 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, RPCObPVSSmap::Item.sector, CSCMapItem::MapItem.sector, ApeOverview.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__().

296  def __str__(self):
return str([self.part, self.sector, self.layer, self.ladder, self.module])
#define str(s)
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.

298  def convertParts(self):
299  if not self.isCoverted:
300  self.ladder = -self.ladder if self.part % 2 else self.ladder
301  self.module = -self.module if self.part <= 2 else self.module
isConverted = True
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.

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

Member Data Documentation

PixelMapPlotter.Barrel.isCoverted

Definition at line 293 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.convertParts(), and PixelMapPlotter.Forward.convertParts().

PixelMapPlotter.Barrel.ladder

Definition at line 290 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.__str__(), PixelMapPlotter.Barrel.convertParts(), and PixelMapPlotter.Barrel.GetXYCoords().

PixelMapPlotter.Barrel.layer

Definition at line 289 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.__str__(), geometryXMLparser.DTAlignable.index(), and geometryXMLparser.CSCAlignable.index().

PixelMapPlotter.Barrel.module

Definition at line 291 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.__str__(), PixelMapPlotter.Barrel.convertParts(), PixelMapPlotter.Barrel.GetXYCoords(), and TreeCrawler.Package.search().

PixelMapPlotter.Barrel.part

Definition at line 287 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.__str__(), PixelMapPlotter.Forward.__str__(), PixelMapPlotter.Barrel.convertParts(), and PixelMapPlotter.Forward.convertParts().

PixelMapPlotter.Barrel.reason

Definition at line 294 of file PixelMapPlotter.py.

PixelMapPlotter.Barrel.roc

Definition at line 292 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.GetXYCoords(), and PixelMapPlotter.Forward.GetXYCoords().

PixelMapPlotter.Barrel.sector

Definition at line 288 of file PixelMapPlotter.py.

Referenced by PixelMapPlotter.Barrel.__str__(), and geometryXMLparser.DTAlignable.index().