CMS 3D CMS Logo

HLTmultiPVvalidator_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 hltMultiPVanalysis = vertexAnalysis.clone(
6  do_generic_sim_plots = False,
7  verbose = False,
8  root_folder = "HLT/Vertexing/ValidationWRTsim",
9  vertexRecoCollections = [""],
10  trackAssociatorMap = "trackingParticleRecoTrackAsssociation",
11  vertexAssociator = "VertexAssociatorByPositionAndTracks"
12 )
13 from Validation.RecoTrack.associators_cff import hltTrackAssociatorByHits, tpToHLTpixelTrackAssociation
14 from SimTracker.VertexAssociation.VertexAssociatorByPositionAndTracks_cfi import VertexAssociatorByPositionAndTracks as _VertexAssociatorByPositionAndTracks
15 vertexAssociatorByPositionAndTracks4pixelTracks = _VertexAssociatorByPositionAndTracks.clone(
16  trackAssociation = "tpToHLTpixelTrackAssociation"
17 )
18 tpToHLTpfMuonMergingTrackAssociation = tpToHLTpixelTrackAssociation.clone(
19  label_tr = "hltPFMuonMerging"
20 )
21 vertexAssociatorByPositionAndTracks4pfMuonMergingTracks = _VertexAssociatorByPositionAndTracks.clone(
22  trackAssociation = "tpToHLTpfMuonMergingTrackAssociation"
23 )
24 
25 hltPixelPVanalysis = hltMultiPVanalysis.clone(
26  do_generic_sim_plots = True,
27  trackAssociatorMap = "tpToHLTpixelTrackAssociation",
28  vertexAssociator = "vertexAssociatorByPositionAndTracks4pixelTracks",
29  vertexRecoCollections = (
30  "hltPixelVertices",
31  "hltTrimmedPixelVertices",
32  )
33 )
34 
36  pvanalysis.vertexRecoCollections = ["hltPhase2PixelVertices"]
37 
38 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
39 phase2_tracker.toModify(hltPixelPVanalysis, _modifyPixelPVanalysisForPhase2)
40 
41 hltPVanalysis = hltMultiPVanalysis.clone(
42  trackAssociatorMap = "tpToHLTpfMuonMergingTrackAssociation",
43  vertexAssociator = "vertexAssociatorByPositionAndTracks4pfMuonMergingTracks",
44  vertexRecoCollections = (
45  "hltVerticesPFFilter",
46  #"hltFastPVPixelVertices"
47  )
48 )
49 
50 tpToHLTphase2TrackAssociation = tpToHLTpixelTrackAssociation.clone(
51  label_tr = "generalTracks::HLT"
52 )
53 vertexAssociatorByPositionAndTracks4phase2HLTTracks = _VertexAssociatorByPositionAndTracks.clone(
54  trackAssociation = "tpToHLTphase2TrackAssociation"
55 )
56 
58  pvanalysis.vertexRecoCollections = ["offlinePrimaryVertices::HLT"]
59  pvanalysis.trackAssociatorMap = "tpToHLTphase2TrackAssociation"
60  pvanalysis.vertexAssociator = "vertexAssociatorByPositionAndTracks4phase2HLTTracks"
61 
62 phase2_tracker.toModify(hltPVanalysis, _modifyFullPVanalysisForPhase2)
63 
64 hltMultiPVAssociations = cms.Task(
65  hltTrackAssociatorByHits,
66  tpToHLTpixelTrackAssociation,
67  vertexAssociatorByPositionAndTracks4pixelTracks,
68  tpToHLTpfMuonMergingTrackAssociation,
69  vertexAssociatorByPositionAndTracks4pfMuonMergingTracks,
70  tpToHLTphase2TrackAssociation,
71  vertexAssociatorByPositionAndTracks4phase2HLTTracks
72 )
73 
74 hltMultiPVValidation = cms.Sequence(
75  hltPixelPVanalysis
76  + hltPVanalysis,
77  hltMultiPVAssociations
78 )
def _modifyPixelPVanalysisForPhase2(pvanalysis)
def _modifyFullPVanalysisForPhase2(pvanalysis)