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  TrackingPlotFolder
 

Functions

def _appendTrackingPlots
 
def _collhelper
 
def _mapCollectionToAlgoQuality
 
def _summaryBinRename
 
def _trackingFolders
 

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 _commonAB
 
dictionary _commonN = {"ylog": True, "ymin": _minMaxN, "ymax": _minMaxN}
 
tuple _dedx
 
tuple _dupandfake1
 
tuple _dupandfake2
 
tuple _dupandfake3
 
tuple _dupandfake4
 
tuple _effandfake1
 
tuple _effandfake2
 
tuple _effandfake3
 
tuple _effvspos
 
tuple _hitsAndPt
 
tuple _iterModuleMap
 
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 _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]
 
tuple _packedCandidateFlow
 
tuple _packedCandidateHits
 
tuple _packedCandidateMomVert
 
tuple _packedCandidateParam1
 
tuple _packedCandidateParam2
 
list _packedCandidatePlots
 
tuple _pixelTiming
 
list _possibleTrackingColls
 Summary plots. More...
 
tuple _pulls
 
tuple _pvassociation1
 
tuple _pvassociation2
 
tuple _pvassociation3
 
list _recoBasedPlots
 
tuple _resolutionsEta
 
tuple _resolutionsPt
 
list _simBasedPlots
 
tuple _summary
 
tuple _summaryHp
 
tuple _summaryN
 
tuple _summaryNHp
 
list _summaryPlots
 
list _summaryPlotsHp
 
tuple _timing
 
tuple _tplifetime
 
tuple _tuning
 
tuple plotter = Plotter()
 
tuple timePlotter = Plotter()
 
tuple tpPlotter = Plotter()
 

Function Documentation

def trackingPlots._appendTrackingPlots (   lastDirName,
  name,
  algoPlots,
  onlyForPileup = False 
)
private

Definition at line 493 of file trackingPlots.py.

References _trackingFolders().

494 def _appendTrackingPlots(lastDirName, name, algoPlots, onlyForPileup=False):
495  # to keep backward compatibility, this set of plots has empty name
496  plotter.append(name, _trackingFolders(lastDirName), TrackingPlotFolder(*algoPlots, onlyForPileup=onlyForPileup, purpose=PlotPurpose.TrackingIteration))
497  summaryName = ""
498  if name != "":
499  summaryName += name+"_"
500  summaryName += "summary"
501  plotter.append(summaryName, _trackingFolders(lastDirName),
502  PlotFolder(*_summaryPlots, loopSubFolders=False, onlyForPileup=onlyForPileup,
503  purpose=PlotPurpose.TrackingSummary, page="summary", section=name))
504  plotter.append(summaryName+"_highPurity", _trackingFolders(lastDirName),
505  PlotFolder(*_summaryPlotsHp, loopSubFolders=False, onlyForPileup=onlyForPileup,
506  purpose=PlotPurpose.TrackingSummary, page="summary",
507  section=name+"_highPurity" if name != "" else "highPurity"),
508  fallbackNames=[summaryName]) # backward compatibility for release validation, the HP plots used to be in the same directory with all-track plots
509 _appendTrackingPlots("Track", "", _simBasedPlots+_recoBasedPlots)
510 _appendTrackingPlots("TrackAllTPEffic", "allTPEffic", _simBasedPlots, onlyForPileup=True)
511 _appendTrackingPlots("TrackFromPV", "fromPV", _simBasedPlots+_recoBasedPlots, onlyForPileup=True)
512 _appendTrackingPlots("TrackFromPVAllTP", "fromPVAllTP", _recoBasedPlots, onlyForPileup=True)
513 
514 # MiniAOD
515 plotter.append("packedCandidate", _trackingFolders("PackedCandidate"),
516  PlotFolder(*_packedCandidatePlots, loopSubFolders=False,
517  purpose=PlotPurpose.MiniAOD, page="miniaod", section="PackedCandidate"))
518 plotter.append("packedCandidateLostTracks", _trackingFolders("PackedCandidate/lostTracks"),
519  PlotFolder(*_packedCandidatePlots, loopSubFolders=False,
520  purpose=PlotPurpose.MiniAOD, page="miniaod", section="PackedCandidate (lostTracks)"))
def _appendTrackingPlots
def trackingPlots._collhelper (   name)
private

Definition at line 297 of file trackingPlots.py.

