test
CMS 3D CMS Logo

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

Classes

class  Iteration
 
class  TimePerTrackPlot
 
class  TrackingPlotFolder
 
class  TrackingSummaryTable
 
class  TrackingTimingTable
 

Functions

def _appendTrackingPlots
 
def _collhelper
 
def _constructSummary
 
def _iterModuleMap
 
def _makeDistPlots
 
def _makeDistSimPlots
 
def _makeEffFakeDupPlots
 
def _makeFakeDupPileupPlots
 
def _makeMVAPlots
 
def _mapCollectionToAlgoQuality
 
def _stepModuleMap
 
def _summaryBinRename
 
def _trackingFolders
 
def _trackingRefFileFallbackSLHC_Phase1PU140
 
def _trackingRefFileFallbackSLHC_Phase1PU70_OldMapping
 
def _trackingSubFoldersFallbackConversion
 
def _trackingSubFoldersFallbackFromPV
 
def _trackingSubFoldersFallbackSLHC_Phase1PU140
 
def _trackingSubFoldersFallbackSLHC_Phase1PU70_OldMapping
 

Variables

tuple _chargemisid
 
tuple _collLabelMap = collections.OrderedDict(map(_collhelper, ["generalTracks"]+_possibleTrackingColls))
 
tuple _collLabelMapHp = collections.OrderedDict(map(_collhelper, ["generalTracks"]+filter(lambda n: "Step" in n, _possibleTrackingColls)))
 
dictionary _common = {"ymin": 0, "ymax": _maxEff}
 PackedCandidate plots. More...
 
dictionary _common2 = {}
 
dictionary _commonLabelSize = {}
 
dictionary _commonStatus = {}
 
tuple _dedx
 
tuple _dupandfake1
 
tuple _dupandfake2
 
tuple _dupandfake3
 
tuple _dupandfake4
 
tuple _dupandfake5
 
tuple _effandfake1
 
tuple _effandfake2
 
tuple _effandfake3
 
tuple _effandfake4
 
tuple _extDist1
 Extended set of plots. More...
 
tuple _extDist2
 
tuple _extDist3
 
tuple _extDist4
 
tuple _extDist5
 
tuple _extDistSim1
 Extended set of plots also for simulation. More...
 
tuple _extDistSim2
 
tuple _extDistSim3
 
tuple _extDistSim4
 
list _extendedPlots
 
tuple _hitsAndPt
 
list _iterations
 
float _legendDy_1row = 0.46
 
float _legendDy_2rows = -0.025
 
float _legendDy_2rows_3cols = -0.17
 
float _legendDy_4rows = 0.09
 
list _max3DLayers = [5, 10, 20]
 
list _maxEff = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 0.8, 1.025]
 Per track collection plots. More...
 
list _maxFake = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 0.8, 1.025]
 
list _maxHits = [5, 10, 20, 40, 60, 80]
 
list _maxLayers = [5, 10, 25]
 
int _maxPixelLayers = 8
 
list _maxPU = [20, 50, 65, 80, 100, 150, 200, 250]
 
list _min3DLayers = [0, 5, 10]
 
list _minHits = [0, 5, 10]
 
list _minLayers = [0, 5, 10]
 
list _minMaxN = [5e-1, 5, 5e1, 5e2, 5e3, 5e4, 5e5, 5e6, 5e7, 5e8, 5e9]
 
list _minMaxResol = [1e-5, 4e-5, 1e-4, 4e-4, 1e-3, 4e-3, 1e-2, 4e-2, 0.1, 0.4, 1]
 
list _minPU = [0, 10, 20, 50, 100, 150]
 
tuple _packedCandidateCovarianceMatrix1
 
tuple _packedCandidateCovarianceMatrix2
 
tuple _packedCandidateFlow
 
tuple _packedCandidateHits
 
tuple _packedCandidateHitsHitPattern
 
tuple _packedCandidateImpactParameter1
 
tuple _packedCandidateImpactParameter2
 
tuple _packedCandidateKinematics
 
list _packedCandidatePlots
 
tuple _packedCandidateVertex
 
tuple _pixelTiming
 
list _possibleTrackingColls
 
dictionary _possibleTrackingCollsOld
 
list _possibleTrackingNonIterationColls
 Summary plots. More...
 
tuple _pulls
 
tuple _pvassociation1
 
tuple _pvassociation2
 
tuple _pvassociation3
 
list _recoBasedPlots
 
tuple _resolutionsEta
 
tuple _resolutionsPt
 
list _seedingBuildingPlots
 
tuple _seedingLayerSet_common = dict(removeEmptyBins=True, xbinlabelsize=8, xinlabeloption="d", adjustMarginRight=0.1)
 
list _simBasedPlots
 
list _summaryPlots
 
list _summaryPlotsHp
 
list _summaryPlotsSeeds
 
tuple _time_per_iter = AggregateBins("iteration", "reconstruction_step_module_average", _iterModuleMap(), ignoreMissingBins=True, originalOrder=True)
 
list _timeFolders
 
tuple _timing_iterations
 
tuple _timing_summary
 
tuple _tplifetime
 
string _trackingNumberOfEventsHistogram = "DQMData/Run 1/Tracking/Run summary/Track/general_trackingParticleRecoAsssociation/tracks"
 
tuple _tuning
 
string loopSubFolders = "timing"
 
tuple plotter = Plotter()
 
tuple plotterExt = Plotter()
 
tuple timePlotter = Plotter()
 
tuple tpPlotter = Plotter()
 

Function Documentation

def trackingPlots._appendTrackingPlots (   lastDirName,
  name,
  algoPlots,
  onlyForPileup = False,
  onlyForElectron = False,
  onlyForConversion = False,
  seeding = False,
  rawSummary = False 
)
private

Definition at line 1011 of file trackingPlots.py.

References _trackingFolders(), and cmsPerfStripChart.dict.

1012 def _appendTrackingPlots(lastDirName, name, algoPlots, onlyForPileup=False, onlyForElectron=False, onlyForConversion=False, seeding=False, rawSummary=False):
1013  folders = _trackingFolders(lastDirName)
1014  # to keep backward compatibility, this set of plots has empty name
1015  limiters = dict(onlyForPileup=onlyForPileup, onlyForElectron=onlyForElectron, onlyForConversion=onlyForConversion)
1016  commonForTPF = dict(purpose=PlotPurpose.TrackingIteration, fallbackRefFiles=[
1017  #_trackingRefFileFallbackSLHC_Phase1PU70_OldMapping
1018  _trackingRefFileFallbackSLHC_Phase1PU140
1019  ], **limiters)
1020  common = dict(fallbackDqmSubFolders=[
1021  #_trackingSubFoldersFallbackSLHC_Phase1PU70_OldMapping,
1022  _trackingSubFoldersFallbackSLHC_Phase1PU140,
1023  _trackingSubFoldersFallbackFromPV, _trackingSubFoldersFallbackConversion])
1024  plotter.append(name, folders, TrackingPlotFolder(*algoPlots, **commonForTPF), **common)
1025  plotterExt.append(name, folders, TrackingPlotFolder(*_extendedPlots, **commonForTPF), **common)
1026 
1027  summaryName = ""
1028  if name != "":
1029  summaryName += name+"_"
1030  summaryName += "summary"
1031  summaryPlots = []
1032  if rawSummary:
1033  summaryPlots.extend([_summaryRaw, _summaryRawN])
1034  summaryPlots.extend(_summaryPlots)
1035 
1036  common = dict(loopSubFolders=False, purpose=PlotPurpose.TrackingSummary, page="summary", numberOfEventsHistogram=_trackingNumberOfEventsHistogram, **limiters)
1037  plotter.append(summaryName, folders,
1038  PlotFolder(*summaryPlots, section=name, **common))
1039  plotter.append(summaryName+"_highPurity", folders,
1040  PlotFolder(*_summaryPlotsHp, section=name+"_highPurity" if name != "" else "highPurity", **common),
1041  fallbackNames=[summaryName]) # backward compatibility for release validation, the HP plots used to be in the same directory with all-track plots
1042  if seeding:
1043  plotter.append(summaryName+"_seeds", folders,
1044  PlotFolder(*_summaryPlotsSeeds, section=name+"_seeds", **common))
1045 
1046  plotter.appendTable(summaryName, folders, TrackingSummaryTable(section=name))
1047  plotter.appendTable(summaryName+"_highPurity", folders, TrackingSummaryTable(section=name+"_highPurity" if name != "" else "highPurity", collection=TrackingSummaryTable.HighPurity))
1048  if name == "":
1049  plotter.appendTable(summaryName, folders, TrackingSummaryTable(section="btvLike", collection=TrackingSummaryTable.BTVLike))
1050  plotter.appendTable(summaryName, folders, TrackingSummaryTable(section="ak4PFJets", collection=TrackingSummaryTable.AK4PFJets))
1051 _appendTrackingPlots("Track", "", _simBasedPlots+_recoBasedPlots)
1052 _appendTrackingPlots("TrackAllTPEffic", "allTPEffic", _simBasedPlots, onlyForPileup=True)
1053 _appendTrackingPlots("TrackFromPV", "fromPV", _simBasedPlots+_recoBasedPlots, onlyForPileup=True)
1054 _appendTrackingPlots("TrackFromPVAllTP", "fromPVAllTP", _simBasedPlots+_recoBasedPlots, onlyForPileup=True)
1055 _appendTrackingPlots("TrackFromPVAllTP2", "fromPVAllTP2", _simBasedPlots+_recoBasedPlots, onlyForPileup=True)
1056 _appendTrackingPlots("TrackSeeding", "seeding", _seedingBuildingPlots, seeding=True)
1057 _appendTrackingPlots("TrackBuilding", "building", _seedingBuildingPlots)
1058 _appendTrackingPlots("TrackConversion", "conversion", _simBasedPlots+_recoBasedPlots, onlyForConversion=True, rawSummary=True)
1059 _appendTrackingPlots("TrackGsf", "gsf", _simBasedPlots+_recoBasedPlots, onlyForElectron=True, rawSummary=True)
1060 
1061 # MiniAOD
1062 plotter.append("packedCandidate", _trackingFolders("PackedCandidate"),
1063  PlotFolder(*_packedCandidatePlots, loopSubFolders=False,
1064  purpose=PlotPurpose.MiniAOD, page="miniaod", section="PackedCandidate"))
1065 plotter.append("packedCandidateLostTracks", _trackingFolders("PackedCandidate/lostTracks"),
1066  PlotFolder(*_packedCandidatePlots, loopSubFolders=False,
1067  purpose=PlotPurpose.MiniAOD, page="miniaod", section="PackedCandidate (lostTracks)"))
1068 
# Timing
def trackingPlots._collhelper (   name)
private

