Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-10 02:20:39

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Core.DQM_cfg import *
0004 DQMStore.collateHistograms =cms.untracked.bool(True)
0005 from DQM.TrackingMonitorSource.TrackToTrackComparisonHists_cfi import TrackToTrackComparisonHists
0006 
0007 trackSelector = cms.EDFilter('TrackSelector',
0008     src = cms.InputTag('generalTracks'),
0009     cut = cms.string("")
0010 )
0011 highPurityTracks = trackSelector.clone(
0012     cut = "quality('highPurity')"
0013 )
0014 
0015 hltMerged2highPurity = TrackToTrackComparisonHists.clone(
0016     monitoredTrack           = "hltMergedTracks",
0017     referenceTrack           = "highPurityTracks",
0018     monitoredBeamSpot        = "hltOnlineBeamSpot",
0019     referenceBeamSpot        = "offlineBeamSpot",
0020     topDirName               = "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurity",
0021     referencePrimaryVertices = "offlinePrimaryVertices",
0022     monitoredPrimaryVertices = "hltVerticesPFSelector"
0023 )
0024 
0025 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
0026 pp_on_PbPb_run3.toModify(hltMerged2highPurity,
0027                          topDirName               = "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurity",
0028                          monitoredTrack           = "hltMergedTracksPPOnAA",
0029                          monitoredPrimaryVertices = "hltVerticesPFFilterPPOnAA")                         
0030 
0031 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0032 phase2_tracker.toModify(hltMerged2highPurity,
0033                         monitoredTrack           = cms.InputTag("generalTracks","","HLT"),
0034                         monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
0035 
0036 hltMerged2highPurityPV = TrackToTrackComparisonHists.clone(
0037     dzWRTPvCut               = 0.1,
0038     monitoredTrack           = "hltMergedTracks",
0039     referenceTrack           = "highPurityTracks",
0040     monitoredBeamSpot        = "hltOnlineBeamSpot",
0041     referenceBeamSpot        = "offlineBeamSpot",
0042     topDirName               = "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurityPV",
0043     referencePrimaryVertices = "offlinePrimaryVertices",
0044     monitoredPrimaryVertices = "hltVerticesPFSelector"
0045 )
0046 
0047 pp_on_PbPb_run3.toModify(hltMerged2highPurityPV,
0048                          topDirName               = "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurityPV",
0049                          monitoredTrack           = "hltMergedTracksPPOnAA",
0050                          monitoredPrimaryVertices = "hltVerticesPFFilterPPOnAA")                         
0051 
0052 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0053 phase2_tracker.toModify(hltMerged2highPurityPV,
0054                         monitoredTrack           = cms.InputTag("generalTracks","","HLT"),
0055                         monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
0056 
0057 #
0058 # E/gamma monitoring
0059 #
0060 
0061 hltEgammaGsfTracksVsOffline = TrackToTrackComparisonHists.clone(
0062     monitoredTrack           = "hltEgammaGsfTracks",
0063     referenceTrack           = "electronGsfTracks",
0064     monitoredBeamSpot        = "hltOnlineBeamSpot",
0065     referenceBeamSpot        = "offlineBeamSpot",
0066     topDirName               = "HLT/EGM/Tracking/ValidationWRTOffline/hltEgammaGsfTracks",
0067     referencePrimaryVertices = "offlinePrimaryVertices",
0068     monitoredPrimaryVertices = "hltVerticesPFSelector"
0069 )
0070 
0071 hltEgammaGsfTracksVsOfflinePV = TrackToTrackComparisonHists.clone(
0072     dzWRTPvCut               = 0.1,
0073     monitoredTrack           = "hltEgammaGsfTracks",
0074     referenceTrack           = "electronGsfTracks",
0075     monitoredBeamSpot        = "hltOnlineBeamSpot",
0076     referenceBeamSpot        = "offlineBeamSpot",
0077     topDirName               = "HLT/EGM/Tracking/ValidationWRTOffline/hltEgammaGsfTracksPV",
0078     referencePrimaryVertices = "offlinePrimaryVertices",
0079     monitoredPrimaryVertices = "hltVerticesPFSelector"
0080 )
0081 
0082 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0083 phase2_common.toModify(hltEgammaGsfTracksVsOffline,
0084                        monitoredTrack           = cms.InputTag("hltEgammaGsfTracksL1Seeded"),
0085                        monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
0086 
0087 phase2_common.toModify(hltEgammaGsfTracksVsOfflinePV,
0088                        monitoredTrack           = cms.InputTag("hltEgammaGsfTracksL1Seeded"),
0089                        monitoredPrimaryVertices = cms.InputTag("offlinePrimaryVertices","","HLT"))
0090 
0091 hltToOfflineTrackValidatorSequence = cms.Sequence(
0092     cms.ignore(highPurityTracks)
0093     + hltMerged2highPurity
0094     + hltMerged2highPurityPV
0095     + hltEgammaGsfTracksVsOffline
0096     + hltEgammaGsfTracksVsOfflinePV
0097 )