298 def _collhelper(name):
return (name, [name])
def trackingPlots._mapCollectionToAlgoQuality (   collName)
private

Definition at line 275 of file trackingPlots.py.

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

276 def _mapCollectionToAlgoQuality(collName):
277  if "Hp" in collName:
278  quality = "highPurity"
279  else:
280  quality = ""
281  collNameLow = collName.replace("Hp", "").lower()
282 
283  algo = None
284  if "general" in collNameLow or collNameLow in ["cutsreco", "cutsrecofrompv", "cutsrecofrompvalltp",
285  "cutsrecotracks", "custrecotracksfrompv", "cutsrecotracksfrompvalltp"]:
286  algo = "ootb"
287  else:
288  for coll in _possibleTrackingColls:
289  if coll.lower() in collNameLow:
290  algo = coll
291  break
292  # fallback
293  if algo is None:
294  algo = collName
295 
296  return (algo, quality)
def _mapCollectionToAlgoQuality
def trackingPlots._summaryBinRename (   binLabel,
  highPurity 
)
private

Definition at line 301 of file trackingPlots.py.

References _mapCollectionToAlgoQuality().

302 def _summaryBinRename(binLabel, highPurity):
303  (algo, quality) = _mapCollectionToAlgoQuality(binLabel)
304  ret = None
305  if highPurity:
306  if quality == "highPurity":
307  ret = algo
308  else:
309  if quality == "":
310  ret = algo
311  if ret == "ootb":
312  ret = "generalTracks"
313  return ret
def _mapCollectionToAlgoQuality
def trackingPlots._trackingFolders (   lastDirName = "Track")
private

Definition at line 447 of file trackingPlots.py.

Referenced by _appendTrackingPlots().

448 def _trackingFolders(lastDirName="Track"):
449  return [
450  "DQMData/Run 1/Tracking/Run summary/"+lastDirName,
451  "DQMData/Tracking/"+lastDirName,
452  "DQMData/Run 1/RecoTrackV/Run summary/"+lastDirName,
453  "DQMData/RecoTrackV/"+lastDirName,
454  ]

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 204 of file trackingPlots.py.

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

Definition at line 299 of file trackingPlots.py.

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

Definition at line 300 of file trackingPlots.py.

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

PackedCandidate plots.

Definition at line 64 of file trackingPlots.py.

dictionary trackingPlots._common2 = {}

Definition at line 135 of file trackingPlots.py.

dictionary trackingPlots._commonAB
Initial value:
1 = {"mapping": _collLabelMap,
2  "renameBin": lambda bl: _summaryBinRename(bl, False)}

Definition at line 315 of file trackingPlots.py.

dictionary trackingPlots._commonN = {"ylog": True, "ymin": _minMaxN, "ymax": _minMaxN}

Definition at line 317 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=-0.025
8 )

Definition at line 195 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  Plot("fakerate_vs_phi", xtitle="track #phi", ytitle="fakerate vs #phi", ymax=_maxFake),
9  Plot("duplicatesRate_phi", xtitle="track #phi", ytitle="duplicates rate vs #phi", ymax=_maxFake),
10  Plot("pileuprate_phi", xtitle="track #phi", ytitle="pileup rate vs #phi", ymax=_maxFake),
11 ], ncols=3)

Definition at line 74 of file trackingPlots.py.

tuple trackingPlots._dupandfake2
Initial value:
1 = PlotGroup("dupandfake2", [
2  Plot("fakerate_vs_dxy", xtitle="track dxy (cm)", ytitle="fakerate vs dxy", ymax=_maxFake),
3  Plot("duplicatesRate_dxy", xtitle="track dxy (cm)", ytitle="duplicates rate vs dxy", ymax=_maxFake),
4  Plot("pileuprate_dxy", xtitle="track dxy (cm)", ytitle="pileup rate vs dxy", ymax=_maxFake),
5  #
6  Plot("fakerate_vs_dxypv", xtitle="track dxy(PV) (cm)", ytitle="fakerate vs dxy(PV)", ymax=_maxFake),
7  Plot("duplicatesRate_dxypv", xtitle="track dxy(PV) (cm)", ytitle="duplicates rate vs dxy(PV)", ymax=_maxFake),
8  Plot("pileuprate_dxypv", xtitle="track dxy(PV) (cm)", ytitle="pileup rate vs dxy(PV)", ymax=_maxFake),
9  #
10  Plot("fakerate_vs_dz", xtitle="track dz (cm)", ytitle="fakerate vs dz", title="", ymax=_maxFake),
11  Plot("duplicatesRate_dz", xtitle="track dz (cm)", ytitle="duplicates rate vs dz", title="", ymax=_maxFake),
12  Plot("pileuprate_dz", xtitle="track dz (cm)", ytitle="pileup rate vs dz", title="", ymax=_maxFake),
13  #
14  Plot("fakerate_vs_dzpv", xtitle="track dz(PV) (cm)", ytitle="fakerate vs dz(PV)", title="", ymax=_maxFake),
15  Plot("duplicatesRate_dzpv", xtitle="track dz(PV) (cm)", ytitle="duplicates rate vs dz(PV)", title="", ymax=_maxFake),
16  Plot("pileuprate_dzpv", xtitle="track dz(PV) (cm)", ytitle="pileup rate vs dz(PV)", title="", ymax=_maxFake),
17 ], ncols=3,
18  legendDy=0.09
19 )

