CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
PixelMapPlotter Namespace Reference

Classes

class  Barrel
 
class  Forward
 
class  HistogramManager
 GLOBAL VARS. More...
 

Functions

def GetAffectedRocs
 
def GetOnlineBarrelCharacteristics
 
def GetOnlineForwardCharacteristics
 
def TranslatePartString
 
def TranslateReasonStringBPix
 
def TranslateReasonStringFPix
 

Variables

tuple barrelObj = GetOnlineBarrelCharacteristics(detElements, roc, reason)
 
list barrelObjs = []
 
 colorCoded = False
 
list detElements = inputs[0]
 
tuple forwardObj = GetOnlineForwardCharacteristics(detElements, roc, reason)
 
list forwardObjs = []
 
tuple histMan = HistogramManager()
 
int i = 1
 
string inputFileName = "input.dat"
 
tuple inputs = item.split(" ")
 
int maxOnlineDisk = 3
 
int maxOnlineModule = 4
 
int maxRocIdx = rocsInCol*rocsInRow-1
 
list onlineMaxBlade = [11, 17]
 
list onlineMaxLadder = [6, 14, 22, 32]
 
 pixelAlive = False
 
tuple reason = str(inputs[2])
 
tuple roc = GetAffectedRocs(inputs[1])
 
list rocs = []
 
int rocsInCol = 2
 GLOBAL VARS. More...
 
int rocsInRow = 8
 
float rocXLen = 1.0
 
 useFileSuffix = False
 
 useNumberAsPartName = False
 

Function Documentation

def PixelMapPlotter.GetAffectedRocs (   rocString)

Definition at line 440 of file PixelMapPlotter.py.

References sistrip::SpyUtilities.range(), and str.

441 def GetAffectedRocs(rocString):
442 
443  rocString = str(rocString)
444  iComma=rocString.find(",")
445  listOfRocs = []
446 
447  if iComma!=-1:
448  listOfRocs.extend(GetAffectedRocs(rocString[0:iComma]))
449  listOfRocs.extend(GetAffectedRocs(rocString[iComma+1:len(rocString)]))
450  else:
451  iHyphen=rocString.find("-")
452  if iHyphen!=-1:
453  start=int(rocString[0:iHyphen])
454  end=int(rocString[iHyphen+1:len(rocString)])+1
455  listOfRocs.extend(range(start,end))
456  else:
457  return [int(rocString)]
458 
459  return listOfRocs
460 
461 
const uint16_t range(const Frame &aFrame)
#define str(s)
def PixelMapPlotter.GetOnlineBarrelCharacteristics (   detElements,
  roc,
  reason = "unknown" 
)

Definition at line 416 of file PixelMapPlotter.py.

References TranslatePartString().

417 def GetOnlineBarrelCharacteristics(detElements, roc, reason="unknown"):
418  onlinePart = int(detElements[1][1:]) if useNumberAsPartName else TranslatePartString(detElements[1][1:])
419  onlineSector = int(detElements[2][3:])
420  onlineLayer = int(detElements[3][3:])
421 
422  if detElements[4][-1] == "H" or detElements[4][-1] == "F":
423  onlineLadder = int(detElements[4][3:-1])
424  else:
425  onlineLadder = int(detElements[4][3:])
426 
427  onlineModule = int(detElements[5][3:])
428 
429  return Barrel(*[onlinePart, onlineSector, onlineLayer, onlineLadder, onlineModule, roc, reason])
def GetOnlineBarrelCharacteristics
def PixelMapPlotter.GetOnlineForwardCharacteristics (   detElements,
  roc,
  reason = "unknown" 
)

Definition at line 430 of file PixelMapPlotter.py.

References TranslatePartString().

431 def GetOnlineForwardCharacteristics(detElements, roc, reason="unknown"):
432  onlinePart = int(detElements[1][1:]) if useNumberAsPartName else TranslatePartString(detElements[1][1:])
433  onlineDisk = int(detElements[2][1:])
434  onlineBlade = int(detElements[3][3:])
435  onlinePanel = int(detElements[4][3:])
436  onlineRing = int(detElements[5][3:])
437 
438  return Forward(*[onlinePart, onlineDisk, onlineBlade, onlinePanel, onlineRing, roc, reason])
439 
def GetOnlineForwardCharacteristics
def PixelMapPlotter.TranslatePartString (   thePartStr)

Definition at line 367 of file PixelMapPlotter.py.

References print().

Referenced by GetOnlineBarrelCharacteristics(), and GetOnlineForwardCharacteristics().

368 def TranslatePartString(thePartStr):
369  if thePartStr == "mO":
370  return 1
371  elif thePartStr == "mI":
372  return 2
373  elif thePartStr == "pO":
374  return 3
375  elif thePartStr == "pI":
376  return 4
377  else:
378  print("Unrecognized part <%s>, the script is likely to crash..." % (thePartStr))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def PixelMapPlotter.TranslateReasonStringBPix (   theReasonStr)