Definition at line 568 of file trackingPlots.py.

569 def _collhelper(name):
return (name, [name])
def trackingPlots._constructSummary (   mapping = None,
  highPurity = False,
  byOriginalAlgo = False,
  byAlgoMask = False,
  ptCut = False,
  seeds = False,
  midfix = "" 
)
private

Definition at line 607 of file trackingPlots.py.

References _summaryBinRename(), and cmsPerfStripChart.dict.

608 def _constructSummary(mapping=None, highPurity=False, byOriginalAlgo=False, byAlgoMask=False, ptCut=False, seeds=False, midfix=""):
609  _common = {"drawStyle": "EP", "xbinlabelsize": 10, "xbinlabeloption": "d"}
610  _commonN = dict(ylog=True, ymin=_minMaxN, ymax=_minMaxN,
611  normalizeToNumberOfEvents=True,
612  )
613  _commonN.update(_common)
614  _commonAB = dict(mapping=mapping,
615  renameBin=lambda bl: _summaryBinRename(bl, highPurity, byOriginalAlgo, byAlgoMask, ptCut, seeds),
616  ignoreMissingBins=True,
617  originalOrder=True,
618  )
619  if byOriginalAlgo or byAlgoMask:
620  _commonAB["minExistingBins"] = 2
621  prefix = "summary"+midfix
622 
623  h_eff = "effic_vs_coll"
624  h_eff_allpt = "effic_vs_coll_allPt"
625  h_fakerate = "fakerate_vs_coll"
626  h_duplicaterate = "duplicatesRate_coll"
627  h_pileuprate = "pileuprate_coll"
628 
629  h_reco = "num_reco_coll"
630  h_true = "num_assoc(recoToSim)_coll"
631  h_fake = Subtract("num_fake_coll_orig", "num_reco_coll", "num_assoc(recoToSim)_coll")
632  h_duplicate = "num_duplicate_coll"
633  h_pileup = "num_pileup_coll"
634  if mapping is not None:
635  h_eff = AggregateBins("efficiency", h_eff, **_commonAB)
636  h_eff_allpt = AggregateBins("efficiencyAllPt", h_eff_allpt, **_commonAB)
637  h_fakerate = AggregateBins("fakerate", h_fakerate, **_commonAB)
638  h_duplicaterate = AggregateBins("duplicatesRate", h_duplicaterate, **_commonAB)
639  h_pileuprate = AggregateBins("pileuprate", h_pileuprate, **_commonAB)
640 
641  h_reco = AggregateBins("num_reco_coll", h_reco, **_commonAB)
642  h_true = AggregateBins("num_true_coll", h_true, **_commonAB)
643  h_fake = AggregateBins("num_fake_coll", h_fake, **_commonAB)
644  h_duplicate = AggregateBins("num_duplicate_coll", h_duplicate, **_commonAB)
645  h_pileup = AggregateBins("num_pileup_coll", h_pileup, **_commonAB)
646 
647  summary = PlotGroup(prefix, [
648  Plot(h_eff, title="Efficiency vs collection", ytitle="Efficiency", ymin=1e-3, ymax=1, ylog=True, **_common),
649  Plot(h_eff_allpt, title="Efficiency vs collection (no pT cut in denominator)", ytitle="Efficiency", ymin=1e-3, ymax=1, ylog=True, **_common),
650 
651  Plot(h_fakerate, title="Fakerate vs collection", ytitle="Fake rate", ymax=_maxFake, **_common),
652  Plot(h_duplicaterate, title="Duplicates rate vs collection", ytitle="Duplicates rate", ymax=_maxFake, **_common),
653  Plot(h_pileuprate, title="Pileup rate vs collection", ytitle="Pileup rate", ymax=_maxFake, **_common),
654  ])
655  summaryN = PlotGroup(prefix+"_ntracks", [
656  Plot(h_reco, ytitle="Tracks/event", title="Number of tracks/event vs collection", **_commonN),
657  Plot(h_true, ytitle="True tracks/event", title="Number of true tracks/event vs collection", **_commonN),
658  Plot(h_fake, ytitle="Fake tracks/event", title="Number of fake tracks/event vs collection", **_commonN),
659  Plot(h_duplicate, ytitle="Duplicate tracks/event", title="Number of duplicate tracks/event vs collection", **_commonN),
660  Plot(h_pileup, ytitle="Pileup tracks/event", title="Number of pileup tracks/event vs collection", **_commonN),
661  ])
662 
663  return (summary, summaryN)
664 
665 (_summaryRaw, _summaryRawN) = _constructSummary(midfix="Raw")
666 (_summary, _summaryN) = _constructSummary(_collLabelMap)
667 (_summaryHp, _summaryNHp) = _constructSummary(_collLabelMapHp, highPurity=True)
668 (_summaryByOriginalAlgo, _summaryByOriginalAlgoN) = _constructSummary(_collLabelMapHp, byOriginalAlgo=True, midfix="ByOriginalAlgo")
669 (_summaryByOriginalAlgoHp, _summaryByOriginalAlgoNHp) = _constructSummary(_collLabelMapHp, byOriginalAlgo=True, midfix="ByOriginalAlgo", highPurity=True)
670 (_summaryByAlgoMask, _summaryByAlgoMaskN) = _constructSummary(_collLabelMapHp, byAlgoMask=True, midfix="ByAlgoMask")
671 (_summaryByAlgoMaskHp, _summaryByAlgoMaskNHp) = _constructSummary(_collLabelMapHp, byAlgoMask=True, midfix="ByAlgoMask", highPurity=True)
672 (_summaryPt09, _summaryPt09N) = _constructSummary(_collLabelMap, ptCut=True, midfix="Pt09")
673 (_summaryPt09Hp, _summaryPt09NHp) = _constructSummary(_collLabelMap, ptCut=True, midfix="Pt09", highPurity=True)
674 (_summarySeeds, _summarySeedsN) = _constructSummary(_collLabelMapHp, seeds=True)
def trackingPlots._iterModuleMap (   includeConvStep = True,
  onlyConvStep = False 
)
private

Definition at line 1235 of file trackingPlots.py.

References alcazmumu_cfi.filter.

Referenced by trackingPlots.TrackingTimingTable.create().

1236 def _iterModuleMap(includeConvStep=True, onlyConvStep=False):
1237  iterations = _iterations
1238  if not includeConvStep:
1239  iterations = filter(lambda i: i.name() != "ConvStep", iterations)
1240  if onlyConvStep:
1241  iterations = filter(lambda i: i.name() == "ConvStep", iterations)
return collections.OrderedDict([(i.name(), i.all()) for i in iterations])
def trackingPlots._makeDistPlots (   postfix,
  quantity,
  common = {} 
)
private

Definition at line 80 of file trackingPlots.py.

References cmsPerfStripChart.dict.

80 
81 def _makeDistPlots(postfix, quantity, common={}):
82  p = postfix
83  q = quantity
84 
85  args = dict(xtitle="track "+q, ylog=True, ymin=_minMaxN, ymax=_minMaxN)
86  args.update(common)
87 
88  return [
89  Plot("num_reco_"+p , ytitle="tracks", **args),
90  Plot("num_assoc(recoToSim)_"+p, ytitle="true tracks", **args),
91  Plot(Subtract("num_fake_"+p, "num_reco_"+p, "num_assoc(recoToSim)_"+p), ytitle="fake tracks", **args),
92  Plot("num_duplicate_"+p , ytitle="duplicate tracks", **args),
93  ]
def trackingPlots._makeDistSimPlots (   postfix,
  quantity,
  common = {} 
)
private

Definition at line 94 of file trackingPlots.py.

References cmsPerfStripChart.dict.

94 
95 def _makeDistSimPlots(postfix, quantity, common={}):
96  p = postfix
97  q = quantity
98 
99  args = dict(xtitle="TP "+q, ylog=True, ymin=_minMaxN, ymax=_minMaxN)
100  args.update(common)
101 
102  return [
103  Plot("num_simul_"+p , ytitle="TrackingParticles", **args),
104  Plot("num_assoc(simToReco)_"+p, ytitle="Reconstructed TPs", **args),
105  ]
def trackingPlots._makeEffFakeDupPlots (   postfix,
  quantity,
  unit = "",
  common = {},
  effopts = {},
  fakeopts = {} 
)
private

Definition at line 43 of file trackingPlots.py.

References cmsPerfStripChart.dict.

43 
44 def _makeEffFakeDupPlots(postfix, quantity, unit="", common={}, effopts={}, fakeopts={}):
45  p = postfix
46  q = quantity
47  xq = q
48  if unit != "":
49  xq += " (" + unit + ")"
50 
51  effargs = dict(xtitle="TP "+xq , ytitle="efficiency vs "+q , ymax=_maxEff)
52  fakeargs = dict(xtitle="track "+xq, ytitle="fake+duplicates rate vs "+q, ymax=_maxFake)
53  effargs.update(common)
54  fakeargs.update(common)
55  effargs.update(effopts)
56  fakeargs.update(fakeopts)
57 
58  return [
59  Plot("effic_vs_"+p, **effargs),
60  Plot(FakeDuplicate("fakeduprate_vs_"+p, assoc="num_assoc(recoToSim)_"+p, dup="num_duplicate_"+p, reco="num_reco_"+p, title="fake+duplicates vs "+q), **fakeargs)
61  ]
def _makeEffFakeDupPlots
def trackingPlots._makeFakeDupPileupPlots (   postfix,
  quantity,
  unit = "",
  xquantity = "",
  xtitle = None,
  common = {} 
)
private