Definition at line 85 of file trackingPlots.py.

tuple trackingPlots._dupandfake3
Initial value:
1 = PlotGroup("dupandfake3", [
2  Plot("fakerate_vs_hit", xtitle="track hits", ytitle="fakerate vs hits", ymax=_maxFake),
3  Plot("duplicatesRate_hit", xtitle="track hits", ytitle="duplicates rate vs hits", ymax=_maxFake),
4  Plot("pileuprate_hit", xtitle="track hits", ytitle="pileup rate vs hits", ymax=_maxFake),
5  #
6  Plot("fakerate_vs_layer", xtitle="track layers", ytitle="fakerate vs layer", ymax=_maxFake, xmax=25),
7  Plot("duplicatesRate_layer", xtitle="track layers", ytitle="duplicates rate vs layers", ymax=_maxFake, xmax=25),
8  Plot("pileuprate_layer", xtitle="track layers", ytitle="pileup rate vs layers", ymax=_maxFake, xmax=25),
9  #
10  Plot("fakerate_vs_pixellayer", xtitle="track pixel layers", ytitle="fakerate vs pixel layers", title="", ymax=_maxFake, xmax=6),
11  Plot("duplicatesRate_pixellayer", xtitle="track pixel layers", ytitle="duplicates rate vs pixel layers", title="", ymax=_maxFake, xmax=6),
12  Plot("pileuprate_pixellayer", xtitle="track pixel layers", ytitle="pileup rate vs pixel layers", title="", ymax=_maxFake, xmax=6),
13  #
14  Plot("fakerate_vs_3Dlayer", xtitle="track 3D layers", ytitle="fakerate vs 3D layers", ymax=_maxFake, xmax=20),
15  Plot("duplicatesRate_3Dlayer", xtitle="track 3D layers", ytitle="duplicates rate vs 3D layers", ymax=_maxFake, xmax=20),
16  Plot("pileuprate_3Dlayer", xtitle="track 3D layers", ytitle="pileup rate vs 3D layers", ymax=_maxFake, xmax=20)
17 ], ncols=3,
18  legendDy=0.09
19 )

Definition at line 104 of file trackingPlots.py.

tuple trackingPlots._dupandfake4
Initial value:
1 = PlotGroup("dupandfake4", [
2  Plot("fakerate_vs_chi2", xtitle="track #chi^{2}", ytitle="fakerate vs #chi^{2}", ymax=_maxFake),
3  Plot("duplicatesRate_chi2", xtitle="track #chi^{2}", ytitle="duplicates rate vs #chi^{2}", ymax=_maxFake),
4  Plot("pileuprate_chi2", xtitle="track #chi^{2}", ytitle="pileup rate vs #chi^{2}", ymax=_maxFake)
5 ],
6  legendDy=-0.025
7 )

Definition at line 123 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  Plot("effic_vs_phi", xtitle="TP #phi", ytitle="efficiency vs #phi", ymax=_maxEff),
9  Plot(FakeDuplicate("fakeduprate_vs_phi", assoc="num_assoc(recoToSim)_phi", dup="num_duplicate_phi", reco="num_reco_phi", title="fake+duplicates vs #phi"),
10  xtitle="track #phi", ytitle="fake+duplicates rate vs #phi", ymax=_maxFake),
11 ])

Definition at line 20 of file trackingPlots.py.

