Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tracking particle |eta| > 2.7 validation plots for Phase 2 tracker #29795

Merged
merged 2 commits into from May 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions Validation/RecoTrack/python/plotting/html.py
Expand Up @@ -48,6 +48,7 @@ def _lowerFirst(s):
_fromPVName = "Tracks from PV"
_fromPVAllTPName = "Tracks from PV (all TPs)"
_tpPtLess09Name = "All tracks (TP pT < 0.9 GeV)"
_tpEtaGreater2p7Name = "All tracks (TP |eta| > 2.7)"
_conversionName = "Tracks for conversions"
_gsfName = "Electron GSF tracks"
_bhadronName = "All tracks (B-hadron TPs)"
Expand Down Expand Up @@ -85,6 +86,8 @@ def _ptCut(s):
("tpPtLess09_highPurityByOriginalAlgo", _toOriAlgo(_allToHP(_tpPtLess09Name))),
("tpPtLess09_ByAlgoMask", _toAlgoMask(_tpPtLess09Name)),
("tpPtLess09_highPurityByAlgoMask", _toAlgoMask(_allToHP(_tpPtLess09Name))),
("tpEtaGreater2p7_", _tpEtaGreater2p7Name),
("tpEtaGreater2p7_highPurity", _allToHP(_tpEtaGreater2p7Name)),
("btvLike", _allToBTV(_allName)),
("ak4PFJets", "AK4 PF jets"),
("allTPEffic_", _allTPEfficName),
Expand Down Expand Up @@ -181,6 +184,8 @@ def _ptCut(s):
("highPurityPt09", "High purity tracks (pT>0.9 GeV)"),
("tpPtLess09", _tpPtLess09Name),
("tpPtLess09_highPurity", _allToHP(_tpPtLess09Name)),
("tpEtaGreater2p7", _tpEtaGreater2p7Name),
("tpEtaGreater2p7_highPurity", _allToHP(_tpEtaGreater2p7Name)),
("btvLike", "BTV-like"),
("ak4PFJets", "AK4 PF jets"),
("allTPEffic", _allTPEfficName),
Expand Down
5 changes: 3 additions & 2 deletions Validation/RecoTrack/python/plotting/trackingPlots.py
Expand Up @@ -632,8 +632,8 @@ def _mapCollectionToAlgoQuality(collName):
collNameLow = collNameLow[:i_seeds]

algo = None
prefixes = ["cutsreco", "cutsrecofrompv", "cutsrecofrompv2", "cutsrecofrompvalltp"]
if collNameLow in ["general", "generalfrompv"]+prefixes:
prefixes = ["cutsreco", "cutsrecofrompv", "cutsrecofrompv2", "cutsrecofrompvalltp", "cutsrecoetagreater2p7"]
if collNameLow in ["general", "generalfrompv", "generaletagreater2p7"]+prefixes:
algo = "ootb"
else:
def testColl(coll):
Expand Down Expand Up @@ -1363,6 +1363,7 @@ def _appendTrackingPlots(lastDirName, name, algoPlots, onlyForPileup=False, only
plotter.appendTable(summaryName, folders, TrackingSummaryTable(section="ak4PFJets", collection=TrackingSummaryTable.AK4PFJets))
_appendTrackingPlots("Track", "", _simBasedPlots+_recoBasedPlots)
_appendTrackingPlots("TrackTPPtLess09", "tpPtLess09", _simBasedPlots)
_appendTrackingPlots("TrackTPEtaGreater2p7", "tpEtaGreater2p7", _simBasedPlots+_recoBasedPlots)
_appendTrackingPlots("TrackAllTPEffic", "allTPEffic", _simBasedPlots, onlyForPileup=True)
_appendTrackingPlots("TrackFromPV", "fromPV", _simBasedPlots+_recoBasedPlots, onlyForPileup=True)
_appendTrackingPlots("TrackFromPVAllTP", "fromPVAllTP", _simBasedPlots+_recoBasedPlots, onlyForPileup=True)
Expand Down
2 changes: 2 additions & 0 deletions Validation/RecoTrack/scripts/makeTrackValidationPlots.py
Expand Up @@ -47,6 +47,7 @@ def main(opts):
"fromPV": limitProcessing,
"fromPVAllTP": limitProcessing,
"tpPtLess09": limitProcessing,
"tpEtaGreater2p7": limitProcessing,
"seeding": limitProcessing,
"building": limitProcessing,
"bhadron": limitProcessing,
Expand All @@ -60,6 +61,7 @@ def main(opts):
"fromPV": ignore,
"fromPVAllTP": ignore,
"tpPtLess09": limitRelVal,
"tpEtaGreater2p7": limitRelVal,
"seeding": ignore,
"bhadron": limitRelVal,
}
Expand Down
17 changes: 9 additions & 8 deletions Validation/RecoTrack/test/trackingCompare.py
Expand Up @@ -70,14 +70,15 @@ def __call__(self, algo, quality):
# "plot set" is not in the dictionary, full set of plots will be
# produced for it
limitSubFolders = {
"": limit, # The default set (signal TrackingParticles for efficiency, all TrackingParticles for fakes)
"tpPtLess09": limit, # Efficiency for TrackingParticles with pT < 0.9 GeV
"allTPEffic": ignore, # Efficiency with all TrackingParticles
"bhadron": limit, # Efficiency with B-hadron TrackingParticles
"fromPV": limit, # Tracks from PV, signal TrackingParticles for efficiency and fakes
"fromPVAllTP": limit, # Tracks from PV, all TrackingParticles for fakes
"building": ignore, # Built tracks (as opposed to selected tracks in above)
"seeding": ignore, # Seeds
"": limit, # The default set (signal TrackingParticles for efficiency, all TrackingParticles for fakes)
"tpPtLess09": limit, # Efficiency for TrackingParticles with pT < 0.9 GeV
"tpEtaGreater2p7": limit, # Efficiency for TrackingParticles with |eta| > 2.7 (phase 2)
"allTPEffic": ignore, # Efficiency with all TrackingParticles
"bhadron": limit, # Efficiency with B-hadron TrackingParticles
"fromPV": limit, # Tracks from PV, signal TrackingParticles for efficiency and fakes
"fromPVAllTP": limit, # Tracks from PV, all TrackingParticles for fakes
"building": ignore, # Built tracks (as opposed to selected tracks in above)
"seeding": ignore, # Seeds
}
# arguments to be passed to tracking val.doPlots() below
kwargs_tracking["limitSubFoldersOnlyTo"]=limitSubFolders
Expand Down
1 change: 1 addition & 0 deletions Validation/RecoTrack/test/trackingPerformanceValidation.py
Expand Up @@ -206,6 +206,7 @@ def ignore(a, q):
# filter out the pT>0.9 GeV track selection
"": limitRelVal,
"tpPtLess09": limitRelVal,
"tpEtaGreater2p7": limitRelVal,
"allTPEffic": limitRelVal,
"fromPV": limitRelVal,
"fromPVAllTP": limitRelVal,
Expand Down