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_phase2_tracker_cff import phase2_tracker
26 phase2_tracker.toModify(hltMerged2highPurity,
27  monitoredTrack = cms.InputTag("generalTracks","","HLT"),
28  monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
29 
30 hltMerged2highPurityPV = trackToTrackComparisonHists.clone(
31  dzWRTPvCut = 0.1,
32  monitoredTrack = "hltMergedTracks",
33  referenceTrack = "highPurityTracks",
34  monitoredBeamSpot = "hltOnlineBeamSpot",
35  referenceBeamSpot = "offlineBeamSpot",
36  topDirName = "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurityPV",
37  referencePrimaryVertices = "offlinePrimaryVertices",
38  monitoredPrimaryVertices = "hltVerticesPFSelector"
39 )
40 
41 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
42 phase2_tracker.toModify(hltMerged2highPurityPV,
43  monitoredTrack = cms.InputTag("generalTracks","","HLT"),
44  monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
45 
46 hltToOfflineTrackValidatorSequence = cms.Sequence(
47  cms.ignore(highPurityTracks)
48  + hltMerged2highPurity
49  + hltMerged2highPurityPV
50 )
Output File Configuration.