tuple trackingPlots._effandfake2
Initial value:
1 = PlotGroup("effandfake2", [
2  Plot("effic_vs_dxy", title="Efficiency vs dxy", xtitle="TP dxy (cm)", ytitle="efficiency vs dxy", ymax=_maxEff),
3  Plot(FakeDuplicate("fakeduprate_vs_dxy", assoc="num_assoc(recoToSim)_dxy", dup="num_duplicate_dxy", reco="num_reco_dxy", title="fake+duplicates vs dxy"),
4  xtitle="track dxy (cm)", ytitle="fake+duplicates rate vs dxy", ymax=_maxFake),
5  Plot("effic_vs_dxypv", title="Efficiency vs dxy(PV)", xtitle="TP dxy(PV) (cm)", ytitle="efficiency vs dxy(PV)", ymax=_maxEff),
6  Plot(FakeDuplicate("fakeduprate_vs_dxypv", assoc="num_assoc(recoToSim)_dxypv", dup="num_duplicate_dxypv", reco="num_reco_dxypv", title="fake+duplicates vs dxy(PV)"),
7  xtitle="track dxy(PV) (cm)", ytitle="fake+duplicates rate vs dxy(PV)", ymax=_maxFake),
8  Plot("effic_vs_dz", xtitle="TP dz (cm)", ytitle="Efficiency vs dz", title="", ymax=_maxEff),
9  Plot(FakeDuplicate("fakeduprate_vs_dz", assoc="num_assoc(recoToSim)_dz", dup="num_duplicate_dz", reco="num_reco_dz", title=""),
10  xtitle="track dz (cm)", ytitle="fake+duplicates rate vs dz", ymax=_maxFake),
11  Plot("effic_vs_dzpv", xtitle="TP dz(PV) (cm)", ytitle="Efficiency vs dz(PV)", title="", ymax=_maxEff),
12  Plot(FakeDuplicate("fakeduprate_vs_dz(PV)", assoc="num_assoc(recoToSim)_dzpv", dup="num_duplicate_dzpv", reco="num_reco_dzpv", title=""),
13  xtitle="track dz(PV) (cm)", ytitle="fake+duplicates rate vs dz(PV)", ymax=_maxFake),
14 ],
15  legendDy=0.09
16 )

Definition at line 32 of file trackingPlots.py.

tuple trackingPlots._effandfake3
Initial value:
1 = PlotGroup("effandfake3", [
2  Plot("effic_vs_hit", xtitle="TP hits", ytitle="efficiency vs hits", ymax=_maxEff),
3  Plot(FakeDuplicate("fakeduprate_vs_hit", assoc="num_assoc(recoToSim)_hit", dup="num_duplicate_hit", reco="num_reco_hit", title="fake+duplicates vs hit"),
4  xtitle="track hits", ytitle="fake+duplicates rate vs hits", ymax=_maxFake),
5  Plot("effic_vs_layer", xtitle="TP layers", ytitle="efficiency vs layers", xmax=25, ymax=_maxEff),
6  Plot(FakeDuplicate("fakeduprate_vs_layer", assoc="num_assoc(recoToSim)_layer", dup="num_duplicate_layer", reco="num_reco_layer", title="fake+duplicates vs layer"),
7  xtitle="track layers", ytitle="fake+duplicates rate vs layers", ymax=_maxFake, xmax=25),
8  Plot("effic_vs_pixellayer", xtitle="TP pixel layers", ytitle="efficiency vs pixel layers", title="", xmax=6, ymax=_maxEff),
9  Plot(FakeDuplicate("fakeduprate_vs_pixellayer", assoc="num_assoc(recoToSim)_pixellayer", dup="num_duplicate_pixellayer", reco="num_reco_pixellayer", title=""),
10  xtitle="track pixel layers", ytitle="fake+duplicates rate vs pixel layers", ymax=_maxFake, xmax=6),
11  Plot("effic_vs_3Dlayer", xtitle="TP 3D layers", ytitle="efficiency vs 3D layers", xmax=20, ymax=_maxEff),
12  Plot(FakeDuplicate("fakeduprate_vs_3Dlayer", assoc="num_assoc(recoToSim)_3Dlayer", dup="num_duplicate_3Dlayer", reco="num_reco_3Dlayer", title="fake+duplicates vs 3D layer"),
13  xtitle="track 3D layers", ytitle="fake+duplicates rate vs 3D layers", ymax=_maxFake, xmax=20),
14 ],
15  legendDy=0.09
16 )