Definition at line 62 of file trackingPlots.py.

62 
63 def _makeFakeDupPileupPlots(postfix, quantity, unit="", xquantity="", xtitle=None, common={}):
64  p = postfix
65  q = quantity
66  if xtitle is None:
67  if xquantity != "":
68  xq = xquantity
69  else:
70  xq = q
71  if unit != "":
72  xq += " (" + unit + ")"
73  xtitle="track "+xq
74 
75  return [
76  Plot("fakerate_vs_"+p , xtitle=xtitle, ytitle="fakerate vs "+q , ymax=_maxFake, **common),
77  Plot("duplicatesRate_"+p, xtitle=xtitle, ytitle="duplicates rate vs "+q, ymax=_maxFake, **common),
78  Plot("pileuprate_"+p , xtitle=xtitle, ytitle="pileup rate vs "+q , ymax=_maxFake, **common),
79  ]
def _makeFakeDupPileupPlots
def trackingPlots._makeMVAPlots (   num,
  hp = False 
)
private

Definition at line 106 of file trackingPlots.py.

References cmsPerfStripChart.dict.

107 def _makeMVAPlots(num, hp=False):
108  pfix = "_hp" if hp else ""
109  pfix2 = "Hp" if hp else ""
110 
111  xtitle = "MVA%d output"%num
112  xtitlecut = "Cut on MVA%d output"%num
113  args = dict(xtitle=xtitle, ylog=True, ymin=_minMaxN, ymax=_minMaxN)
114 
115  argsroc = dict(
116  xtitle="Efficiency (excl. trk eff)", ytitle="Fake rate",
117  xmax=_maxEff, ymax=_maxFake,
118  drawStyle="EP",
119  )
120  argsroc2 = dict(
121  ztitle="Cut on MVA%d"%num,
122  xtitleoffset=5, ytitleoffset=6.5, ztitleoffset=4,
123  adjustMarginRight=0.12
124  )
125  argsroc2.update(argsroc)
126  argsroc2["drawStyle"] = "pcolz"
127 
128  true_cuteff = CutEfficiency("trueeff_vs_mva%dcut%s"%(num,pfix), "num_assoc(recoToSim)_mva%dcut%s"%(num,pfix))
129  fake_cuteff = CutEfficiency("fakeeff_vs_mva%dcut%s"%(num,pfix), Subtract("num_fake_mva%dcut%s"%(num,pfix), "num_reco_mva%dcut%s"%(num,pfix), "num_assoc(recoToSim)_mva%dcut%s"%(num,pfix)))
130 
131  return PlotGroup("mva%d%s"%(num,pfix2), [
132  Plot("num_assoc(recoToSim)_mva%d%s"%(num,pfix), ytitle="true tracks", **args),
133  Plot(Subtract("num_fake_mva%d%s"%(num,pfix), "num_reco_mva%d%s"%(num,pfix), "num_assoc(recoToSim)_mva%d%s"%(num,pfix)), ytitle="fake tracks", **args),
134  Plot("effic_vs_mva%dcut%s"%(num,pfix), xtitle=xtitlecut, ytitle="Efficiency (excl. trk eff)", ymax=_maxEff),
135  #
136  Plot("fakerate_vs_mva%dcut%s"%(num,pfix), xtitle=xtitlecut, ytitle="Fake rate", ymax=_maxFake),
137  Plot(ROC("effic_vs_fake_mva%d%s"%(num,pfix), "effic_vs_mva%dcut%s"%(num,pfix), "fakerate_vs_mva%dcut%s"%(num,pfix)), **argsroc),
138  Plot(ROC("effic_vs_fake_mva%d%s"%(num,pfix), "effic_vs_mva%dcut%s"%(num,pfix), "fakerate_vs_mva%dcut%s"%(num,pfix), zaxis=True), **argsroc2),
139  # Same signal efficiency, background efficiency, and ROC definitions as in TMVA
140  Plot(true_cuteff, xtitle=xtitlecut, ytitle="True track selection efficiency", ymax=_maxEff),
141  Plot(fake_cuteff, xtitle=xtitlecut, ytitle="Fake track selection efficiency", ymax=_maxEff),
142  Plot(ROC("true_eff_vs_fake_rej_mva%d%s"%(num,pfix), true_cuteff, Transform("fake_rej_mva%d%s"%(num,pfix), fake_cuteff, lambda x: 1-x)), xtitle="True track selection efficiency", ytitle="Fake track rejection", xmax=_maxEff, ymax=_maxEff),
143  ], ncols=3, legendDy=_legendDy_1row)
def trackingPlots._mapCollectionToAlgoQuality (   collName)
private

Definition at line 499 of file trackingPlots.py.

References python.rootplot.root2matplotlib.replace().

Referenced by _summaryBinRename(), trackingPlots.TrackingSummaryTable.create(), and trackingPlots.TrackingPlotFolder.translateSubFolder().

500 def _mapCollectionToAlgoQuality(collName):
501  if "Hp" in collName:
502  quality = "highPurity"
503  else:
504  quality = ""
505  hasPtCut = "Pt09" in collName
506  collNameNoQuality = collName.replace("Hp", "")
507  if hasPtCut:
508  quality += "Pt09"
509  collNameNoQuality = collNameNoQuality.replace("Pt09", "")
510  if "ByOriginalAlgo" in collName:
511  quality += "ByOriginalAlgo"
512  collNameNoQuality = collNameNoQuality.replace("ByOriginalAlgo", "")
513  if "ByAlgoMask" in collName:
514  quality += "ByAlgoMask"
515  collNameNoQuality = collNameNoQuality.replace("ByAlgoMask", "")
516  collNameNoQuality = collNameNoQuality.replace("Tracks", "", 1) # make summary naming consistent with iteration folders
517  collNameLow = collNameNoQuality.lower().replace("frompv2", "").replace("frompv", "").replace("frompvalltp", "").replace("alltp", "")
518 
519  if collNameLow.find("seed") == 0:
520  if quality != "":
521  raise Exception("Assumption of empty quality for seeds failed, got quality '%s'" % quality)
522  collNameLow = collNameLow[4:]
523  if collNameLow == "initialstepseedspresplitting":
524  collNameLow = "initialsteppresplittingseeds"
525  elif collNameLow == "muonseededseedsinout":
526  collNameLow = "muonseededstepinoutseeds"
527  elif collNameLow == "muonseededseedsoutin":
528  collNameLow = "muonseededstepoutinseeds"
529 
530  i_seeds = collNameLow.index("seeds")
531  quality = collNameLow[i_seeds:]
532 
533  collNameLow = collNameLow[:i_seeds]
534 
535  algo = None
536  prefixes = ["cutsreco", "cutsrecofrompv", "cutsrecofrompv2", "cutsrecofrompvalltp"]
537  if collNameLow in ["general", "generalfrompv"]+prefixes:
538  algo = "ootb"
539  else:
540  def testColl(coll):
541  for pfx in prefixes:
542  if coll == collNameLow.replace(pfx, ""):
543  return True
544  return False
545 
546  for coll in _possibleTrackingColls:
547  if testColl(coll.lower()):
548  algo = coll
549  break
550  # next try "old style"
551  if algo is None:
552  for coll, name in _possibleTrackingCollsOld.iteritems():
553  if testColl(coll.lower()):
554  algo = name
555  break
556 
557  # fallback
558  if algo is None:
559  algo = collNameNoQuality
560 
561  # fix for track collection naming convention
562  if algo == "muonSeededInOut":
563  algo = "muonSeededStepInOut"
564  if algo == "muonSeededOutIn":
565  algo = "muonSeededStepOutIn"
566 
567  return (algo, quality)
def _mapCollectionToAlgoQuality
def trackingPlots._stepModuleMap ( )
private

Definition at line 1242 of file trackingPlots.py.

1243 def _stepModuleMap():
1244  def getProp(prop):
1245  ret = []
1246  for i in _iterations:
1247  if i.name() == "ConvStep":
1248  continue
1249  ret.extend(getattr(i, prop)())
1250  return ret
1251 
1252  return collections.OrderedDict([
1253  ("ClusterMask", getProp("clusterMasking")),
1254  ("Seeding", getProp("seeding")),
1255  ("Building", getProp("building")),
1256  ("Fitting", getProp("fit")),
1257  ("Selection", getProp("selection")),
1258  ("Other", getProp("other"))
1259  ])
def trackingPlots._summaryBinRename (   binLabel,
  highPurity,
  byOriginalAlgo,
  byAlgoMask,
  ptCut,
  seeds 
)
private

Definition at line 572 of file trackingPlots.py.

References _mapCollectionToAlgoQuality(), and pileupCalc.upper.

Referenced by _constructSummary(), and trackingPlots.TimePerTrackPlot.create().

573 def _summaryBinRename(binLabel, highPurity, byOriginalAlgo, byAlgoMask, ptCut, seeds):
574  (algo, quality) = _mapCollectionToAlgoQuality(binLabel)
575  if algo == "ootb":
576  algo = "generalTracks"
577  ret = None
578 
579  if byOriginalAlgo:
580  if algo != "generalTracks" and "ByOriginalAlgo" not in quality:
581  return None
582  quality = quality.replace("ByOriginalAlgo", "")
583  if byAlgoMask:
584  if algo != "generalTracks" and "ByAlgoMask" not in quality:
585  return None
586  quality = quality.replace("ByAlgoMask", "")
587  if ptCut:
588  if algo != "generalTracks" and "Pt09" not in quality:
589  return None
590  quality = quality.replace("Pt09", "")
591 
592  if highPurity:
593  if quality == "highPurity":
594  ret = algo
595  elif seeds:
596  i_seeds = quality.find("seeds")
597  if i_seeds == 0:
598  ret = algo
599  seedSubColl = quality[i_seeds+5:]
600  if seedSubColl != "":
601  ret += seedSubColl[0].upper() + seedSubColl[1:]
602  else:
603  if quality == "":
604  ret = algo
605 
606  return ret
def _mapCollectionToAlgoQuality
def trackingPlots._trackingFolders (   lastDirName = "Track")
private

