CMS 3D CMS Logo

PrimaryVertexMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 hltVerticesMonitoring = pvMonitor.clone(
6  beamSpotLabel = "hltOnlineBeamSpot"
7 )
8 
9 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
10 phase2_tracker.toModify(hltVerticesMonitoring,
11  TopFolderName = "HLT/Vertexing/hltFullVertices",
12  vertexLabel = cms.InputTag("offlinePrimaryVertices","","HLT"))
13 
14 hltPixelVerticesMonitoring = hltVerticesMonitoring.clone(
15  TopFolderName = "HLT/Vertexing/hltPixelVertices",
16  vertexLabel = "hltPixelVertices",
17  ndof = 1,
18  useHPforAlignmentPlots = False
19 )
20 
21 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
22 pp_on_PbPb_run3.toModify(hltPixelVerticesMonitoring,
23  vertexLabel = "hltPixelVerticesPPOnAA")
24 
25 phase2_tracker.toModify(hltPixelVerticesMonitoring,
26  vertexLabel = "hltPhase2PixelVertices")
27 
28 hltTrimmedPixelVerticesMonitoring = hltVerticesMonitoring.clone(
29  TopFolderName = "HLT/Vertexing/hltTrimmedPixelVertices",
30  vertexLabel = "hltTrimmedPixelVertices",
31  ndof = 1,
32  useHPforAlignmentPlots = False
33 )
34 
35 pp_on_PbPb_run3.toModify(hltTrimmedPixelVerticesMonitoring,
36  vertexLabel = "hltTrimmedPixelVerticesPPOnAA")
37 
38 hltVerticesPFFilterMonitoring = hltVerticesMonitoring.clone(
39  TopFolderName = "HLT/Vertexing/hltVerticesPFFilter",
40  vertexLabel = "hltVerticesPFFilter",
41  useHPforAlignmentPlots = False
42 )
43 
44 pp_on_PbPb_run3.toModify(hltVerticesPFFilterMonitoring,
45  vertexLabel = cms.InputTag("hltVerticesPFFilterPPOnAA"))
46 
47 hltVerticesL3PFBjetsMonitoring = hltVerticesMonitoring.clone(
48  TopFolderName = "HLT/Vertexing/hltVerticesL3PFBjets",
49  vertexLabel = "hltVerticesL3PFBjets",
50  useHPforAlignmentPlots = False
51 )
52 vertexingMonitorHLT = cms.Sequence(
53  hltPixelVerticesMonitoring
54  + hltTrimmedPixelVerticesMonitoring
55  + hltVerticesPFFilterMonitoring
56 # + hltVerticesL3PFBjets
57 )
58 
59 phase2_tracker.toReplaceWith(vertexingMonitorHLT, cms.Sequence(hltPixelVerticesMonitoring + hltVerticesMonitoring))