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 hltToOfflineTrackValidatorSequence = cms.Sequence(
58  cms.ignore(highPurityTracks)
59  + hltMerged2highPurity
60  + hltMerged2highPurityPV
61 )
Output File Configuration.