File indexing completed on 2024-08-21 04:46:25
0001 import FWCore.ParameterSet.Config as cms
0002
0003 import DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi
0004 trackingMonHLT = DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi.TrackerCollisionTrackMon.clone(
0005 beamSpot = "hltOnlineBeamSpot",
0006 primaryVertex = "hltPixelVertices",
0007 doAllPlots = False,
0008 doLumiAnalysis = False,
0009
0010 doDCAPlots = True,
0011 pvNDOF = 1,
0012 doProfilesVsLS = True,
0013
0014 doEffFromHitPatternVsPU = True,
0015 doEffFromHitPatternVsBX = True,
0016 doEffFromHitPatternVsLUMI = True,
0017 doPlotsVsGoodPVtx = True,
0018 doPlotsVsLUMI = True,
0019 doPlotsVsBX = True
0020 )
0021 pixelTracksMonitoringHLT = trackingMonHLT.clone(
0022 FolderName = 'HLT/Tracking/pixelTracks',
0023 TrackProducer = 'hltPixelTracks',
0024 allTrackProducer = 'hltPixelTracks',
0025 doEffFromHitPatternVsPU = False,
0026 doEffFromHitPatternVsBX = False,
0027 doEffFromHitPatternVsLUMI = False
0028 )
0029
0030 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
0031 pp_on_PbPb_run3.toModify(pixelTracksMonitoringHLT,
0032 primaryVertex = 'hltPixelVerticesPPOnAA',
0033 TrackProducer = 'hltPixelTracksPPOnAA',
0034 allTrackProducer = 'hltPixelTracksPPOnAA')
0035
0036 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0037 phase2_tracker.toModify(pixelTracksMonitoringHLT,
0038 primaryVertex = 'hltPhase2PixelVertices',
0039 TrackProducer = 'hltPhase2PixelTracks',
0040 allTrackProducer = 'hltPhase2PixelTracks')
0041
0042 iter0TracksMonitoringHLT = trackingMonHLT.clone(
0043 FolderName = 'HLT/Tracking/iter0',
0044 TrackProducer = 'hltIter0PFlowCtfWithMaterialTracks',
0045 allTrackProducer = 'hltIter0PFlowCtfWithMaterialTracks',
0046 doEffFromHitPatternVsPU = True,
0047 doEffFromHitPatternVsBX = False,
0048 doEffFromHitPatternVsLUMI = False
0049 )
0050 iter0HPTracksMonitoringHLT = trackingMonHLT.clone(
0051 FolderName = 'HLT/Tracking/iter0HP',
0052 TrackProducer = 'hltIter0PFlowTrackSelectionHighPurity',
0053 allTrackProducer = 'hltIter0PFlowTrackSelectionHighPurity',
0054 doEffFromHitPatternVsPU = True,
0055 doEffFromHitPatternVsBX = False,
0056 doEffFromHitPatternVsLUMI = False
0057 )
0058 iter1TracksMonitoringHLT = trackingMonHLT.clone(
0059 FolderName = 'HLT/Tracking/iter1',
0060 TrackProducer = 'hltIter1PFlowCtfWithMaterialTracks',
0061 allTrackProducer = 'hltIter1PFlowCtfWithMaterialTracks',
0062 doEffFromHitPatternVsPU = True,
0063 doEffFromHitPatternVsBX = False,
0064 doEffFromHitPatternVsLUMI = False
0065 )
0066 iter1HPTracksMonitoringHLT = trackingMonHLT.clone(
0067 FolderName = 'HLT/Tracking/iter1HP',
0068 TrackProducer = 'hltIter1PFlowTrackSelectionHighPurity',
0069 allTrackProducer = 'hltIter1PFlowTrackSelectionHighPurity',
0070 doEffFromHitPatternVsPU = True,
0071 doEffFromHitPatternVsBX = False,
0072 doEffFromHitPatternVsLUMI = False
0073 )
0074 iter2TracksMonitoringHLT = trackingMonHLT.clone(
0075 FolderName = 'HLT/Tracking/iter2',
0076 TrackProducer = 'hltIter2PFlowCtfWithMaterialTracks',
0077 allTrackProducer = 'hltIter2PFlowCtfWithMaterialTracks',
0078 doEffFromHitPatternVsPU = True,
0079 doEffFromHitPatternVsBX = False,
0080 doEffFromHitPatternVsLUMI = False
0081 )
0082 iter2HPTracksMonitoringHLT = trackingMonHLT.clone(
0083 FolderName = 'HLT/Tracking/iter2HP',
0084 TrackProducer = 'hltIter2PFlowTrackSelectionHighPurity',
0085 allTrackProducer = 'hltIter2PFlowTrackSelectionHighPurity',
0086 doEffFromHitPatternVsPU = True,
0087 doEffFromHitPatternVsBX = False,
0088 doEffFromHitPatternVsLUMI = False
0089 )
0090 iter2MergedTracksMonitoringHLT = trackingMonHLT.clone(
0091 FolderName = 'HLT/Tracking/iter2Merged',
0092 TrackProducer = 'hltIter2Merged',
0093 allTrackProducer = 'hltIter2Merged',
0094 doEffFromHitPatternVsPU = True,
0095 doEffFromHitPatternVsBX = False,
0096 doEffFromHitPatternVsLUMI = False
0097 )
0098 iterHLTTracksMonitoringHLT = trackingMonHLT.clone(
0099 FolderName = 'HLT/Tracking/tracks',
0100 TrackProducer = 'hltMergedTracks',
0101 allTrackProducer = 'hltMergedTracks',
0102 doEffFromHitPatternVsPU = True,
0103 doEffFromHitPatternVsBX = True,
0104 doEffFromHitPatternVsLUMI = True,
0105 doDCAPlots = True,
0106 doPVPlots = cms.bool(True),
0107 doBSPlots = cms.bool(True),
0108 doSIPPlots = cms.bool(True)
0109 )
0110
0111 pp_on_PbPb_run3.toModify(iterHLTTracksMonitoringHLT,
0112 primaryVertex = 'hltPixelVerticesPPOnAA',
0113 TrackProducer = 'hltMergedTracksPPOnAA',
0114 allTrackProducer = 'hltMergedTracksPPOnAA')
0115
0116 phase2_tracker.toModify(iterHLTTracksMonitoringHLT,
0117 primaryVertex = 'hltPhase2PixelVertices',
0118 TrackProducer = 'hltGeneralTracks',
0119 allTrackProducer = 'hltGeneralTracks')
0120
0121 iter3TracksMonitoringHLT = trackingMonHLT.clone(
0122 FolderName = 'HLT/Tracking/iter3Merged',
0123 TrackProducer = 'hltIter3Merged',
0124 allTrackProducer = 'hltIter3Merged'
0125 )
0126 iter4TracksMonitoringHLT = trackingMonHLT.clone(
0127 FolderName = 'HLT/Tracking/iter4Merged',
0128 TrackProducer = 'hltIter4Merged',
0129 allTrackProducer = 'hltIter4Merged'
0130 )
0131 trackingMonitorHLT = cms.Sequence(
0132 pixelTracksMonitoringHLT
0133 + iter0HPTracksMonitoringHLT
0134
0135
0136 + iter2MergedTracksMonitoringHLT
0137 + iterHLTTracksMonitoringHLT
0138 )
0139
0140 trackingMonitorHLTall = cms.Sequence(
0141 pixelTracksMonitoringHLT
0142 + iter0TracksMonitoringHLT
0143 + iter0HPTracksMonitoringHLT
0144 + iter1TracksMonitoringHLT
0145 + iter1HPTracksMonitoringHLT
0146 + iter2TracksMonitoringHLT
0147 + iter2HPTracksMonitoringHLT
0148 + iter2MergedTracksMonitoringHLT
0149 + iterHLTTracksMonitoringHLT
0150
0151
0152 )
0153
0154 doubletRecoveryHPTracksMonitoringHLT = trackingMonHLT.clone(
0155 FolderName = 'HLT/Tracking/doubletRecoveryTracks',
0156 TrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurity',
0157 allTrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurity',
0158 doEffFromHitPatternVsPU = True,
0159 doEffFromHitPatternVsBX = False,
0160 doEffFromHitPatternVsLUMI = False
0161 )
0162
0163 pp_on_PbPb_run3.toModify(doubletRecoveryHPTracksMonitoringHLT,
0164 primaryVertex = 'hltPixelVerticesPPOnAA',
0165 TrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurityPPOnAA',
0166 allTrackProducer = 'hltDoubletRecoveryPFlowTrackSelectionHighPurityPPOnAA')
0167
0168
0169
0170
0171
0172
0173
0174 egmTrackingMonHLT = trackingMonHLT.clone(
0175 primaryVertex = "hltPixelVertices",
0176 doEffFromHitPatternVsPU = False,
0177 doEffFromHitPatternVsBX = False,
0178 doEffFromHitPatternVsLUMI = False
0179 )
0180 gsfTracksMonitoringHLT = egmTrackingMonHLT.clone(
0181 FolderName = 'HLT/EGM/Tracking/GSF',
0182 TrackProducer = 'hltEgammaGsfTracks',
0183 allTrackProducer = 'hltEgammaGsfTracks'
0184 )
0185
0186 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0187 phase2_common.toModify(gsfTracksMonitoringHLT,
0188 primaryVertex = 'hltPhase2PixelVertices',
0189 TrackProducer = 'hltEgammaGsfTracksL1Seeded',
0190 allTrackProducer = 'hltEgammaGsfTracksL1Seeded')
0191
0192 pixelTracksForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0193 FolderName = 'HLT/EGM/Tracking/pixelTracks',
0194 TrackProducer = 'hltPixelTracksElectrons',
0195 allTrackProducer = 'hltPixelTracksElectrons'
0196 )
0197 iter0ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0198 FolderName = 'HLT/EGM/Tracking/iter0',
0199 TrackProducer = 'hltIter0ElectronsCtfWithMaterialTracks',
0200 allTrackProducer = 'hltIter0ElectronsCtfWithMaterialTracks'
0201 )
0202 iter0HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0203 FolderName = 'HLT/EGM/Tracking/iter0HP',
0204 TrackProducer = 'hltIter0ElectronsTrackSelectionHighPurity',
0205 allTrackProducer = 'hltIter0ElectronsTrackSelectionHighPurity'
0206 )
0207 iter1ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0208 FolderName = 'HLT/EGM/Tracking/iter1',
0209 TrackProducer = 'hltIter1ElectronsCtfWithMaterialTracks',
0210 allTrackProducer = 'hltIter1ElectronsCtfWithMaterialTracks'
0211 )
0212 iter1HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0213 FolderName = 'HLT/EGM/Tracking/iter1HP',
0214 TrackProducer = 'hltIter1ElectronsTrackSelectionHighPurity',
0215 allTrackProducer = 'hltIter1ElectronsTrackSelectionHighPurity'
0216 )
0217 iter1MergedForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0218 FolderName = 'HLT/EGM/Tracking/iter1Merged',
0219 TrackProducer = 'hltIter1MergedForElectrons',
0220 allTrackProducer = 'hltIter1MergedForElectrons'
0221 )
0222 iter2ForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0223 FolderName = 'HLT/EGM/Tracking/iter2',
0224 TrackProducer = 'hltIter2ElectronsCtfWithMaterialTracks',
0225 allTrackProducer = 'hltIter2ElectronsCtfWithMaterialTracks'
0226 )
0227 iter2HPForElectronsTracksMonitoringHLT = egmTrackingMonHLT.clone(
0228 FolderName = 'HLT/EGM/Tracking/iter2HP',
0229 TrackProducer = 'hltIter2ElectronsTrackSelectionHighPurity',
0230 allTrackProducer = 'hltIter2ElectronsTrackSelectionHighPurity'
0231 )
0232 iterHLTTracksForElectronsMonitoringHLT = egmTrackingMonHLT.clone(
0233 FolderName = 'HLT/EGM/Tracking/iter2Merged',
0234 TrackProducer = 'hltIter2MergedForElectrons',
0235 allTrackProducer = 'hltIter2MergedForElectrons'
0236 )
0237
0238 egmTrackingMonitorHLT = cms.Sequence(
0239 gsfTracksMonitoringHLT
0240 + pixelTracksForElectronsTracksMonitoringHLT
0241 + iter0HPForElectronsTracksMonitoringHLT
0242
0243
0244 + iterHLTTracksForElectronsMonitoringHLT
0245 )
0246
0247 trkHLTDQMSourceExtra = cms.Sequence(
0248 )
0249
0250 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0251 run3_common.toReplaceWith(trackingMonitorHLT, cms.Sequence(pixelTracksMonitoringHLT + iterHLTTracksMonitoringHLT + doubletRecoveryHPTracksMonitoringHLT ))
0252 phase2_tracker.toReplaceWith(trackingMonitorHLT, cms.Sequence(pixelTracksMonitoringHLT + iterHLTTracksMonitoringHLT))
0253
0254 run3_common.toReplaceWith(trackingMonitorHLTall, cms.Sequence(pixelTracksMonitoringHLT + iter0TracksMonitoringHLT + iterHLTTracksMonitoringHLT))
0255 run3_common.toReplaceWith(egmTrackingMonitorHLT, cms.Sequence(gsfTracksMonitoringHLT))