Definition at line 48 of file trackingPlots.py.

tuple trackingPlots._effvspos
Initial value:
1 = PlotGroup("effvspos", [
2  Plot("effic_vs_vertpos", xtitle="TP vert xy pos (cm)", ytitle="efficiency vs vert xy pos", **_common),
3  Plot("effic_vs_zpos", xtitle="TP vert z pos (cm)", ytitle="efficiency vs vert z pos", **_common),
4  Plot("effic_vs_dr", xlog=True, xtitle="min #DeltaR", ytitle="efficiency vs #DeltaR", **_common),
5  Plot("fakerate_vs_dr", xlog=True, title="", xtitle="min #DeltaR", ytitle="Fake rate vs #DeltaR", ymin=0, ymax=_maxFake)
6 ],
7  legendDy=-0.025
8 )

Definition at line 65 of file trackingPlots.py.

tuple trackingPlots._hitsAndPt
Initial value:
1 = PlotGroup("hitsAndPt", [
2  Plot("missing_inner_layers", ymax=1, **_common),
3  Plot("missing_outer_layers", ymax=1, **_common),
4  Plot("hits_eta", stat=True, statx=0.38, xtitle="track #eta", ytitle="<hits> vs #eta", ymin=8, ymax=24, statyadjust=[0,0,-0.15]),
5  Plot("hits", stat=True, xtitle="track hits", xmin=0, xmax=40, drawStyle="hist"),
6  Plot("num_simul_pT", xtitle="TP p_{T}", xlog=True, ymax=[1e-1, 2e-1, 5e-1, 1], **_common),
7  Plot("num_reco_pT", xtitle="track p_{T}", xlog=True, ymax=[1e-1, 2e-1, 5e-1, 1], **_common)
8 ])

Definition at line 213 of file trackingPlots.py.

tuple trackingPlots._iterModuleMap

Definition at line 521 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 13 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 14 of file trackingPlots.py.

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

Definition at line 18 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 17 of file trackingPlots.py.

tuple trackingPlots._packedCandidateFlow
Initial value:
1 = PlotGroup("flow", [
2  Plot("selectionFlow", xbinlabelsize=10, xbinlabeloption="d", 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 362 of file trackingPlots.py.

tuple trackingPlots._packedCandidateHits
Initial value:
1 = PlotGroup("hits", [
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  Plot("diffNumberOfHits", xtitle="Hits", **_common),
7  Plot("diffNumberOfPixelHits", xtitle="Pixel hits", **_common),
8  Plot("diffLostInnerHits", xtitle="Lost inner hits", **_common),
9 ],
10  legendDy=0.09
11 )

Definition at line 369 of file trackingPlots.py.

tuple trackingPlots._packedCandidateMomVert
Initial value:
1 = PlotGroup("momentumVertex", [
2  Plot("diffPx", xtitle="p_{x}", **_common),
3  Plot("diffVx", xtitle="Reference point x", **_common),
4  Plot("diffPy", xtitle="p_{y}", **_common),
5  Plot("diffVy", xtitle="Reference point y", **_common),
6  Plot("diffPz", xtitle="p_{z}", **_common),
7  Plot("diffVz", xtitle="Reference point z", **_common),
8 ])

Definition at line 382 of file trackingPlots.py.

tuple trackingPlots._packedCandidateParam1
Initial value:
1 = PlotGroup("param1", [
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  Plot("diffPhiError", xtitle="#phi error", **_common),
8 ])

Definition at line 392 of file trackingPlots.py.

tuple trackingPlots._packedCandidateParam2
Initial value:
1 = PlotGroup("param2", [
2  Plot("diffDxy", xtitle="d_{xy}", **_common),
3  Plot("diffDxyError", xtitle="d_{xy} error", **_common),
4  Plot("diffDz", xtitle="d_{z}", **_common),
5  Plot("diffDzError", xtitle="d_{z} error", **_common),
6  Plot("diffQoverp", xtitle="Q/p", **_common),
7  Plot("diffQoverpError", xtitle="Q/p error", **_common),
8  Plot("diffTheta", xtitle="#theta", **_common),
9  Plot("diffThetaError", xtitle="#theta error", **_common),
10 ],
11  legendDy=0.09
12 )

Definition at line 400 of file trackingPlots.py.

list trackingPlots._packedCandidatePlots
Initial value:
1 = [
2  _packedCandidateFlow,
3  _packedCandidateParam1,
4  _packedCandidateParam2,
5  _packedCandidateMomVert,
6  _packedCandidateHits,
7 ]

Definition at line 485 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 620 of file trackingPlots.py.

list trackingPlots._possibleTrackingColls
Initial value:
1 = [
2  'initialStep',
3  'lowPtTripletStep',
4  'pixelPairStep',
5  'detachedTripletStep',
6  'mixedTripletStep',
7  'pixelLessStep',
8  'tobTecStep',
9  'jetCoreRegionalStep',
10  'muonSeededStepInOut',
11  'muonSeededStepOutIn',
12  'ak4PFJets',
13  'btvLike',
14 ]

Summary plots.

Definition at line 261 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 228 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_dzpvcut")),
8  xtitle="Efficiency vs. cut on dz(PV)/dzError", **_common),
9  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_dzpvcut"), 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_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"), zaxis=True),
15  xtitle="Efficiency (p_{T} weighted)", ztitle="Cut on dz(PV)", **_common2),
16  #
17  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_dzpvcut")),
18  xtitle="Efficiency (p_{T} weighted) vs. cut on dz(PV)/dzError", **_common),
19  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_dzpvcut"), zaxis=True),
20  xtitle="Efficiency (p_{T} weighted)", ztitle="Cut on dz(PV)/dzError", **_common2),
21 ], onlyForPileup=True,
22  legendDy=0.09
23 )