Definition at line 919 of file trackingPlots.py.

Referenced by _appendTrackingPlots(), and trackingPlots.TimePerTrackPlot._getDirectory().

920 def _trackingFolders(lastDirName="Track"):
921  return [
922  "DQMData/Run 1/Tracking/Run summary/"+lastDirName,
923  "DQMData/Tracking/"+lastDirName,
924  "DQMData/Run 1/RecoTrackV/Run summary/"+lastDirName,
925  "DQMData/RecoTrackV/"+lastDirName,
926  ]
def trackingPlots._trackingRefFileFallbackSLHC_Phase1PU140 (   path)
private

Definition at line 482 of file trackingPlots.py.

484  for (old, new) in [("initialStep", "iter0"),
485  ("highPtTripletStep", "iter1"),
486  ("lowPtQuadStep", "iter2"),
487  ("lowPtTripletStep", "iter3"),
488  ("detachedQuadStep", "iter4"),
489  ("pixelPairStep", "iter5"),
490  ("muonSeededStepInOut", "iter9"),
491  ("muonSeededStepOutIn", "iter10")]:
492  path = path.replace(old, new)
493  return path
def _trackingRefFileFallbackSLHC_Phase1PU140
def trackingPlots._trackingRefFileFallbackSLHC_Phase1PU70_OldMapping (   path)
private

Definition at line 458 of file trackingPlots.py.

460  for (old, new) in [("initialStep", "iter0"),
461  ("lowPtTripletStep", "iter1"),
462  ("pixelPairStep", "iter2"),
463  ("mixedTripletStep", "iter4"),
464  ("muonSeededStepInOut", "iter9"),
465  ("muonSeededStepOutIn", "iter10")]:
466  path = path.replace(old, new)
467  return path
def _trackingRefFileFallbackSLHC_Phase1PU70_OldMapping
def trackingPlots._trackingSubFoldersFallbackConversion (   subfolder)
private

Definition at line 496 of file trackingPlots.py.

498  return subfolder.replace("quickAssociatorByHits", "quickAssociatorByHitsConversion")
def _trackingSubFoldersFallbackConversion
def trackingPlots._trackingSubFoldersFallbackFromPV (   subfolder)
private

Definition at line 494 of file trackingPlots.py.

495 def _trackingSubFoldersFallbackFromPV(subfolder):
return subfolder.replace("trackingParticleRecoAsssociation", "trackingParticleRecoAsssociationSignal")
def _trackingSubFoldersFallbackFromPV
def trackingPlots._trackingSubFoldersFallbackSLHC_Phase1PU140 (   subfolder)
private

Definition at line 468 of file trackingPlots.py.

470  ret = subfolder.replace("trackingParticleRecoAsssociation", "AssociatorByHitsRecoDenom")
471  for (old, new) in [("InitialStep", "Zero"),
472  ("HighPtTripletStep", "First"),
473  ("LowPtQuadStep", "Second"),
474  ("LowPtTripletStep", "Third"),
475  ("DetachedQuadStep", "Fourth"),
476  ("PixelPairStep", "Fifth"),
477  ("MuonSeededStepInOut", "Ninth"),
478  ("MuonSeededStepOutIn", "Tenth")]:
479  ret = ret.replace(old, new)
480  if ret == subfolder:
481  return None
return ret
def _trackingSubFoldersFallbackSLHC_Phase1PU140
def trackingPlots._trackingSubFoldersFallbackSLHC_Phase1PU70_OldMapping (   subfolder)
private

Definition at line 445 of file trackingPlots.py.

447  ret = subfolder.replace("trackingParticleRecoAsssociation", "AssociatorByHitsRecoDenom")
448  for (old, new) in [("InitialStep", "Zero"),
449  ("LowPtTripletStep", "First"),
450  ("PixelPairStep", "Second"),
451  ("MixedTripletStep", "Fourth"),
452  ("MuonSeededStepInOut", "Ninth"),
453  ("MuonSeededStepOutIn", "Tenth")]:
454 
455  ret = ret.replace(old, new)
456  if ret == subfolder:
457  return None
return ret
def _trackingSubFoldersFallbackSLHC_Phase1PU70_OldMapping

Variable Documentation

tuple trackingPlots._chargemisid
Initial value:
1 = PlotGroup("chargemisid", [
2  Plot("chargeMisIdRate", xtitle="#eta", ytitle="charge mis-id rate vs #eta", ymax=0.05),
3  Plot("chargeMisIdRate_Pt", xtitle="p_{T}", ytitle="charge mis-id rate vs p_{T}", xmax=300, ymax=0.1, xlog=True),
4  Plot("chargeMisIdRate_hit", xtitle="hits", ytitle="charge mis-id rate vs hits", title=""),
5  Plot("chargeMisIdRate_phi", xtitle="#phi", ytitle="charge mis-id rate vs #phi", title="", ymax=0.01),
6  Plot("chargeMisIdRate_dxy", xtitle="dxy", ytitle="charge mis-id rate vs dxy", ymax=0.1),
7  Plot("chargeMisIdRate_dz", xtitle="dz", ytitle="charge mis-id rate vs dz", ymax=0.1)
8 ])

Definition at line 291 of file trackingPlots.py.

tuple trackingPlots._collLabelMap = collections.OrderedDict(map(_collhelper, ["generalTracks"]+_possibleTrackingColls))

Definition at line 570 of file trackingPlots.py.

tuple trackingPlots._collLabelMapHp = collections.OrderedDict(map(_collhelper, ["generalTracks"]+filter(lambda n: "Step" in n, _possibleTrackingColls)))

Definition at line 571 of file trackingPlots.py.

dictionary trackingPlots._common = {"ymin": 0, "ymax": _maxEff}

PackedCandidate plots.

Definition at line 169 of file trackingPlots.py.

dictionary trackingPlots._common2 = {}

Definition at line 222 of file trackingPlots.py.

dictionary trackingPlots._commonLabelSize = {}

Definition at line 685 of file trackingPlots.py.

dictionary trackingPlots._commonStatus = {}

Definition at line 682 of file trackingPlots.py.

tuple trackingPlots._dedx
Initial value:
1 = PlotGroup("dedx", [
2  Plot("h_dedx_estim1", xtitle="dE/dx, harm2", **_common),
3  Plot("h_dedx_estim2", xtitle="dE/dx, trunc40", **_common),
4  Plot("h_dedx_nom1", xtitle="dE/dx number of measurements", title="", **_common),
5  Plot("h_dedx_sat1", xtitle="dE/dx number of measurements with saturation", title="", **_common),
6  ],
7  legendDy=_legendDy_2rows
8 )

Definition at line 282 of file trackingPlots.py.

tuple trackingPlots._dupandfake1
Initial value:
1 = PlotGroup("dupandfake1", [
2  Plot("fakeratePt", xtitle="track p_{T} (GeV)", ytitle="fakerate vs p_{T}", xlog=True, ymax=_maxFake),
3  Plot("duplicatesRate_Pt", xtitle="track p_{T} (GeV)", ytitle="duplicates rate vs p_{T}", ymax=_maxFake, xlog=True),
4  Plot("pileuprate_Pt", xtitle="track p_{T} (GeV)", ytitle="pileup rate vs p_{T}", ymax=_maxFake, xlog=True),
5  Plot("fakerate", xtitle="track #eta", ytitle="fakerate vs #eta", title="", ymax=_maxFake),
6  Plot("duplicatesRate", xtitle="track #eta", ytitle="duplicates rate vs #eta", title="", ymax=_maxFake),
7  Plot("pileuprate", xtitle="track #eta", ytitle="pileup rate vs #eta", title="", ymax=_maxFake),
8 ] + _makeFakeDupPileupPlots("phi", "#phi"),
9  ncols=3
10 )
def _makeFakeDupPileupPlots

Definition at line 178 of file trackingPlots.py.

tuple trackingPlots._dupandfake2
Initial value:
1 = PlotGroup("dupandfake2",
2  _makeFakeDupPileupPlots("dxy" , "dxy" , "cm") +
3  _makeFakeDupPileupPlots("dxypv", "dxy(PV)", "cm") +
4  _makeFakeDupPileupPlots("dz" , "dz" , "cm") +
5  _makeFakeDupPileupPlots("dzpv" , "dz(PV)" , "cm"),
6  ncols=3, legendDy=_legendDy_4rows
7 )
def _makeFakeDupPileupPlots

Definition at line 188 of file trackingPlots.py.

tuple trackingPlots._dupandfake3
Initial value:
1 = PlotGroup("dupandfake3",
2  _makeFakeDupPileupPlots("hit" , "hits" , common=dict(xmin=_minHits , xmax=_maxHits)) +
3  _makeFakeDupPileupPlots("layer" , "layers" , common=dict(xmin=_minLayers , xmax=_maxLayers)) +
4  _makeFakeDupPileupPlots("pixellayer", "pixel layers", common=dict( xmax=_maxPixelLayers)) +
5  _makeFakeDupPileupPlots("3Dlayer" , "3D layers" , common=dict(xmin=_min3DLayers, xmax=_max3DLayers)),
6  ncols=3, legendDy=_legendDy_4rows
7 )
def _makeFakeDupPileupPlots

Definition at line 195 of file trackingPlots.py.

tuple trackingPlots._dupandfake4
Initial value:
1 = PlotGroup("dupandfake4",
2  _makeFakeDupPileupPlots("vertpos", "r", "cm", xquantity="ref. point r (cm)") +
3  _makeFakeDupPileupPlots("zpos" , "z", "cm", xquantity="ref. point z (cm)") +
4  _makeFakeDupPileupPlots("dr" , "#DeltaR", xquantity="min #DeltaR", common=dict(xlog=True)) +
5  _makeFakeDupPileupPlots("pu" , "PU" , xtitle="Pileup", common=dict(xmin=_minPU, xmax=_maxPU)),
6  ncols=3, legendDy=_legendDy_4rows
7 )
def _makeFakeDupPileupPlots

