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

Fix MTV validation of initialStepPreSplitting tracks and add B-hadron MTV variation to pixel track validation sequence #199

Next Next commit
Add B-hadron MTV variation to pixel track validation sequence
makortel committed Nov 12, 2018
commit e64286eeca83eed14a8314ac8233b7434f36bc6e
4 changes: 2 additions & 2 deletions Validation/RecoTrack/python/PostProcessorTracker_cfi.py
Original file line number Diff line number Diff line change
@@ -270,9 +270,9 @@ def _addNoFlow(module):
)

postProcessorTrackTrackingOnly = postProcessorTrack.clone()
postProcessorTrackTrackingOnly.subDirs.extend(["Tracking/TrackSeeding/*", "Tracking/PixelTrack/*", "Tracking/PixelTrackFromPV/*", "Tracking/PixelTrackFromPVAllTP/*"])
postProcessorTrackTrackingOnly.subDirs.extend(["Tracking/TrackSeeding/*", "Tracking/PixelTrack/*", "Tracking/PixelTrackFromPV/*", "Tracking/PixelTrackFromPVAllTP/*", "Tracking/PixelTrackBHadron/*"])
postProcessorTrackSummaryTrackingOnly = postProcessorTrackSummary.clone()
postProcessorTrackSummaryTrackingOnly.subDirs.extend(["Tracking/TrackSeeding", "Tracking/PixelTrack", "Tracking/PixelTrackFromPV/*", "Tracking/PixelTrackFromPVAllTP/*"])
postProcessorTrackSummaryTrackingOnly.subDirs.extend(["Tracking/TrackSeeding", "Tracking/PixelTrack", "Tracking/PixelTrackFromPV/*", "Tracking/PixelTrackFromPVAllTP/*", "Tracking/PixelTrackBHadron/*"])

postProcessorTrackSequenceTrackingOnly = cms.Sequence(
postProcessorTrackTrackingOnly+
12 changes: 11 additions & 1 deletion Validation/RecoTrack/python/TrackValidation_cff.py
Original file line number Diff line number Diff line change
@@ -770,13 +770,22 @@ def _uniqueFirstLayers(layerList):
doSimPlots = False,
doSimTrackPlots = False,
)
trackValidatorBHadronPixelTrackingOnly = trackValidatorPixelTrackingOnly.clone(
dirName = "Tracking/PixelTrackBHadron/",
label_tp_effic = "trackingParticlesBHadron",
label_tp_effic_refvector = True,
doSimPlots = True,
doRecoTrackPlots = False, # Fake rate is defined wrt. all TPs, and that is already included in trackValidator
dodEdxPlots = False,
)


tracksValidationTruthPixelTrackingOnly = tracksValidationTruth.copy()
tracksValidationTruthPixelTrackingOnly.replace(tpClusterProducer, tpClusterProducerPixelTrackingOnly)
tracksValidationTruthPixelTrackingOnly.replace(quickTrackAssociatorByHits, quickTrackAssociatorByHitsPixelTrackingOnly)
tracksValidationTruthPixelTrackingOnly.replace(trackingParticleRecoTrackAsssociation, trackingParticlePixelTrackAsssociation)
tracksValidationTruthPixelTrackingOnly.replace(VertexAssociatorByPositionAndTracks, PixelVertexAssociatorByPositionAndTracks)
tracksValidationTruthPixelTrackingOnly += trackingParticlesBHadron

_tracksValidationTruthPixelTrackingOnlyGPU = tracksValidationTruthPixelTrackingOnly.copy()
_tracksValidationTruthPixelTrackingOnlyGPU.insert(0, tpClusterProducerHeterogeneousPixelTrackingOnly)
@@ -788,7 +797,8 @@ def _uniqueFirstLayers(layerList):
pixelTracksFromPV +
trackValidatorPixelTrackingOnly +
trackValidatorFromPVPixelTrackingOnly +
trackValidatorFromPVAllTPPixelTrackingOnly
trackValidatorFromPVAllTPPixelTrackingOnly +
trackValidatorBHadronPixelTrackingOnly
)


4 changes: 4 additions & 0 deletions Validation/RecoTrack/python/plotting/html.py
Original file line number Diff line number Diff line change
@@ -63,6 +63,8 @@ def _allToBTV(s):
return s.replace("All", "BTV-like")
def _ptCut(s):
return s.replace("Tracks", "Tracks pT > 0.9 GeV").replace("tracks", "tracks pT > 0.9 GeV")
def _allToPixel(s):
return s.replace("All", "Pixel")
def _toPixel(s):
return s.replace("Tracks", "Pixel tracks")
_trackQualityNameOrder = collections.OrderedDict([
@@ -198,6 +200,7 @@ def _toPixel(s):
("pixel", "Pixel tracks"),
("pixelFromPV", _toPixel(_fromPVName)),
("pixelFromPVAllTP", _toPixel(_fromPVAllTPName)),
("pixelbhadron", _allToPixel(_bhadronName)),
# These are for vertices
("genvertex", "Gen vertices"),
("pixelVertices", "Pixel vertices"),
@@ -248,6 +251,7 @@ def _sectionNameLegend():
"bhadron_btvLike": _bhadronLegend.replace("All tracks", _btvLegend),
"pixelFromPV": _fromPVLegend,
"pixelFromPVAllTP": _fromPVAllTPLegend,
"pixelbhadron": _bhadronLegend,
}

class Table:
1 change: 1 addition & 0 deletions Validation/RecoTrack/python/plotting/trackingPlots.py
Original file line number Diff line number Diff line change
@@ -1347,6 +1347,7 @@ def _appendPixelTrackingPlots(lastDirName, name):
_appendPixelTrackingPlots("PixelTrack", "pixel")
_appendPixelTrackingPlots("PixelTrackFromPV", "pixelFromPV")
_appendPixelTrackingPlots("PixelTrackFromPVAllTP", "pixelFromPVAllTP")
_appendPixelTrackingPlots("PixelTrackBHadron", "pixelbhadron")


# MiniAOD