Definition at line 379 of file PixelMapPlotter.py.

References print().

Referenced by PixelMapPlotter.HistogramManager.fillHistograms().

380 def TranslateReasonStringBPix(theReasonStr):
381  if theReasonStr == "unknown":
382  return 1
383  elif theReasonStr == "notprogrammable":
384  return 1
385  elif theReasonStr == "vcthr":
386  return 2
387  elif theReasonStr == "pixelalive":
388  return 2
389  elif theReasonStr == "iana":
390  return 2
391  elif theReasonStr == "calib":
392  return 2
393  elif theReasonStr== "fedphases":
394  return 4
395  elif theReasonStr == "tbmdelay":
396  return 1
397  elif theReasonStr == "power":
398  return 5
399  else:
400  return 1
401  print("Unrecognized part <%s>, the script is likely to crash..." % (theReasonStr))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def PixelMapPlotter.TranslateReasonStringFPix (   theReasonStr)

Definition at line 402 of file PixelMapPlotter.py.

References print().

Referenced by PixelMapPlotter.HistogramManager.fillHistograms().

403 def TranslateReasonStringFPix(theReasonStr):
404  if theReasonStr == "flaky":
405  return 1
406  elif theReasonStr == "power": #check github for the real reason
407  return 5
408  elif theReasonStr == "tbmdelay": #
409  return 1
410  elif theReasonStr == "unknown":
411  return 2
412  else:
413  return 2
414  print("Unrecognized part <%s>, the script is likely to crash..." % (theReasonStr))
415 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

tuple PixelMapPlotter.barrelObj = GetOnlineBarrelCharacteristics(detElements, roc, reason)

Definition at line 515 of file PixelMapPlotter.py.

list PixelMapPlotter.barrelObjs = []

Definition at line 465 of file PixelMapPlotter.py.

PixelMapPlotter.colorCoded = False

Definition at line 33 of file PixelMapPlotter.py.

list PixelMapPlotter.detElements = inputs[0]

Definition at line 494 of file PixelMapPlotter.py.

tuple PixelMapPlotter.forwardObj = GetOnlineForwardCharacteristics(detElements, roc, reason)

Definition at line 521 of file PixelMapPlotter.py.

list PixelMapPlotter.forwardObjs = []

Definition at line 466 of file PixelMapPlotter.py.

tuple PixelMapPlotter.histMan = HistogramManager()

Definition at line 464 of file PixelMapPlotter.py.

int PixelMapPlotter.i = 1

Definition at line 484 of file PixelMapPlotter.py.

list PixelMapPlotter.inputFileName = "input.dat"

Definition at line 30 of file PixelMapPlotter.py.

tuple PixelMapPlotter.inputs = item.split(" ")

Definition at line 490 of file PixelMapPlotter.py.

Referenced by trklet::PurgeDuplicate.addInput(), pat::CandidateSummaryTable.CandidateSummaryTable(), DeepTauId.createEgammaBlockInputs(), DeepTauId.createHadronsBlockInputs(), DeepTauId.createInputsV1(), DeepTauId.createMuonBlockInputs(), DeepTauId.createTauBlockInputs(), CandidateBoostedDoubleSecondaryVertexComputer.discriminator(), MuonTagger.discriminator(), CandidateChargeBTagComputer.discriminator(), ElectronTagger.discriminator(), CombinedMVAV2JetTagComputer.discriminator(), CharmTagger.discriminator(), HeavyIonCSVTagger.discriminator(), SiStripLorentzAngleCalibration.endOfJob(), SiPixelLorentzAngleCalibration.endOfJob(), lowptgsfeleseed::HeavyObjectCache.eval(), LowPtGsfElectronIDProducer.eval(), ElectronDNNEstimator.evaluate(), PhotonDNNEstimator.evaluate(), egammaTools::EgammaDNNHelper.evaluate(), AlCaHcalNoiseProducer.fillDescriptions(), SCRegressionCalculator< VarCalc >.getCorrection(), SCRegressionCalculator< VarCalc >.getCorrectionWithErrors(), edm::messagelogger::ELseverityLevel.getInputStr(), DeepTauId.getPredictionsV1(), egammaTools::EgammaDNNHelper.getScaledInputs(), edm::HiMixingModule.HiMixingModule(), main(), PFClusterCollectionMerger.PFClusterCollectionMerger(), Phase1L1TJetProducer.prepareInputsIntoRegions(), FixedGridRhoProducerFastjet.produce(), FixedGridRhoProducerFastjetFromRecHit.produce(), ParticleTowerProducer< T >.produce(), RechitClusterProducerT< Trait >.produce(), BaseMVAValueMapProducer< T >.produce(), and HGCalTriggerClusterIdentificationBDT.value().