Definition at line 202 of file trackingPlots.py.

tuple trackingPlots._dupandfake5
Initial value:
1 = PlotGroup("dupandfake5",
2  _makeFakeDupPileupPlots("chi2", "#chi^{2}") +
3  _makeFakeDupPileupPlots("seedingLayerSet", "seeding layers", xtitle="", common=_seedingLayerSet_common),
4  ncols=3, legendDy=_legendDy_2rows_3cols
5 )
def _makeFakeDupPileupPlots

Definition at line 210 of file trackingPlots.py.

tuple trackingPlots._effandfake1
Initial value:
1 = PlotGroup("effandfake1", [
2  Plot("efficPt", title="Efficiency vs p_{T}", xtitle="TP p_{T} (GeV)", ytitle="efficiency vs p_{T}", xlog=True, ymax=_maxEff),
3  Plot(FakeDuplicate("fakeduprate_vs_pT", assoc="num_assoc(recoToSim)_pT", dup="num_duplicate_pT", reco="num_reco_pT", title="fake+duplicates vs p_{T}"),
4  xtitle="track p_{T} (GeV)", ytitle="fake+duplicates rate vs p_{T}", ymax=_maxFake, xlog=True),
5  Plot("effic", xtitle="TP #eta", ytitle="efficiency vs #eta", title="", ymax=_maxEff),
6  Plot(FakeDuplicate("fakeduprate_vs_eta", assoc="num_assoc(recoToSim)_eta", dup="num_duplicate_eta", reco="num_reco_eta", title=""),
7  xtitle="track #eta", ytitle="fake+duplicates rate vs #eta", ymax=_maxFake),
8 ] +
9  _makeEffFakeDupPlots("phi", "#phi")
10 )
def _makeEffFakeDupPlots

Definition at line 144 of file trackingPlots.py.

tuple trackingPlots._effandfake2
Initial value:
1 = PlotGroup("effandfake2",
2  _makeEffFakeDupPlots("dxy" , "dxy" , "cm") +
3  _makeEffFakeDupPlots("dxypv", "dxy(PV)", "cm") +
4  _makeEffFakeDupPlots("dz" , "dz" , "cm") +
5  _makeEffFakeDupPlots("dzpv" , "dz(PV)" , "cm"),
6  legendDy=_legendDy_4rows
7 )
def _makeEffFakeDupPlots

Definition at line 155 of file trackingPlots.py.

tuple trackingPlots._effandfake3
Initial value:
1 = PlotGroup("effandfake3",
2  _makeEffFakeDupPlots("hit" , "hits" , common=dict(xmin=_minHits , xmax=_maxHits)) +
3  _makeEffFakeDupPlots("layer" , "layers" , common=dict(xmin=_minLayers , xmax=_maxLayers)) +
4  _makeEffFakeDupPlots("pixellayer", "pixel layers", common=dict( xmax=_maxPixelLayers)) +
5  _makeEffFakeDupPlots("3Dlayer" , "3D layers" , common=dict(xmin=_min3DLayers, xmax=_max3DLayers)),
6  legendDy=_legendDy_4rows
7 )
def _makeEffFakeDupPlots

Definition at line 162 of file trackingPlots.py.

tuple trackingPlots._effandfake4
Initial value:
1 = PlotGroup("effandfake4",
2  _makeEffFakeDupPlots("vertpos", "vert r", "cm", fakeopts=dict(xtitle="track ref. point r (cm)", ytitle="fake+duplicates vs. r")) +
3  _makeEffFakeDupPlots("zpos" , "vert z", "cm", fakeopts=dict(xtitle="track ref. point z (cm)", ytitle="fake+duplicates vs. z")) +
4  _makeEffFakeDupPlots("dr" , "#DeltaR", effopts=dict(xtitle="TP min #DeltaR"), fakeopts=dict(xtitle="track min #DeltaR"), common=dict(xlog=True)) +
5  _makeEffFakeDupPlots("pu" , "PU" , common=dict(xtitle="Pileup", xmin=_minPU, xmax=_maxPU)),
6  legendDy=_legendDy_4rows
7 )
def _makeEffFakeDupPlots

Definition at line 170 of file trackingPlots.py.

tuple trackingPlots._extDist1
Initial value:
1 = PlotGroup("dist1",
2  _makeDistPlots("pT", "p_{T} (GeV)", common=dict(xlog=True)) +
3  _makeDistPlots("eta", "#eta") +
4  _makeDistPlots("phi", "#phi"),
5  ncols=4)

Extended set of plots.

Definition at line 345 of file trackingPlots.py.

tuple trackingPlots._extDist2
Initial value:
1 = PlotGroup("dist2",
2  _makeDistPlots("dxy" , "dxy (cm)") +
3  _makeDistPlots("dxypv", "dxy(PV) (cm)") +
4  _makeDistPlots("dz" , "dz (cm)") +
5  _makeDistPlots("dzpv" , "dz(PV) (cm)"),
6  ncols=4, legendDy=_legendDy_4rows)

Definition at line 350 of file trackingPlots.py.

tuple trackingPlots._extDist3
Initial value:
1 = PlotGroup("dist3",
2  _makeDistPlots("hit" , "hits" , common=dict(xmin=_minHits , xmax=_maxHits)) +
3  _makeDistPlots("layer" , "layers" , common=dict(xmin=_minLayers , xmax=_maxLayers)) +
4  _makeDistPlots("pixellayer", "pixel layers", common=dict( xmax=_maxPixelLayers)) +
5  _makeDistPlots("3Dlayer" , "3D layers" , common=dict(xmin=_min3DLayers, xmax=_max3DLayers)),
6  ncols=4, legendDy=_legendDy_4rows,
7 )

Definition at line 356 of file trackingPlots.py.

tuple trackingPlots._extDist4
Initial value:
1 = PlotGroup("dist4",
2  _makeDistPlots("vertpos", "ref. point xy (cm)") +
3  _makeDistPlots("zpos" , "ref. point z (cm)") +
4  _makeDistPlots("dr" , "min #DeltaR", common=dict(xlog=True)),
5  ncols=4
6 )

Definition at line 363 of file trackingPlots.py.

tuple trackingPlots._extDist5
Initial value:
1 = PlotGroup("dist5",
2  _makeDistPlots("chi2", "#chi^{2}") +
3  _makeDistPlots("seedingLayerSet", "seeding layers", common=dict(xtitle="", **_seedingLayerSet_common)),
4  ncols=4, legendDy=_legendDy_2rows_3cols
5 )

Definition at line 369 of file trackingPlots.py.

tuple trackingPlots._extDistSim1
Initial value:
1 = PlotGroup("distsim1",
2  _makeDistSimPlots("pT", "p_{T} (GeV)", common=dict(xlog=True)) +
3  _makeDistSimPlots("eta", "#eta") +
4  _makeDistSimPlots("phi", "#phi"),
5  ncols=2)

Extended set of plots also for simulation.

Definition at line 376 of file trackingPlots.py.

tuple trackingPlots._extDistSim2
Initial value:
1 = PlotGroup("distsim2",
2  _makeDistSimPlots("dxy" , "dxy (cm)") +
3  _makeDistSimPlots("dxypv", "dxy(PV) (cm)") +
4  _makeDistSimPlots("dz" , "dz (cm)") +
5  _makeDistSimPlots("dzpv" , "dz(PV) (cm)"),
6  ncols=2, legendDy=_legendDy_4rows)

Definition at line 381 of file trackingPlots.py.

tuple trackingPlots._extDistSim3
Initial value:
1 = PlotGroup("distsim3",
2  _makeDistSimPlots("hit" , "hits" , common=dict(xmin=_minHits , xmax=_maxHits)) +
3  _makeDistSimPlots("layer" , "layers" , common=dict(xmin=_minLayers , xmax=_maxLayers)) +
4  _makeDistSimPlots("pixellayer", "pixel layers", common=dict( xmax=_maxPixelLayers)) +
5  _makeDistSimPlots("3Dlayer" , "3D layers" , common=dict(xmin=_min3DLayers, xmax=_max3DLayers)),
6  ncols=2, legendDy=_legendDy_4rows,
7 )

Definition at line 387 of file trackingPlots.py.

tuple trackingPlots._extDistSim4
Initial value:
1 = PlotGroup("distsim4",
2  _makeDistSimPlots("vertpos", "ref. point xy (cm)") +
3  _makeDistSimPlots("zpos" , "ref. point z (cm)") +
4  _makeDistSimPlots("dr" , "min #DeltaR", common=dict(xlog=True)),
5  ncols=2
6 )

Definition at line 394 of file trackingPlots.py.

list trackingPlots._extendedPlots
Initial value:
1 = [
2  _extDist1,
3  _extDist2,
4  _extDist3,
5  _extDist4,
6  _extDist5,
7  _extDistSim1,
8  _extDistSim2,
9  _extDistSim3,
10  _extDistSim4,
11 ]

Definition at line 963 of file trackingPlots.py.

tuple trackingPlots._hitsAndPt
Initial value:
1 = PlotGroup("hitsAndPt", [
2  Plot("missing_inner_layers", xmin=_minLayers, xmax=_maxLayers, ymax=1, **_common),
3  Plot("missing_outer_layers", xmin=_minLayers, xmax=_maxLayers, ymax=1, **_common),
4  Plot("hits_eta", xtitle="track #eta", ytitle="<hits> vs #eta", ymin=_minHits, ymax=_maxHits, statyadjust=[0,0,-0.15],
5  fallback={"name": "nhits_vs_eta", "profileX": True}),
6  Plot("hits", stat=True, xtitle="track hits", xmin=_minHits, xmax=_maxHits, ylog=True, ymin=[5e-1, 5, 5e1, 5e2, 5e3], drawStyle="hist"),
7  Plot("num_simul_pT", xtitle="TP p_{T}", xlog=True, ymax=[1e-1, 2e-1, 5e-1, 1], **_common),
8  Plot("num_reco_pT", xtitle="track p_{T}", xlog=True, ymax=[1e-1, 2e-1, 5e-1, 1], **_common)
9 ])

