From 01ee88b17a56f5a9df0626d1b6a30f8e5ccafd15 Mon Sep 17 00:00:00 2001 From: Valerio Bertacchi Date: Wed, 9 Sep 2020 18:49:13 +0200 Subject: [PATCH] trackingPlots limits2 --- Validation/RecoTrack/python/plotting/trackingPlots.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Validation/RecoTrack/python/plotting/trackingPlots.py b/Validation/RecoTrack/python/plotting/trackingPlots.py index d3525d8664b3e..374c83cf50ac8 100644 --- a/Validation/RecoTrack/python/plotting/trackingPlots.py +++ b/Validation/RecoTrack/python/plotting/trackingPlots.py @@ -41,6 +41,7 @@ _maxPU = [20, 50, 65, 80, 100, 150, 200, 250] _minMaxTracks = [0, 200, 500, 1000, 1500, 2000] _minMaxMVA = [-1.025, -0.5, 0, 0.5, 1.025] +_maxDRJ = 0.1 def _minMaxResidual(ma): return ([-x for x in ma], ma) @@ -216,7 +217,7 @@ def _makeMVAPlots(num, hp=False): ) _effandfakeDeltaRPU = PlotGroup("effandfakeDeltaRPU", _makeEffFakeDupPlots("dr" , "#DeltaR", effopts=dict(xtitle="TP min #DeltaR"), fakeopts=dict(xtitle="track min #DeltaR"), common=dict(xlog=True)) + - _makeEffFakeDupPlots("drj" , "#DeltaR(track, jet)", effopts=dict(xtitle="#DeltaR(TP, jet)", ytitle="efficiency vs #DeltaR(TP, jet"), fakeopts=dict(xtitle="#DeltaR(track, jet)"), common=dict(xlog=True))+ + _makeEffFakeDupPlots("drj" , "#DeltaR(track, jet)", effopts=dict(xtitle="#DeltaR(TP, jet)", ytitle="efficiency vs #DeltaR(TP, jet"), fakeopts=dict(xtitle="#DeltaR(track, jet)"), common=dict(xlog=True, xmax=_maxDRJ))+ _makeEffFakeDupPlots("pu" , "PU" , common=dict(xtitle="Pileup", xmin=_minPU, xmax=_maxPU)), legendDy=_legendDy_4rows ) @@ -262,7 +263,7 @@ def _makeMVAPlots(num, hp=False): ) _dupandfakeDeltaRPU = PlotGroup("dupandfakeDeltaRPU", _makeFakeDupPileupPlots("dr" , "#DeltaR", xquantity="min #DeltaR", common=dict(xlog=True)) + - _makeFakeDupPileupPlots("drj" , "#DeltaR(track, jet)", xtitle="#DeltaR(track, jet)", common=dict(xlog=True)) + + _makeFakeDupPileupPlots("drj" , "#DeltaR(track, jet)", xtitle="#DeltaR(track, jet)", common=dict(xlog=True, xmax=_maxDRJ)) + _makeFakeDupPileupPlots("pu" , "PU" , xtitle="Pileup", common=dict(xmin=_minPU, xmax=_maxPU)), ncols=3 ) @@ -373,6 +374,7 @@ def _makeMVAPlots(num, hp=False): fallback={"name": "chi2_vs_eta", "profileX": True}), Plot("ptres_vs_eta_Mean", scale=100, title="", xtitle="TP #eta (PCA to beamline)", ytitle="< #delta p_{T} / p_{T} > (%)", ymin=_minResidualPt, ymax=_maxResidualPt), Plot("chi2mean_vs_pt", title="", xtitle="p_{T}", ytitle="< #chi^{2} / ndf >", ymin=[0, 0.5], ymax=[2, 2.5, 3, 5], xlog=True, fallback={"name": "chi2_vs_pt", "profileX": True}), + Plot("chi2mean_vs_drj", title="", xtitle="#DeltaR(track, jet)", ytitle="< #chi^{2} / ndf >", ymin=[0, 0.5], ymax=[2, 2.5, 3, 5], xlog=True, xmax=_maxDRJ, fallback={"name": "chi2_vs_drj", "profileX": True}), Plot("ptres_vs_pt_Mean", title="", xtitle="p_{T}", ytitle="< #delta p_{T}/p_{T} > (%)", scale=100, ymin=_minResidualPt, ymax=_maxResidualPt,xlog=True) ]) _common = {"stat": True, "fit": True, "normalizeToUnitArea": True, "drawStyle": "hist", "drawCommand": "", "xmin": -10, "xmax": 10, "ylog": True, "ymin": 5e-5, "ymax": [0.01, 0.05, 0.1, 0.2, 0.5, 0.8, 1.025], "ratioUncertainty": False} @@ -441,7 +443,7 @@ def _makeMVAPlots(num, hp=False): ) _extDistDeltaR = PlotGroup("distDeltaR", _makeDistPlots("dr" , "min #DeltaR", common=dict(xlog=True)) + - _makeDistPlots("drj" , "#DeltaR(track, jet)", common=dict(xlog=True)), + _makeDistPlots("drj" , "#DeltaR(track, jet)", common=dict(xlog=True, xmax=_maxDRJ)), ncols=2, legendDy=_legendDy_2rows, ) _extDistSeedingPlots = _makeDistPlots("seedingLayerSet", "seeding layers", common=dict(xtitle="", **_seedingLayerSet_common)) @@ -512,7 +514,7 @@ def _makeMVAPlots(num, hp=False): ) _extDistSimDeltaR = PlotGroup("distsimDeltaR", _makeDistSimPlots("dr" , "min #DeltaR", common=dict(xlog=True)) + - _makeDistSimPlots("drj" , "#DeltaR(TP, jet)", common=dict(xlog=True)), + _makeDistSimPlots("drj" , "#DeltaR(TP, jet)", common=dict(xlog=True, xmax=_maxDRJ)), ncols=2, legendDy=_legendDy_2rows, )