1 import FWCore.ParameterSet.Config
as cms
3 selectedOfflinePrimaryVertices = cms.EDFilter(
"VertexSelector",
4 src = cms.InputTag(
'offlinePrimaryVertices'),
5 cut = cms.string(
"isValid & ndof > 4 & tracksSize > 0 & abs(z) <= 24 & abs(position.Rho) <= 2."),
6 filter = cms.bool(
False)
9 selectedOfflinePrimaryVerticesWithBS = selectedOfflinePrimaryVertices.clone(
10 src =
'offlinePrimaryVerticesWithBS' 12 selectedPixelVertices = selectedOfflinePrimaryVertices.clone(
15 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
17 use_only_charged_tracks = cms.untracked.bool(
True),
18 do_generic_sim_plots = cms.untracked.bool(
True),
19 verbose = cms.untracked.bool(
False),
20 root_folder = cms.untracked.string(
"Vertexing/PrimaryVertexV"),
21 trackingParticleCollection = cms.untracked.InputTag(
"mix",
"MergedTrackTruth"),
22 trackingVertexCollection = cms.untracked.InputTag(
"mix",
"MergedTrackTruth"),
23 trackAssociatorMap = cms.untracked.InputTag(
"trackingParticleRecoTrackAsssociation"),
24 vertexAssociator = cms.untracked.InputTag(
"VertexAssociatorByPositionAndTracks"),
25 vertexRecoCollections = cms.VInputTag(
"offlinePrimaryVertices",
26 "offlinePrimaryVerticesWithBS",
27 "selectedOfflinePrimaryVertices",
28 "selectedOfflinePrimaryVerticesWithBS" 30 nPUbins = cms.uint32(130)
33 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
34 phase2_tracker.toModify( vertexAnalysis,
37 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
38 premix_stage2.toModify(vertexAnalysis,
39 trackingParticleCollection =
"mixData:MergedTrackTruth",
40 trackingVertexCollection =
"mixData:MergedTrackTruth",
43 vertexAnalysisTrackingOnly = vertexAnalysis.clone(
44 vertexRecoCollections = vertexAnalysis.vertexRecoCollections.value() + [
45 "firstStepPrimaryVerticesPreSplitting",
46 "firstStepPrimaryVertices" 49 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
50 trackingLowPU.toModify(vertexAnalysisTrackingOnly, vertexRecoCollections = vertexAnalysis.vertexRecoCollections.value())
51 from Configuration.Eras.Modifier_trackingPhase2PU140_cff
import trackingPhase2PU140
52 trackingPhase2PU140.toModify(vertexAnalysisTrackingOnly,
53 vertexRecoCollections = vertexAnalysis.vertexRecoCollections.value() + [
54 "firstStepPrimaryVertices" 58 pixelVertexAnalysisTrackingOnly = vertexAnalysis.clone(
59 do_generic_sim_plots =
False,
60 trackAssociatorMap =
"trackingParticlePixelTrackAsssociation",
61 vertexAssociator =
"PixelVertexAssociatorByPositionAndTracks",
62 vertexRecoCollections = [
64 "selectedPixelVertices" 67 pixelVertexAnalysisPixelTrackingOnly = pixelVertexAnalysisTrackingOnly.clone(
68 do_generic_sim_plots =
True,
73 vertexAnalysisSelection = cms.Sequence(
74 cms.ignore(selectedOfflinePrimaryVertices)
75 + cms.ignore(selectedOfflinePrimaryVerticesWithBS)
80 vertexAnalysisSequence = cms.Sequence(
81 vertexAnalysisSelection
85 vertexAnalysisSequenceTrackingOnly = cms.Sequence(
86 vertexAnalysisSelection
87 + vertexAnalysisTrackingOnly
90 _vertexAnalysisSequenceTrackingOnly_trackingLowPU = vertexAnalysisSequenceTrackingOnly.copy()
91 _vertexAnalysisSequenceTrackingOnly_trackingLowPU += (
93 + pixelVertexAnalysisTrackingOnly
95 trackingLowPU.toReplaceWith(vertexAnalysisSequenceTrackingOnly, _vertexAnalysisSequenceTrackingOnly_trackingLowPU)
97 vertexAnalysisSequencePixelTrackingOnly = cms.Sequence(
99 + pixelVertexAnalysisPixelTrackingOnly
104 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
105 _vertexRecoCollectionsTiming = cms.VInputTag(
"offlinePrimaryVertices",
106 "offlinePrimaryVerticesWithBS",
107 "selectedOfflinePrimaryVertices",
108 "selectedOfflinePrimaryVerticesWithBS",
109 "offlinePrimaryVertices4D",
110 "selectedOfflinePrimaryVertices4D",
112 selectedOfflinePrimaryVertices4D = selectedOfflinePrimaryVertices.clone(src = cms.InputTag(
"offlinePrimaryVertices4D"))
114 _vertexAnalysisSelectionTiming = vertexAnalysisSelection.copy()
115 _vertexAnalysisSelectionTiming += selectedOfflinePrimaryVertices4D
117 phase2_timing_layer.toModify( vertexAnalysis,
118 vertexRecoCollections = _vertexRecoCollectionsTiming
120 phase2_timing_layer.toReplaceWith( vertexAnalysisSelection,
121 _vertexAnalysisSelectionTiming )