From 163dda924ab37b565c2b2ff011882cbf7b93c968 Mon Sep 17 00:00:00 2001 From: lgray Date: Mon, 11 Sep 2017 12:03:20 -0500 Subject: [PATCH] 4D vertex validation --- .../PrimaryVertexAnalyzer4PUSlimmed_cfi.py | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Validation/RecoVertex/python/PrimaryVertexAnalyzer4PUSlimmed_cfi.py b/Validation/RecoVertex/python/PrimaryVertexAnalyzer4PUSlimmed_cfi.py index b1235890467f1..d75550870c760 100644 --- a/Validation/RecoVertex/python/PrimaryVertexAnalyzer4PUSlimmed_cfi.py +++ b/Validation/RecoVertex/python/PrimaryVertexAnalyzer4PUSlimmed_cfi.py @@ -24,8 +24,8 @@ vertexRecoCollections = cms.VInputTag("offlinePrimaryVertices", "offlinePrimaryVerticesWithBS", "selectedOfflinePrimaryVertices", - "selectedOfflinePrimaryVerticesWithBS", - ), + "selectedOfflinePrimaryVerticesWithBS" + ), ) vertexAnalysisTrackingOnly = vertexAnalysis.clone( @@ -83,3 +83,22 @@ + pixelVertexAnalysisTrackingOnly ) trackingLowPU.toReplaceWith(vertexAnalysisSequenceTrackingOnly, _vertexAnalysisSequenceTrackingOnly_trackingLowPU) + +from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer +_vertexRecoCollectionsTiming = cms.VInputTag("offlinePrimaryVertices", + "offlinePrimaryVerticesWithBS", + "selectedOfflinePrimaryVertices", + "selectedOfflinePrimaryVerticesWithBS", + "offlinePrimaryVertices4D", + "selectedOfflinePrimaryVertices4D", + ) +selectedOfflinePrimaryVertices4D = selectedOfflinePrimaryVertices.clone(src = cms.InputTag("offlinePrimaryVertices4D")) + +_vertexAnalysisSelectionTiming = vertexAnalysisSelection.copy() +_vertexAnalysisSelectionTiming += selectedOfflinePrimaryVertices4D + +phase2_timing_layer.toModify( vertexAnalysis, + vertexRecoCollections = _vertexRecoCollectionsTiming + ) +phase2_timing_layer.toReplaceWith( vertexAnalysisSelection, + _vertexAnalysisSelectionTiming )