Definition at line 300 of file trackingPlots.py.

list trackingPlots._iterations

Definition at line 1121 of file trackingPlots.py.

float trackingPlots._legendDy_1row = 0.46

Definition at line 36 of file trackingPlots.py.

float trackingPlots._legendDy_2rows = -0.025

Definition at line 37 of file trackingPlots.py.

float trackingPlots._legendDy_2rows_3cols = -0.17

Definition at line 38 of file trackingPlots.py.

float trackingPlots._legendDy_4rows = 0.09

Definition at line 39 of file trackingPlots.py.

list trackingPlots._max3DLayers = [5, 10, 20]

Definition at line 32 of file trackingPlots.py.

list trackingPlots._maxEff = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 0.8, 1.025]

Per track collection plots.

Definition at line 19 of file trackingPlots.py.

list trackingPlots._maxFake = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 0.8, 1.025]

Definition at line 20 of file trackingPlots.py.

list trackingPlots._maxHits = [5, 10, 20, 40, 60, 80]

Definition at line 27 of file trackingPlots.py.

list trackingPlots._maxLayers = [5, 10, 25]

Definition at line 29 of file trackingPlots.py.

int trackingPlots._maxPixelLayers = 8

Definition at line 30 of file trackingPlots.py.

list trackingPlots._maxPU = [20, 50, 65, 80, 100, 150, 200, 250]

Definition at line 34 of file trackingPlots.py.

list trackingPlots._min3DLayers = [0, 5, 10]

Definition at line 31 of file trackingPlots.py.

list trackingPlots._minHits = [0, 5, 10]

Definition at line 26 of file trackingPlots.py.

list trackingPlots._minLayers = [0, 5, 10]

Definition at line 28 of file trackingPlots.py.

list trackingPlots._minMaxN = [5e-1, 5, 5e1, 5e2, 5e3, 5e4, 5e5, 5e6, 5e7, 5e8, 5e9]

Definition at line 24 of file trackingPlots.py.

list trackingPlots._minMaxResol = [1e-5, 4e-5, 1e-4, 4e-4, 1e-3, 4e-3, 1e-2, 4e-2, 0.1, 0.4, 1]

Definition at line 23 of file trackingPlots.py.

list trackingPlots._minPU = [0, 10, 20, 50, 100, 150]

Definition at line 33 of file trackingPlots.py.

tuple trackingPlots._packedCandidateCovarianceMatrix1
Initial value:
1 = PlotGroup("covarianceMatrix1", [
2  Plot("diffCovQoverpQoverp", xtitle="cov(qoverp, qoverp)", **_commonLabelSize),
3  Plot("diffCovQoverpQoverpStatus", **_commonStatus),
4  Plot("diffCovQoverpQoverpUnderOverFlowSign", xtitle="cov(qoverp, qoverp)", **_common),
5  Plot("diffCovLambdaLambda", xtitle="cov(lambda, lambda)", **_commonLabelSize),
6  Plot("diffCovLambdaLambdaStatus", **_commonStatus),
7  Plot("diffCovLambdaLambdaUnderOverFlowSign", xtitle="cov(lambda, lambda)", **_common),
8  Plot("diffCovLambdaDsz", xtitle="cov(lambda, dsz)", **_commonLabelSize),
9  Plot("diffCovLambdaDszStatus", **_commonStatus),
10  Plot("diffCovLambdaDszUnderOverFlowSign", xtitle="cov(lambda, dsz)", **_common),
11  Plot("diffCovPhiPhi", xtitle="cov(phi, phi)", **_commonLabelSize),
12  Plot("diffCovPhiPhiStatus", **_commonStatus),
13  Plot("diffCovPhiPhiUnderOverFlowSign", xtitle="cov(phi, phi)", **_common),
14 ],
15  ncols=3, legendDy=_legendDy_4rows
16 )

Definition at line 740 of file trackingPlots.py.

tuple trackingPlots._packedCandidateCovarianceMatrix2
Initial value:
1 = PlotGroup("covarianceMatrix2", [
2  Plot("diffCovPhiDxy", xtitle="cov(phi, dxy)", **_commonLabelSize),
3  Plot("diffCovPhiDxyStatus", **_commonStatus),
4  Plot("diffCovPhiDxyUnderOverFlowSign", xtitle="cov(phi, dxy)", **_common),
5  Plot("diffCovDxyDxy", xtitle="cov(dxy, dxy)", adjustMarginRight=0.02, **_commonLabelSize),
6  Plot("diffCovDxyDxyStatus", **_commonStatus),
7  Plot("diffCovDxyDxyUnderOverFlowSign", xtitle="cov(dxy, dxy)", **_common),
8  Plot("diffCovDxyDsz", xtitle="cov(dxy, dsz)", adjustMarginRight=0.02, **_commonLabelSize),
9  Plot("diffCovDxyDszStatus", **_commonStatus),
10  Plot("diffCovDxyDszUnderOverFlowSign", xtitle="cov(dxy, dsz)", **_common),
11  Plot("diffCovDszDsz", xtitle="cov(dsz, dsz)", adjustMarginRight=0.02, **_commonLabelSize),
12  Plot("diffCovDszDszStatus", **_commonStatus),
13  Plot("diffCovDszDszUnderOverFlowSign", xtitle="cov(dsz, dsz)", **_common),
14 ],
15  ncols=3, legendDy=_legendDy_4rows
16 )

Definition at line 756 of file trackingPlots.py.

tuple trackingPlots._packedCandidateFlow
Initial value:
1 = PlotGroup("flow", [
2  Plot("selectionFlow", xbinlabelsize=10, xbinlabeloption="d", adjustMarginRight=0.1, drawStyle="hist", ylog=True, ymin=[0.9, 9, 9e1, 9e2, 9e3, 9e4, 9e5, 9e6, 9e7]),
3  Plot("diffCharge", xtitle="Charge", **_common),
4  Plot("diffIsHighPurity", xtitle="High purity status", **_common),
5  Plot("diffNdof", xtitle="ndof", **_common),
6  Plot("diffNormalizedChi2", xtitle="#chi^{2}/ndof", **_common),
7 ])

Definition at line 689 of file trackingPlots.py.

tuple trackingPlots._packedCandidateHits
Initial value:
1 = PlotGroup("hits", [
2  Plot("diffNumberOfHits", xtitle="Hits", **_common),
3  Plot("diffNumberOfPixelHits", xtitle="Pixel hits", **_common),
4  Plot("diffLostInnerHits", xtitle="Lost inner hits", **_common),
5  Plot("numberHitsOverMax", xtitle="Number of overflown hits", **_common),
6  Plot("numberPixelHitsOverMax", xtitle="Number of overflown pixel hits", **_common),
7  Plot("numberStripHitsOverMax", xtitle="Number of overflown strip hits", **_common),
8 ],
9  ncols=3, legendDy=_legendDy_2rows_3cols
10 )

Definition at line 705 of file trackingPlots.py.

tuple trackingPlots._packedCandidateHitsHitPattern
Initial value:
1 = PlotGroup("hitsHitPattern", [
2  Plot("diffHitPatternNumberOfValidHits", xtitle="Valid hits (via HitPattern)", **_common),
3  Plot("diffHitPatternNumberOfValidPixelHits", xtitle="Valid pixel hits (via HitPattern)", **_common),
4  Plot("diffHitPatternHasValidHitInFirstPixelBarrel", xtitle="Has valid hit in BPix1 layer (via HitPattern)", **_common),
5  Plot("diffHitPatternNumberOfLostPixelHits", xtitle="Lost pixel hits (via HitPattern)", **_common),
6 ],
7  legendDy=_legendDy_2rows
8 )

Definition at line 697 of file trackingPlots.py.

tuple trackingPlots._packedCandidateImpactParameter1
Initial value:
1 = PlotGroup("impactParameter1", [
2  Plot("diffDxyAssocPV", xtitle="dxy(assocPV)", adjustMarginRight=0.02, **_commonLabelSize),
3  Plot("diffDxyAssocPVStatus", **_commonStatus),
4  Plot("diffDxyAssocPVUnderOverFlowSign", xtitle="dxy(assocPV)", **_common),
5  Plot("diffDzAssocPV", xtitle="dz(assocPV)", adjustMarginRight=0.02, **_commonLabelSize),
6  Plot("diffDzAssocPVStatus", **_commonStatus),
7  Plot("diffDzAssocPVUnderOverFlowSign", xtitle="dz(assocPV)", **_common),
8  Plot("diffDxyError", xtitle="dxyError()", adjustMarginRight=0.02, **_commonLabelSize),
9  Plot("diffDszError", xtitle="dszError()", adjustMarginRight=0.02, **_commonLabelSize),
10  Plot("diffDzError", xtitle="dzError()", adjustMarginRight=0.02, **_commonLabelSize),
11 
12 ],
13  ncols=3
14 )

Definition at line 716 of file trackingPlots.py.

tuple trackingPlots._packedCandidateImpactParameter2
Initial value:
1 = PlotGroup("impactParameter2", [
2  Plot("diffDxyPV", xtitle="dxy(PV) via PC", **_commonLabelSize),
3  Plot("diffDzPV", xtitle="dz(PV) via PC", **_commonLabelSize),
4  Plot("diffTrackDxyAssocPV", xtitle="dxy(PV) via PC::bestTrack()", **_commonLabelSize),
5  Plot("diffTrackDzAssocPV", xtitle="dz(PV) via PC::bestTrack()", **_commonLabelSize),
6  Plot("diffTrackDxyError", xtitle="dxyError() via PC::bestTrack()", adjustMarginRight=0.02, **_commonLabelSize),
7  Plot("diffTrackDzError", xtitle="dzError() via PC::bestTrack()", **_commonLabelSize),
8 ])

Definition at line 731 of file trackingPlots.py.

tuple trackingPlots._packedCandidateKinematics
Initial value:
1 = PlotGroup("kinematics", [
2  Plot("diffPt", xtitle="p_{T}", **_common),
3  Plot("diffPtError", xtitle="p_{T} error", **_common),
4  Plot("diffEta", xtitle="#eta", **_common),
5  Plot("diffEtaError", xtitle="#eta error", **_common),
6  Plot("diffPhi", xtitle="#phi", **_common),
7 ])

