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 B-hadron MTV variation to pixel track validation sequence #193

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Validation/RecoTrack/python/PostProcessorTracker_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand Down
12 changes: 11 additions & 1 deletion Validation/RecoTrack/python/TrackValidation_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -788,7 +797,8 @@ def _uniqueFirstLayers(layerList):
pixelTracksFromPV +
trackValidatorPixelTrackingOnly +
trackValidatorFromPVPixelTrackingOnly +
trackValidatorFromPVAllTPPixelTrackingOnly
trackValidatorFromPVAllTPPixelTrackingOnly +
trackValidatorBHadronPixelTrackingOnly
)


Expand Down
4 changes: 4 additions & 0 deletions Validation/RecoTrack/python/plotting/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -248,6 +251,7 @@ def _sectionNameLegend():
"bhadron_btvLike": _bhadronLegend.replace("All tracks", _btvLegend),
"pixelFromPV": _fromPVLegend,
"pixelFromPVAllTP": _fromPVAllTPLegend,
"pixelbhadron": _bhadronLegend,
}

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


# MiniAOD
Expand Down