CMS 3D CMS Logo

Classes | Functions
PixelMapPlotter Namespace Reference

Classes

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

Functions

def GetAffectedRocs (rocString)
 
def GetOnlineBarrelCharacteristics (detElements, roc, reason="unknown")
 
def GetOnlineForwardCharacteristics (detElements, roc, reason="unknown")
 
def TranslatePartString (thePartStr)
 
def TranslateReasonStringBPix (theReasonStr)
 
def TranslateReasonStringFPix (theReasonStr)
 

Function Documentation

def PixelMapPlotter.GetAffectedRocs (   rocString)

Definition at line 440 of file PixelMapPlotter.py.

References GetOnlineBarrelCharacteristics(), GetOnlineForwardCharacteristics(), createfilelist.int, edm.print(), split, str, and digitizers_cfi.strip.

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

Definition at line 416 of file PixelMapPlotter.py.

References createfilelist.int, and TranslatePartString().

Referenced by GetAffectedRocs().

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

Definition at line 430 of file PixelMapPlotter.py.

References createfilelist.int, and TranslatePartString().

Referenced by GetAffectedRocs().

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

Definition at line 367 of file PixelMapPlotter.py.

References edm.print().

Referenced by GetOnlineBarrelCharacteristics(), and GetOnlineForwardCharacteristics().

367 def TranslatePartString(thePartStr):
368  if thePartStr == "mO":
369  return 1
370  elif thePartStr == "mI":
371  return 2
372  elif thePartStr == "pO":
373  return 3
374  elif thePartStr == "pI":
375  return 4
376  else:
377  print("Unrecognized part <%s>, the script is likely to crash..." % (thePartStr))
378 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def TranslatePartString(thePartStr)
def PixelMapPlotter.TranslateReasonStringBPix (   theReasonStr)

Definition at line 379 of file PixelMapPlotter.py.

References edm.print().

Referenced by PixelMapPlotter.HistogramManager.fillHistograms().

379 def TranslateReasonStringBPix(theReasonStr):
380  if theReasonStr == "unknown":
381  return 1
382  elif theReasonStr == "notprogrammable":
383  return 1
384  elif theReasonStr == "vcthr":
385  return 2
386  elif theReasonStr == "pixelalive":
387  return 2
388  elif theReasonStr == "iana":
389  return 2
390  elif theReasonStr == "calib":
391  return 2
392  elif theReasonStr== "fedphases":
393  return 4
394  elif theReasonStr == "tbmdelay":
395  return 1
396  elif theReasonStr == "power":
397  return 5
398  else:
399  return 1
400  print("Unrecognized part <%s>, the script is likely to crash..." % (theReasonStr))
401 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def TranslateReasonStringBPix(theReasonStr)
def PixelMapPlotter.TranslateReasonStringFPix (   theReasonStr)

Definition at line 402 of file PixelMapPlotter.py.

References edm.print().

Referenced by PixelMapPlotter.HistogramManager.fillHistograms().

402 def TranslateReasonStringFPix(theReasonStr):
403  if theReasonStr == "flaky":
404  return 1
405  elif theReasonStr == "power": #check github for the real reason
406  return 5
407  elif theReasonStr == "tbmdelay": #
408  return 1
409  elif theReasonStr == "unknown":
410  return 2
411  else:
412  return 2
413  print("Unrecognized part <%s>, the script is likely to crash..." % (theReasonStr))
414 
415 
def TranslateReasonStringFPix(theReasonStr)
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66