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 
26 hltPixelPVanalysis = hltMultiPVanalysis.clone(
27  do_generic_sim_plots = True,
28  trackAssociatorMap = "tpToHLTpixelTrackAssociation",
29  vertexAssociator = "vertexAssociatorByPositionAndTracks4pixelTracks",
30  vertexRecoCollections = (
31  "hltPixelVertices",
32  "hltTrimmedPixelVertices",
33  )
34 )
35 
36 
37 hltPVanalysis = hltMultiPVanalysis.clone(
38  trackAssociatorMap = "tpToHLTpfMuonMergingTrackAssociation",
39  vertexAssociator = "vertexAssociatorByPositionAndTracks4pfMuonMergingTracks",
40  vertexRecoCollections = (
41  "hltVerticesPFFilter",
42  #"hltFastPVPixelVertices"
43  )
44 )
45 hltMultiPVAssociations = cms.Task(
46  hltTrackAssociatorByHits,
47  tpToHLTpixelTrackAssociation,
48  vertexAssociatorByPositionAndTracks4pixelTracks,
49  tpToHLTpfMuonMergingTrackAssociation,
50  vertexAssociatorByPositionAndTracks4pfMuonMergingTracks
51 )
52 
53 hltMultiPVValidation = cms.Sequence(
54  hltPixelPVanalysis
55  + hltPVanalysis,
56  hltMultiPVAssociations
57 )