Definition at line 142 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=0.09
13 )

Definition at line 165 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=0.09
13 )

Definition at line 178 of file trackingPlots.py.

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

Definition at line 461 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_{0}) [cm]", **_common),
5  Plot("dzres_vs_eta_Sigma", ytitle="#sigma(#delta z_{0}) [cm]", **_common),
6  Plot("ptres_vs_eta_Sigma", ytitle="#sigma(#delta p_{T}/p_{T})", **_common),
7 ])

Definition at line 239 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_{0}) [cm]", **_common),
5  Plot("dzres_vs_pt_Sigma", ytitle="#sigma(#delta z_{0}) [cm]", **_common),
6  Plot("ptres_vs_pt_Sigma", ytitle="#sigma(#delta p_{T}/p_{T})", **_common),
7 ])

Definition at line 247 of file trackingPlots.py.

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

Definition at line 455 of file trackingPlots.py.

tuple trackingPlots._summary
Initial value:
1 = PlotGroup("summary", [
2  Plot(AggregateBins("efficiency", "effic_vs_coll", **_commonAB),
3  title="Efficiency vs collection", ytitle="Efficiency", ymin=1e-3, ymax=1, ylog=True, **_common),
4  Plot(AggregateBins("efficiencyAllPt", "effic_vs_coll_allPt", **_commonAB),
5  title="Efficiency vs collection (no pT cut in denominator)", ytitle="Efficiency", ymin=1e-3, ymax=1, ylog=True, **_common),
6 
7  Plot(AggregateBins("fakerate", "fakerate_vs_coll", **_commonAB), title="Fakerate vs collection", ytitle="Fake rate", ymax=_maxFake, **_common),
8  Plot(AggregateBins("duplicatesRate", "duplicatesRate_coll", **_commonAB), title="Duplicates rate vs collection", ytitle="Duplicates rate", ymax=_maxFake, **_common),
9  Plot(AggregateBins("pileuprate", "pileuprate_coll", **_commonAB), title="Pileup rate vs collection", ytitle="Pileup rate", ymax=_maxFake, **_common),
10 ])

Definition at line 319 of file trackingPlots.py.

tuple trackingPlots._summaryHp
Initial value:
1 = PlotGroup("summary", [
2  Plot(AggregateBins("efficiency", "effic_vs_coll", **_commonAB),
3  title="Efficiency vs collection", ytitle="Efficiency", ymin=1e-3, ymax=1, ylog=True, **_common),
4  Plot(AggregateBins("efficiencyefficiencyAllPt", "effic_vs_coll", **_commonAB),
5  title="Efficiency vs collection (no pT cut in denominator)", ytitle="Efficiency", ymin=1e-3, ymax=1, ylog=True, **_common),
6  Plot(AggregateBins("fakerate", "fakerate_vs_coll", **_commonAB), title="Fakerate vs collection", ytitle="Fake rate", ymax=_maxFake, **_common),
7  Plot(AggregateBins("duplicatesRate", "duplicatesRate_coll", **_commonAB), title="Duplicates rate vs collection", ytitle="Duplicates rate", ymax=_maxFake, **_common),
8  Plot(AggregateBins("pileuprate", "pileuprate_coll", **_commonAB), title="Pileup rate vs collection", ytitle="Pileup rate", ymax=_maxFake, **_common),
9 ])

