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

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

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

Definition at line 415 of file PixelMapPlotter.py.

References createfilelist.int, and TranslatePartString().

Referenced by GetAffectedRocs().

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

Definition at line 429 of file PixelMapPlotter.py.

References createfilelist.int, and TranslatePartString().

Referenced by GetAffectedRocs().

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

Definition at line 366 of file PixelMapPlotter.py.

References edm.print().

Referenced by GetOnlineBarrelCharacteristics(), and GetOnlineForwardCharacteristics().

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

Definition at line 378 of file PixelMapPlotter.py.

References edm.print().

Referenced by PixelMapPlotter.HistogramManager.fillHistograms().

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

Definition at line 401 of file PixelMapPlotter.py.

References edm.print().

Referenced by PixelMapPlotter.HistogramManager.fillHistograms().

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