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 hltMultiPVanalysis.do_generic_sim_plots = False
7 hltMultiPVanalysis.verbose = cms.untracked.bool(False)
8 hltMultiPVanalysis.root_folder = cms.untracked.string("HLT/Vertexing/ValidationWRTsim")
9 hltMultiPVanalysis.vertexRecoCollections = cms.VInputTag( )
10 hltMultiPVanalysis.trackAssociatorMap = cms.untracked.InputTag("trackingParticleRecoTrackAsssociation")
11 hltMultiPVanalysis.vertexAssociator = cms.untracked.InputTag("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 vertexAssociatorByPositionAndTracks4pixelTracks.trackAssociation = cms.InputTag("tpToHLTpixelTrackAssociation")
17 
18 tpToHLTpfMuonMergingTrackAssociation = tpToHLTpixelTrackAssociation.clone(
19  label_tr = "hltPFMuonMerging"
20 )
21 vertexAssociatorByPositionAndTracks4pfMuonMergingTracks = _VertexAssociatorByPositionAndTracks.clone()
22 vertexAssociatorByPositionAndTracks4pfMuonMergingTracks.trackAssociation = cms.InputTag("tpToHLTpfMuonMergingTrackAssociation")
23 
24 
25 
26 hltPixelPVanalysis = hltMultiPVanalysis.clone()
27 hltPixelPVanalysis.do_generic_sim_plots = True
28 hltPixelPVanalysis.trackAssociatorMap = cms.untracked.InputTag("tpToHLTpixelTrackAssociation")
29 hltPixelPVanalysis.vertexAssociator = cms.untracked.InputTag("vertexAssociatorByPositionAndTracks4pixelTracks")
30 hltPixelPVanalysis.vertexRecoCollections = cms.VInputTag(
31  "hltPixelVertices",
32  "hltTrimmedPixelVertices",
33 )
34 
35 
36 
37 hltPVanalysis = hltMultiPVanalysis.clone()
38 hltPVanalysis.trackAssociatorMap = cms.untracked.InputTag("tpToHLTpfMuonMergingTrackAssociation")
39 hltPVanalysis.vertexAssociator = cms.untracked.InputTag("vertexAssociatorByPositionAndTracks4pfMuonMergingTracks")
40 hltPVanalysis.vertexRecoCollections = cms.VInputTag(
41  "hltVerticesPFFilter"
42 # "hltFastPVPixelVertices"
43 )
44 
45 hltMultiPVAssociations = cms.Sequence(
46  hltTrackAssociatorByHits +
47  tpToHLTpixelTrackAssociation +
48  vertexAssociatorByPositionAndTracks4pixelTracks +
49  tpToHLTpfMuonMergingTrackAssociation +
50  vertexAssociatorByPositionAndTracks4pfMuonMergingTracks
51 )
52 
53 hltMultiPVValidation = cms.Sequence(
54  hltMultiPVAssociations +
55  hltPixelPVanalysis
56  + hltPVanalysis
57 )