CMS 3D CMS Logo

TrackToTrackMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQM_cfg import *
4 DQMStore.collateHistograms =cms.untracked.bool(True)
5 from DQM.TrackingMonitorSource.TrackToTrackComparisonHists_cfi import TrackToTrackComparisonHists
6 
7 trackSelector = cms.EDFilter('TrackSelector',
8  src = cms.InputTag('generalTracks'),
9  cut = cms.string("")
10 )
11 highPurityTracks = trackSelector.clone(
12  cut = "quality('highPurity')"
13 )
14 
15 hltMerged2highPurity = TrackToTrackComparisonHists.clone(
16  monitoredTrack = "hltMergedTracks",
17  referenceTrack = "highPurityTracks",
18  monitoredBeamSpot = "hltOnlineBeamSpot",
19  referenceBeamSpot = "offlineBeamSpot",
20  topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurity",
21  referencePrimaryVertices = "offlinePrimaryVertices",
22  monitoredPrimaryVertices = "hltVerticesPFSelector"
23 )
24 
25 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
26 pp_on_PbPb_run3.toModify(hltMerged2highPurity,
27  topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurity",
28  monitoredTrack = "hltMergedTracksPPOnAA",
29  monitoredPrimaryVertices = "hltVerticesPFFilterPPOnAA")
30 
31 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
32 phase2_tracker.toModify(hltMerged2highPurity,
33  monitoredTrack = cms.InputTag("generalTracks","","HLT"),
34  monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
35 
36 hltMerged2highPurityPV = TrackToTrackComparisonHists.clone(
37  dzWRTPvCut = 0.1,
38  monitoredTrack = "hltMergedTracks",
39  referenceTrack = "highPurityTracks",
40  monitoredBeamSpot = "hltOnlineBeamSpot",
41  referenceBeamSpot = "offlineBeamSpot",
42  topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurityPV",
43  referencePrimaryVertices = "offlinePrimaryVertices",
44  monitoredPrimaryVertices = "hltVerticesPFSelector"
45 )
46 
47 pp_on_PbPb_run3.toModify(hltMerged2highPurityPV,
48  topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurityPV",
49  monitoredTrack = "hltMergedTracksPPOnAA",
50  monitoredPrimaryVertices = "hltVerticesPFFilterPPOnAA")
51 
52 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
53 phase2_tracker.toModify(hltMerged2highPurityPV,
54  monitoredTrack = cms.InputTag("generalTracks","","HLT"),
55  monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
56 
57 #
58 # E/gamma monitoring
59 #
60 
61 hltEgammaGsfTracksVsOffline = TrackToTrackComparisonHists.clone(
62  monitoredTrack = "hltEgammaGsfTracks",
63  referenceTrack = "electronGsfTracks",
64  monitoredBeamSpot = "hltOnlineBeamSpot",
65  referenceBeamSpot = "offlineBeamSpot",
66  topDirName = "HLT/EGM/Tracking/ValidationWRTOffline/hltEgammaGsfTracks",
67  referencePrimaryVertices = "offlinePrimaryVertices",
68  monitoredPrimaryVertices = "hltVerticesPFSelector"
69 )
70 
71 hltEgammaGsfTracksVsOfflinePV = TrackToTrackComparisonHists.clone(
72  dzWRTPvCut = 0.1,
73  monitoredTrack = "hltEgammaGsfTracks",
74  referenceTrack = "electronGsfTracks",
75  monitoredBeamSpot = "hltOnlineBeamSpot",
76  referenceBeamSpot = "offlineBeamSpot",
77  topDirName = "HLT/EGM/Tracking/ValidationWRTOffline/hltEgammaGsfTracksPV",
78  referencePrimaryVertices = "offlinePrimaryVertices",
79  monitoredPrimaryVertices = "hltVerticesPFSelector"
80 )
81 
82 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
83 phase2_common.toModify(hltEgammaGsfTracksVsOffline,
84  monitoredTrack = cms.InputTag("hltEgammaGsfTracksL1Seeded"),
85  monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
86 
87 phase2_common.toModify(hltEgammaGsfTracksVsOfflinePV,
88  monitoredTrack = cms.InputTag("hltEgammaGsfTracksL1Seeded"),
89  monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
90 
91 hltToOfflineTrackValidatorSequence = cms.Sequence(
92  cms.ignore(highPurityTracks)
93  + hltMerged2highPurity
94  + hltMerged2highPurityPV
95  + hltEgammaGsfTracksVsOffline
96  + hltEgammaGsfTracksVsOfflinePV
97 )
Output File Configuration.