1 import FWCore.ParameterSet.Config
as cms
5 hltMultiPVanalysis = vertexAnalysis.clone(
6 do_generic_sim_plots =
False,
8 root_folder =
"HLT/Vertexing/ValidationWRTsim",
9 vertexRecoCollections = [
""],
10 trackAssociatorMap =
"trackingParticleRecoTrackAsssociation",
11 vertexAssociator =
"VertexAssociatorByPositionAndTracks" 15 vertexAssociatorByPositionAndTracks4pixelTracks = _VertexAssociatorByPositionAndTracks.clone(
16 trackAssociation =
"tpToHLTpixelTrackAssociation" 18 tpToHLTpfMuonMergingTrackAssociation = tpToHLTpixelTrackAssociation.clone(
19 label_tr =
"hltPFMuonMerging" 21 vertexAssociatorByPositionAndTracks4pfMuonMergingTracks = _VertexAssociatorByPositionAndTracks.clone(
22 trackAssociation =
"tpToHLTpfMuonMergingTrackAssociation" 25 hltPixelPVanalysis = hltMultiPVanalysis.clone(
26 do_generic_sim_plots =
True,
27 trackAssociatorMap =
"tpToHLTpixelTrackAssociation",
28 vertexAssociator =
"vertexAssociatorByPositionAndTracks4pixelTracks",
29 vertexRecoCollections = (
31 "hltTrimmedPixelVertices",
36 pvanalysis.vertexRecoCollections = [
"hltPhase2PixelVertices"]
38 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
39 phase2_tracker.toModify(hltPixelPVanalysis, _modifyPixelPVanalysisForPhase2)
41 hltPVanalysis = hltMultiPVanalysis.clone(
42 trackAssociatorMap =
"tpToHLTpfMuonMergingTrackAssociation",
43 vertexAssociator =
"vertexAssociatorByPositionAndTracks4pfMuonMergingTracks",
44 vertexRecoCollections = (
45 "hltVerticesPFFilter",
50 tpToHLTphase2TrackAssociation = tpToHLTpixelTrackAssociation.clone(
51 label_tr =
"hltGeneralTracks" 53 vertexAssociatorByPositionAndTracks4phase2HLTTracks = _VertexAssociatorByPositionAndTracks.clone(
54 trackAssociation =
"tpToHLTphase2TrackAssociation" 58 pvanalysis.vertexRecoCollections = [
"hltOfflinePrimaryVertices"]
59 pvanalysis.trackAssociatorMap =
"tpToHLTphase2TrackAssociation" 60 pvanalysis.vertexAssociator =
"vertexAssociatorByPositionAndTracks4phase2HLTTracks" 62 phase2_tracker.toModify(hltPVanalysis, _modifyFullPVanalysisForPhase2)
64 hltMultiPVAssociations = cms.Task(
65 hltTrackAssociatorByHits,
66 tpToHLTpixelTrackAssociation,
67 vertexAssociatorByPositionAndTracks4pixelTracks,
68 tpToHLTpfMuonMergingTrackAssociation,
69 vertexAssociatorByPositionAndTracks4pfMuonMergingTracks,
70 tpToHLTphase2TrackAssociation,
71 vertexAssociatorByPositionAndTracks4phase2HLTTracks
74 hltMultiPVValidation = cms.Sequence(
77 hltMultiPVAssociations
def _modifyPixelPVanalysisForPhase2(pvanalysis)
def _modifyFullPVanalysisForPhase2(pvanalysis)