Definition at line 783 of file trackingPlots.py.

list trackingPlots._packedCandidatePlots
Initial value:
1 = [
2  _packedCandidateFlow,
3  _packedCandidateKinematics,
4  _packedCandidateVertex,
5  _packedCandidateImpactParameter1,
6  _packedCandidateImpactParameter2,
7  _packedCandidateCovarianceMatrix1,
8  _packedCandidateCovarianceMatrix2,
9  _packedCandidateHits,
10  _packedCandidateHitsHitPattern,
11 ]

Definition at line 998 of file trackingPlots.py.

tuple trackingPlots._packedCandidateVertex
Initial value:
1 = PlotGroup("vertex", [
2  Plot("diffVx", xtitle="Reference point x", **_common),
3  Plot("diffVy", xtitle="Reference point y", **_common),
4  Plot("diffVz", xtitle="Reference point z", **_common),
5 ],
6  legendDy=_legendDy_2rows
7 )

Definition at line 774 of file trackingPlots.py.

tuple trackingPlots._pixelTiming
Initial value:
1 = PlotGroup("pixelTiming", [
2  Plot(AggregateBins("pixel", "reconstruction_step_module_average", {"pixelTracks": ["pixelTracks"]}), ytitle="Average processing time [ms]", title="Average processing time / event", drawStyle="HIST")
3 ])

Definition at line 1402 of file trackingPlots.py.

list trackingPlots._possibleTrackingColls
Initial value:
1 = [
2  'initialStepPreSplitting',
3  'initialStep',
4  'highPtTripletStep', # phase1
5  'detachedQuadStep', # phase1
6  'detachedTripletStep',
7  'lowPtQuadStep', # phase1
8  'lowPtTripletStep',
9  'pixelPairStep',
10  'mixedTripletStepA', # seeds
11  'mixedTripletStepB', # seeds
12  'mixedTripletStep',
13  'pixelLessStep',
14  'tobTecStepPair', # seeds
15  'tobTecStepTripl', # seeds
16  'tobTecStep',
17  'jetCoreRegionalStep',
18  'muonSeededStepInOut',
19  'muonSeededStepOutIn',
20  'duplicateMerge',
21 ]

Definition at line 411 of file trackingPlots.py.

dictionary trackingPlots._possibleTrackingCollsOld
Initial value:
1 = {
2  "Zero" : "iter0",
3  "First" : "iter1",
4  "Second": "iter2",
5  "Third" : "iter3",
6  "Fourth": "iter4",
7  "Fifth" : "iter5",
8  "Sixth" : "iter6",
9  "Seventh": "iter7",
10  "Ninth" : "iter9",
11  "Tenth" : "iter10",
12 }

Definition at line 432 of file trackingPlots.py.

list trackingPlots._possibleTrackingNonIterationColls
Initial value:
1 = [
2  'ak4PFJets',
3  'btvLike',
4 ]

Summary plots.

Definition at line 407 of file trackingPlots.py.

tuple trackingPlots._pulls
Initial value:
1 = PlotGroup("pulls", [
2  Plot("pullPt", **_common),
3  Plot("pullQoverp", **_common),
4  Plot("pullPhi", **_common),
5  Plot("pullTheta", **_common),
6  Plot("pullDxy", **_common),
7  Plot("pullDz", **_common),
8 ],
9  legendDx=0.1, legendDw=-0.1, legendDh=-0.015
10 )

Definition at line 317 of file trackingPlots.py.

tuple trackingPlots._pvassociation1
Initial value:
1 = PlotGroup("pvassociation1", [
2  Plot(ROC("effic_vs_fakepileup_dzpvcut", "effic_vs_dzpvcut", FakeDuplicate("fakepileup_vs_dzpvcut", assoc="num_assoc(recoToSim)_dzpvcut", reco="num_reco_dzpvcut", dup="num_pileup_dzpvcut")),
3  xtitle="Efficiency vs. cut on dz(PV)", **_common),
4  Plot(ROC("effic_vs_fakepileup2_dzpvcut", "effic_vs_dzpvcut", FakeDuplicate("fakepileup_vs_dzpvcut", assoc="num_assoc(recoToSim)_dzpvcut", reco="num_reco_dzpvcut", dup="num_pileup_dzpvcut"), zaxis=True),
5  xtitle="Efficiency", ztitle="Cut on dz(PV)", **_common2),
6  #
7  Plot(ROC("effic_vs_fakepileup_dzpvsigcut", "effic_vs_dzpvsigcut", FakeDuplicate("fakepileup_vs_dzpvsigcut", assoc="num_assoc(recoToSim)_dzpvsigcut", reco="num_reco_dzpvsigcut", dup="num_pileup_dzpvsigcut")),
8  xtitle="Efficiency vs. cut on dz(PV)/dzError", **_common),
9  Plot(ROC("effic_vs_fakepileup2_dzpvsigcut", "effic_vs_dzpvsigcut", FakeDuplicate("fakepileup_vs_dzpvsigcut", assoc="num_assoc(recoToSim)_dzpvsigcut", reco="num_reco_dzpvsigcut", dup="num_pileup_dzpvsigcut"), zaxis=True),
10  xtitle="Efficiency", ztitle="Cut on dz(PV)/dzError", **_common2),
11  ##
12  Plot(ROC("effic_vs_fakepileup_dzpvcut_pt", "effic_vs_dzpvcut_pt", FakeDuplicate("fakepileup_vs_dzpvcut_pt", assoc="num_assoc(recoToSim)_dzpvcut_pt", reco="num_reco_dzpvcut_pt", dup="num_pileup_dzpvcut_pt")),
13  xtitle="Efficiency (p_{T} weighted) vs. cut on dz(PV)", **_common),
14  Plot(ROC("effic_vs_fakepileup2_dzpvcut_pt", "effic_vs_dzpvcut_pt", FakeDuplicate("fakepileup_vs_dzpvcut_pt", assoc="num_assoc(recoToSim)_dzpvcut_pt", reco="num_reco_dzpvcut_pt", dup="num_pileup_dzpvcut_pt"), zaxis=True),
15  xtitle="Efficiency (p_{T} weighted)", ztitle="Cut on dz(PV)", **_common2),
16  #
17  Plot(ROC("effic_vs_fakepileup_dzpvsigcut_pt", "effic_vs_dzpvsigcut_pt", FakeDuplicate("fakepileup_vs_dzpvsigcut_pt", assoc="num_assoc(recoToSim)_dzpvsigcut_pt", reco="num_reco_dzpvsigcut_pt", dup="num_pileup_dzpvsigcut_pt")),
18  xtitle="Efficiency (p_{T} weighted) vs. cut on dz(PV)/dzError", **_common),
19  Plot(ROC("effic_vs_fakepileup2_dzpvsigcut_pt", "effic_vs_dzpvsigcut_pt", FakeDuplicate("fakepileup_vs_dzpvsigcut_pt", assoc="num_assoc(recoToSim)_dzpvsigcut_pt", reco="num_reco_dzpvsigcut_pt", dup="num_pileup_dzpvsigcut_pt"), zaxis=True),
20  xtitle="Efficiency (p_{T} weighted)", ztitle="Cut on dz(PV)/dzError", **_common2),
21 ], onlyForPileup=True,
22  legendDy=_legendDy_4rows
23 )

Definition at line 229 of file trackingPlots.py.

tuple trackingPlots._pvassociation2
Initial value:
1 = PlotGroup("pvassociation2", [
2  Plot("effic_vs_dzpvcut", xtitle="Cut on dz(PV) (cm)", ytitle="Efficiency vs. cut on dz(PV)", ymax=_maxEff),
3  Plot("effic_vs_dzpvcut2", xtitle="Cut on dz(PV) (cm)", ytitle="Efficiency (excl. trk eff)", ymax=_maxEff),
4  Plot("fakerate_vs_dzpvcut", xtitle="Cut on dz(PV) (cm)", ytitle="Fake rate vs. cut on dz(PV)", ymax=_maxFake),
5  Plot("pileuprate_dzpvcut", xtitle="Cut on dz(PV) (cm)", ytitle="Pileup rate vs. cut on dz(PV)", ymax=_maxFake),
6  #
7  Plot("effic_vs_dzpvsigcut", xtitle="Cut on dz(PV)/dzError", ytitle="Efficiency vs. cut on dz(PV)/dzError", ymax=_maxEff),
8  Plot("effic_vs_dzpvsigcut2", xtitle="Cut on dz(PV)/dzError", ytitle="Efficiency (excl. trk eff)", ymax=_maxEff),
9  Plot("fakerate_vs_dzpvsigcut", xtitle="Cut on dz(PV)/dzError", ytitle="Fake rate vs. cut on dz(PV)/dzError", ymax=_maxFake),
10  Plot("pileuprate_dzpvsigcut", xtitle="Cut on dz(PV)/dzError", ytitle="Pileup rate vs. cut on dz(PV)/dzError", ymax=_maxFake),
11 ], onlyForPileup=True,
12  legendDy=_legendDy_4rows
13 )

Definition at line 252 of file trackingPlots.py.

tuple trackingPlots._pvassociation3
Initial value:
1 = PlotGroup("pvassociation3", [
2  Plot("effic_vs_dzpvcut_pt", xtitle="Cut on dz(PV) (cm)", ytitle="Efficiency (p_{T} weighted)", ymax=_maxEff),
3  Plot("effic_vs_dzpvcut2_pt", xtitle="Cut on dz(PV) (cm)", ytitle="Efficiency (p_{T} weighted, excl. trk eff)", ymax=_maxEff),
4  Plot("fakerate_vs_dzpvcut_pt", xtitle="Cut on dz(PV) (cm)", ytitle="Fake rate (p_{T} weighted)", ymax=_maxFake),
5  Plot("pileuprate_dzpvcut_pt", xtitle="Cut on dz(PV) (cm)", ytitle="Pileup rate (p_{T} weighted)", ymax=_maxFake),
6  #
7  Plot("effic_vs_dzpvsigcut_pt", xtitle="Cut on dz(PV)/dzError", ytitle="Efficiency (p_{T} weighted)", ymax=_maxEff),
8  Plot("effic_vs_dzpvsigcut2_pt", xtitle="Cut on dz(PV)/dzError", ytitle="Efficiency (p_{T} weighted, excl. trk eff)", ymax=_maxEff),
9  Plot("fakerate_vs_dzpvsigcut_pt", xtitle="Cut on dz(PV)/dzError", ytitle="Fake rate (p_{T} weighted)", ymax=_maxFake),
10  Plot("pileuprate_dzpvsigcut_pt", xtitle="Cut on dz(PV)/dzError", ytitle="Pileup rate (p_{T} weighted)", ymax=_maxFake),
11 ], onlyForPileup=True,
12  legendDy=_legendDy_4rows
13 )