int PixelMapPlotter.maxOnlineDisk = 3

Definition at line 27 of file PixelMapPlotter.py.

int PixelMapPlotter.maxOnlineModule = 4

Definition at line 26 of file PixelMapPlotter.py.

int PixelMapPlotter.maxRocIdx = rocsInCol*rocsInRow-1

Definition at line 21 of file PixelMapPlotter.py.

list PixelMapPlotter.onlineMaxBlade = [11, 17]

Definition at line 24 of file PixelMapPlotter.py.

list PixelMapPlotter.onlineMaxLadder = [6, 14, 22, 32]

Definition at line 23 of file PixelMapPlotter.py.

PixelMapPlotter.pixelAlive = False

Definition at line 34 of file PixelMapPlotter.py.

string PixelMapPlotter.reason = str(inputs[2])

Definition at line 509 of file PixelMapPlotter.py.

Referenced by dqmservices::DQMFileIterator.advanceToLumi().

tuple PixelMapPlotter.roc = GetAffectedRocs(inputs[1])

Definition at line 498 of file PixelMapPlotter.py.

Referenced by SiPixelStatusProducer.accumulate(), sipixelobjects::PixelFEDLink.addItem(), SiPixelPhase1GeometryDebug.analyze(), CTPPSPixelDQMSource.analyze(), SiPixelQualityHistory.analyze(), SiPixelQualityHistory.beginRun(), SiPixelFedCablingMap.cablingTree(), SiPixelFedCablingTree.det2fedMap(), SiPixelFedCablingTree.det2PathMap(), SiPixelStatusHarvester.dqmEndRun(), SiPixelFedCablingMap.findItem(), SiPixelFedCablingTree.findItem(), SiPixelFedCablingTree.findItemInFed(), SiPixelFrameReverter.findLinkInFed(), SiPixelFrameReverter.findPixelInRoc(), SiPixelFrameReverter.findRocInDet(), SiPixelFrameReverter.findRocInLink(), PixelSLinkDataInputSource.getEventNumberFromFillWords(), SiPixelDetectorStatus.getFEDerror25Rocs(), WriteCTPPSPixGainCalibrations.getHistos(), SiPixelROCsStatusAndMappingWrapper.getModToUnpRegionalAsync(), SiPixelBadModuleByHandBuilder.getNewObject(), HGCalTriggerGeometryV9Imp2.getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp3.getOrderedTriggerCellsFromModule(), HGCSiliconDetIdToROC.getROCNumber(), HGCalTriggerGeometryV9Imp2.getTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp3.getTriggerCellsFromModule(), HGCSiliconDetIdToROC.HGCSiliconDetIdToROC(), SiPixelTopoFinder.init(), CTPPSPixelDataFormatter.interpretRawData(), PixelDataFormatter.interpretRawData(), phase1PixelTopology.localY(), SiPixelDigiMorphing.morph(), SiPixelFedCablingMap::Key.operator<(), SiPixelFedCablingTree.pathToDetUnit(), SiPixelFedCablingTree.pathToDetUnitHasDetUnit(), pos::PixelDetectorConfig.PixelDetectorConfig(), pos::PixelMaxVsf.PixelMaxVsf(), SiPixelFedCablingMapBuilder.produce(), SiPixelDigiMorphing.produce(), SiPixelFedFillerWordEventNumber.PwordSlink64(), SiPixelDetectorStatus.readFromFile(), pos::PixelMaxVsf.setVsf(), SiPixelFedCablingMap.SiPixelFedCablingMap(), SiPixelROCsStatusAndMappingWrapper.SiPixelROCsStatusAndMappingWrapper(), SiPixelFrameReverter.toCabling(), SiPixelFrameConverter.toDetector(), SiPixelFrameConverter.toRoc(), phase1PixelTopology.toRocY(), PixelDataFormatter.unpackFEDErrors(), and MeasurementTrackerEventProducer.updatePixels().

tuple PixelMapPlotter.rocs = []

Definition at line 497 of file PixelMapPlotter.py.

Referenced by PixelToLNKAssociateFromAscii.addConnections(), WriteCTPPSPixGainCalibrations.fillDB(), PixelEndcapLinkMaker.links(), and PixelBarrelLinkMaker.links().

int PixelMapPlotter.rocsInCol = 2

GLOBAL VARS.

Definition at line 17 of file PixelMapPlotter.py.

int PixelMapPlotter.rocsInRow = 8

Definition at line 18 of file PixelMapPlotter.py.

float PixelMapPlotter.rocXLen = 1.0

Definition at line 19 of file PixelMapPlotter.py.

PixelMapPlotter.useFileSuffix = False

Definition at line 32 of file PixelMapPlotter.py.

PixelMapPlotter.useNumberAsPartName = False

Definition at line 29 of file PixelMapPlotter.py.