Definition at line 338 of file trackingPlots.py.

tuple trackingPlots._summaryN
Initial value:
1 = PlotGroup("summary_ntracks", [
2  Plot(AggregateBins("num_reco_coll", "num_reco_coll", **_commonAB), ytitle="Tracks", title="Number of tracks vs collection", **_commonN),
3  Plot(AggregateBins("num_signal_coll", "num_assoc(recoToSim)_coll", **_commonAB), ytitle="Signal tracks", title="Number of signal tracks vs collection", **_commonN),
4  Plot(AggregateBins("num_fake_coll", Subtract("num_fake_coll_orig", "num_reco_coll", "num_assoc(recoToSim)_coll"), **_commonAB), ytitle="Fake tracks", title="Number of fake tracks vs collection", **_commonN),
5  Plot(AggregateBins("num_pileup_coll", "num_pileup_coll", **_commonAB), ytitle="Pileup tracks", title="Number of pileup tracks vs collection", **_commonN),
6  Plot(AggregateBins("num_duplicate_coll", "num_duplicate_coll", **_commonAB), ytitle="Duplicate tracks", title="Number of duplicate tracks vs collection", **_commonN),
7 ])

Definition at line 329 of file trackingPlots.py.

tuple trackingPlots._summaryNHp
Initial value:
1 = PlotGroup("summary_ntracks", [
2  Plot(AggregateBins("num_reco_coll", "num_reco_coll", **_commonAB), ytitle="Tracks", title="Number of tracks vs collection", **_commonN),
3  Plot(AggregateBins("num_signal_coll", "num_assoc(recoToSim)_coll", **_commonAB), ytitle="Signal tracks", title="Number of signal tracks vs collection", **_commonN),
4  Plot(AggregateBins("num_fake_coll", Subtract("num_fake_coll_orig", "num_reco_coll", "num_assoc(recoToSim)_coll"), **_commonAB), ytitle="Fake tracks", title="Number of fake tracks vs collection", **_commonN),
5  Plot(AggregateBins("num_pileup_coll", "num_pileup_coll", **_commonAB), ytitle="Pileup tracks", title="Number of pileup tracks vs collection", **_commonN),
6  Plot(AggregateBins("num_duplicate_coll", "num_duplicate_coll", **_commonAB), ytitle="Duplicate tracks", title="Number of duplicate tracks vs collection", **_commonN),
7 ])

Definition at line 347 of file trackingPlots.py.

list trackingPlots._summaryPlots
Initial value:
1 = [
2  _summary,
3  _summaryN,
4 ]

Definition at line 477 of file trackingPlots.py.

list trackingPlots._summaryPlotsHp
Initial value:
1 = [
2  _summaryHp,
3  _summaryNHp,
4 ]

Definition at line 481 of file trackingPlots.py.

tuple trackingPlots._timing
Initial value:
1 = PlotGroup("", [
2  Plot(AggregateBins("iterative", "reconstruction_step_module_average", _iterModuleMap), ytitle="Average processing time [ms]", title="Average processing time / event", drawStyle="HIST", xbinlabelsize=0.03),
3 # 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)
4  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)
5 
6  ],
7  legendDx=-0.1, legendDw=-0.35, legendDy=0.39,
8 )

Definition at line 612 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 634 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", stat=True, title="", xtitle="#eta", ytitle="< #chi^{2} / ndf >", ymax=2.5),
5  Plot("ptres_vs_eta_Mean", stat=True, scale=100, title="", xtitle="#eta", ytitle="< #delta p_{T} / p_{T} > [%]", ymin=-1.5, ymax=1.5)
6 ])

Definition at line 221 of file trackingPlots.py.

tuple trackingPlots.plotter = Plotter()

Definition at line 492 of file trackingPlots.py.

tuple trackingPlots.timePlotter = Plotter()

Definition at line 624 of file trackingPlots.py.

tuple trackingPlots.tpPlotter = Plotter()

Definition at line 639 of file trackingPlots.py.