Definition at line 265 of file trackingPlots.py.

list trackingPlots._recoBasedPlots
Initial value:
1 = [
2  _dupandfake1,
3  _dupandfake2,
4  _dupandfake3,
5  _dupandfake4,
6  _dupandfake5,
7  _pvassociation1,
8  _pvassociation2,
9  _pvassociation3,
10  _dedx,
11 # _chargemisid,
12  _hitsAndPt,
13  _pulls,
14  _resolutionsEta,
15  _resolutionsPt,
16  _tuning,
17 ]

Definition at line 933 of file trackingPlots.py.

tuple trackingPlots._resolutionsEta
Initial value:
1 = PlotGroup("resolutionsEta", [
2  Plot("phires_vs_eta_Sigma", ytitle="#sigma(#delta #phi) (rad)", **_common),
3  Plot("cotThetares_vs_eta_Sigma", ytitle="#sigma(#delta cot(#theta))", **_common),
4  Plot("dxyres_vs_eta_Sigma", ytitle="#sigma(#delta d_{xy}) (cm)", **_common),
5  Plot("dzres_vs_eta_Sigma", ytitle="#sigma(#delta d_{z}) (cm)", **_common),
6  Plot("ptres_vs_eta_Sigma", ytitle="#sigma(#delta p_{T}/p_{T})", **_common),
7 ])

Definition at line 328 of file trackingPlots.py.

tuple trackingPlots._resolutionsPt
Initial value:
1 = PlotGroup("resolutionsPt", [
2  Plot("phires_vs_pt_Sigma", ytitle="#sigma(#delta #phi) (rad)", **_common),
3  Plot("cotThetares_vs_pt_Sigma", ytitle="#sigma(#delta cot(#theta))", **_common),
4  Plot("dxyres_vs_pt_Sigma", ytitle="#sigma(#delta d_{xy}) (cm)", **_common),
5  Plot("dzres_vs_pt_Sigma", ytitle="#sigma(#delta d_{z}) (cm)", **_common),
6  Plot("ptres_vs_pt_Sigma", ytitle="#sigma(#delta p_{T}/p_{T})", **_common),
7 ])

Definition at line 336 of file trackingPlots.py.

list trackingPlots._seedingBuildingPlots
Initial value:
1 = _simBasedPlots+[
2  _dupandfake1,
3  _dupandfake2,
4  _dupandfake3,
5  _dupandfake4,
6  _dupandfake5,
7  _hitsAndPt,
8  _makeMVAPlots(1),
9  _makeMVAPlots(2),
10  _makeMVAPlots(2, hp=True),
11  _makeMVAPlots(3), # add more if needed
12  _makeMVAPlots(3, hp=True), # add more if needed
13 ]

Definition at line 950 of file trackingPlots.py.

tuple trackingPlots._seedingLayerSet_common = dict(removeEmptyBins=True, xbinlabelsize=8, xinlabeloption="d", adjustMarginRight=0.1)

Definition at line 209 of file trackingPlots.py.

list trackingPlots._simBasedPlots
Initial value:
1 = [
2  _effandfake1,
3  _effandfake2,
4  _effandfake3,
5  _effandfake4,
6 ]

Definition at line 927 of file trackingPlots.py.

list trackingPlots._summaryPlots
Initial value:
1 = [
2  _summary,
3  _summaryN,
4  _summaryByOriginalAlgo,
5  _summaryByOriginalAlgoN,
6  _summaryByAlgoMask,
7  _summaryByAlgoMaskN,
8  _summaryPt09,
9  _summaryPt09N,
10 ]

Definition at line 974 of file trackingPlots.py.

list trackingPlots._summaryPlotsHp
Initial value:
1 = [
2  _summaryHp,
3  _summaryNHp,
4  _summaryByOriginalAlgoHp,
5  _summaryByOriginalAlgoNHp,
6  _summaryByAlgoMaskHp,
7  _summaryByAlgoMaskNHp,
8  _summaryPt09Hp,
9  _summaryPt09NHp,
10 ]

Definition at line 984 of file trackingPlots.py.

list trackingPlots._summaryPlotsSeeds
Initial value:
1 = [
2  _summarySeeds,
3  _summarySeedsN,
4 ]

Definition at line 994 of file trackingPlots.py.

tuple trackingPlots._time_per_iter = AggregateBins("iteration", "reconstruction_step_module_average", _iterModuleMap(), ignoreMissingBins=True, originalOrder=True)

Definition at line 1374 of file trackingPlots.py.

list trackingPlots._timeFolders
Initial value:
1 = [
2  "DQMData/Run 1/DQM/Run summary/TimerService/Paths",
3  "DQMData/Run 1/DQM/Run summary/TimerService/process RECO/Paths",
4 ]

Definition at line 1406 of file trackingPlots.py.

tuple trackingPlots._timing_iterations
Initial value:
1 = PlotGroup("iterations", [
2  Plot(AggregateBins(i.name(), "reconstruction_step_module_average", collections.OrderedDict(i.modules()), ignoreMissingBins=True),
3  ytitle="Average processing time (ms)", title=i.name(), **_common)
4  for i in _iterations
5 ],
6  ncols=4, legend=False
7 )

Definition at line 1395 of file trackingPlots.py.

tuple trackingPlots._timing_summary
Initial value:
1 = PlotGroup("summary", [
2  Plot(_time_per_iter,
3  ytitle="Average processing time (ms)", title="Average processing time / event", legendDx=-0.4, **_common),
4  Plot(AggregateBins("iteration_fraction", "reconstruction_step_module_average", _iterModuleMap(), ignoreMissingBins=True, originalOrder=True),
5  ytitle="Fraction", title="", normalizeToUnitArea=True, **_common),
6  #
7  Plot(AggregateBins("step", "reconstruction_step_module_average", _stepModuleMap(), ignoreMissingBins=True),
8  ytitle="Average processing time (ms)", title="Average processing time / event", **_common),
9  Plot(AggregateBins("step_fraction", "reconstruction_step_module_average", _stepModuleMap(), ignoreMissingBins=True),
10  ytitle="Fraction", title="", normalizeToUnitArea=True, **_common),
11  #
12  Plot(TimePerTrackPlot("iteration_track", _time_per_iter, selectedTracks=False),
13  ytitle="Average time / built track (ms)", title="Average time / built track", **_common),
14  Plot(TimePerTrackPlot("iteration_trackhp", _time_per_iter, selectedTracks=True),
15  ytitle="Average time / selected track (ms)", title="Average time / selected HP track by algoMask", **_common),
16 # Plot(AggregateBins("iterative_norm", "reconstruction_step_module_average", _iterModuleMap), ytitle="Average processing time", title="Average processing time / event (normalized)", drawStyle="HIST", xbinlabelsize=0.03, normalizeToUnitArea=True)
17 # Plot(AggregateBins("iterative_norm", "reconstruction_step_module_average", _iterModuleMap, normalizeTo="ak7CaloJets"), ytitle="Average processing time / ak7CaloJets", title="Average processing time / event (normalized to ak7CaloJets)", drawStyle="HIST", xbinlabelsize=0.03)
18 
19  ],
20 )

Definition at line 1375 of file trackingPlots.py.

tuple trackingPlots._tplifetime
Initial value:
1 = PlotGroup("tplifetime", [
2  Plot("TPlip", xtitle="TP lip", **_common),
3  Plot("TPtip", xtitle="TP tip", **_common),
4 ])

Definition at line 1420 of file trackingPlots.py.

string trackingPlots._trackingNumberOfEventsHistogram = "DQMData/Run 1/Tracking/Run summary/Track/general_trackingParticleRecoAsssociation/tracks"

Definition at line 41 of file trackingPlots.py.

tuple trackingPlots._tuning
Initial value:
1 = PlotGroup("tuning", [
2  Plot("chi2", stat=True, normalizeToUnitArea=True, ylog=True, ymin=1e-6, ymax=[0.1, 0.2, 0.5, 1.0001], drawStyle="hist", xtitle="#chi^{2}", ratioUncertainty=False),
3  Plot("chi2_prob", stat=True, normalizeToUnitArea=True, drawStyle="hist", xtitle="Prob(#chi^{2})"),
4  Plot("chi2mean", title="", xtitle="#eta", ytitle="< #chi^{2} / ndf >", ymin=[0, 0.5], ymax=[2, 2.5, 3, 5],
5  fallback={"name": "chi2_vs_eta", "profileX": True}),
6  Plot("ptres_vs_eta_Mean", scale=100, title="", xtitle="TP #eta (PCA to beamline)", ytitle="< #delta p_{T} / p_{T} > [%]", ymin=-1.5, ymax=1.5)
7 ])

Definition at line 309 of file trackingPlots.py.

string trackingPlots.loopSubFolders = "timing"

Definition at line 1415 of file trackingPlots.py.

tuple trackingPlots.plotter = Plotter()

Definition at line 1009 of file trackingPlots.py.

tuple trackingPlots.plotterExt = Plotter()

Definition at line 1010 of file trackingPlots.py.

tuple trackingPlots.timePlotter = Plotter()

Definition at line 1410 of file trackingPlots.py.

tuple trackingPlots.tpPlotter = Plotter()

Definition at line 1425 of file trackingPlots.py.