File indexing completed on 2024-05-10 02:20:39
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0004
0005 from DQM.TrackingMonitorClient.TrackingEffFromHitPatternClientConfig_cff import trackingEffFromHitPattern
0006
0007 trackingEffFromHitPatternHLT = trackingEffFromHitPattern.clone(
0008 subDirs = ["HLT/Tracking/pixelTracks/HitEffFromHitPattern*",
0009 "HLT/Tracking/iter0HP/HitEffFromHitPattern*",
0010 "HLT/Tracking/iter2Merged/HitEffFromHitPattern*",
0011 "HLT/Tracking/tracks/HitEffFromHitPattern*"]
0012 )
0013
0014 trackingMonitorClientHLT = cms.Sequence(
0015 trackingEffFromHitPatternHLT
0016 )
0017
0018
0019 trackingForElectronsEffFromHitPatternHLT = trackingEffFromHitPattern.clone(
0020 subDirs = ["HLT/EGM/Tracking/GSF/HitEffFromHitPattern*",
0021 "HLT/EGM/Tracking/pixelTracks/HitEffFromHitPattern*",
0022 "HLT/EGM/Tracking/iter0HP/HitEffFromHitPattern*",
0023 "HLT/EGM/Tracking/iter2Merged/HitEffFromHitPattern*"]
0024 )
0025
0026 trackingForElectronsMonitorClientHLT = cms.Sequence(
0027 trackingForElectronsEffFromHitPatternHLT
0028 )
0029
0030 TrackToTrackEfficiencies = DQMEDHarvester("DQMGenericClient",
0031 subDirs = cms.untracked.vstring(
0032 "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurity",
0033 "HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurityPV",
0034 ),
0035 verbose = cms.untracked.uint32(0),
0036 resolution = cms.vstring(),
0037 efficiency = cms.vstring(
0038 "Eff_pt 'Relative Efficiency vs Pt;#P_T;relative efficiency' ref_matched_pt ref_pt eff",
0039 "Eff_eta 'Relative Efficiency vs Eta;#eta;relative efficiency' ref_matched_eta ref_eta eff",
0040 "Eff_phi 'Relative Efficiency vs Phi;#phi;relative efficiency' ref_matched_phi ref_phi eff",
0041 "Eff_dxy 'Relative Efficiency vs dxy;d_{xy};relative efficiency' ref_matched_dxy ref_dxy eff",
0042 "Eff_dz 'Relative Efficiency vs dz;d_{z};relative efficiency' ref_matched_dz ref_dz eff",
0043 "Eff_dxyWRTpv 'Relative Efficiency vs dxyWRTpv;d_{xy};relative efficiency' ref_matched_dxyWRTpv ref_dxyWRTpv eff",
0044 "Eff_dzWRTpv 'Relative Efficiency vs dzWRTpv;d_{z};relative efficiency' ref_matched_dzWRTpv ref_dzWRTpv eff",
0045 "Eff_charge 'Relative Efficiency vs charge;charge;relative efficiency' ref_matched_charge ref_charge eff",
0046 "Eff_hits 'Relative Efficiency vs hits;number of hits;relative efficiency' ref_matched_hits ref_hits eff",
0047 "Eff_OnlineLumi 'Relative Efficiency vs OnlineLumi;OnlineLumi E30 [Hz cm^{-2}];relative efficiency' ref_matched_onlinelumi ref_onlinelumi eff",
0048 "Eff_LS 'Relative Efficiency vs LS;LS;relative efficiency' ref_matched_ls ref_ls eff",
0049 "Eff_PU 'Relative Efficiency vs PU;PU;relative efficiency' ref_matched_PU ref_PU eff",
0050
0051 "FakeRate_pt 'Relative Fake Rate vs Pt;#P_T;relative fake rate' mon_unMatched_pt mon_pt eff",
0052 "FakeRate_eta 'Relative Fake Rate vs Eta;#eta;relative fake rate' mon_unMatched_eta mon_eta eff",
0053 "FakeRate_phi 'Relative Fake Rate vs Phi;#phi;relative fake rate' mon_unMatched_phi mon_phi eff",
0054 "FakeRate_dxy 'Relative Fake Rate vs dxy;d_{xy};relative fake rate' mon_unMatched_dxy mon_dxy eff",
0055 "FakeRate_dz 'Relative Fake Rate vs dz;d_{z};relative fake rate' mon_unMatched_dz mon_dz eff",
0056 "FakeRate_dxyWRTpv 'Relative Fake Rate vs dxyWRTpv;d_{xy};relative fake rate' mon_unMatched_dxyWRTpv mon_dxyWRTpv eff",
0057 "FakeRate_dzWRTpv 'Relative Fake Rate vs dzWRTpv;d_{z};relative fake rate' mon_unMatched_dzWRTpv mon_dzWRTpv eff",
0058 "FakeRate_charge 'Relative Fake Rate vs charge;charge;relative fake rate' mon_unMatched_charge mon_charge eff",
0059 "FakeRate_hits 'Relative Fake Rate vs hits;number of hits;relative fake rate' mon_unMatched_hits mon_hits eff",
0060 "FakeRate_OnlineLumi 'Relative Fake Rate vs OnlineLumi;OnlineLumi E30 [Hz cm^{-2}];relative fake rate' mon_unMatched_onlinelumi mon_onlinelumi eff",
0061 "FakeRate_LS 'Relative Fake Rate vs LS;LS;relative fake rate' mon_unMatched_ls mon_ls eff",
0062 "FakeRate_PU 'Relative Fake Rate vs PU;PU;relative fake rate' mon_unMatched_PU mon_PU eff",
0063 ),
0064 )
0065
0066 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff import pp_on_PbPb_run3
0067 pp_on_PbPb_run3.toModify(TrackToTrackEfficiencies,
0068 subDirs = [
0069 "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurity",
0070 "HLT/Tracking/ValidationWRTOffline/hltMergedPPonAAWrtHighPurityPV"])
0071
0072 EGMTrackToTrackEfficiencies = TrackToTrackEfficiencies.clone(
0073 subDirs = cms.untracked.vstring(
0074 "HLT/EGM/Tracking/ValidationWRTOffline/hltEgammaGsfTracks",
0075 "HLT/EGM/Tracking/ValidationWRTOffline/hltEgammaGsfTracksPV",
0076 )
0077 )
0078
0079 trackEfficiencyMonitoringClientHLT = cms.Sequence(
0080 TrackToTrackEfficiencies+
0081 EGMTrackToTrackEfficiencies
0082 )
0083
0084 def _modifyForRun3Default(efffromhitpattern):
0085 efffromhitpattern.subDirs = ["HLT/Tracking/pixelTracks/HitEffFromHitPattern*", "HLT/Tracking/tracks/HitEffFromHitPattern*", "HLT/Tracking/doubletRecoveryTracks/HitEffFromHitPattern*"]
0086
0087 def _modifyForRun3EGM(efffromhitpattern):
0088 efffromhitpattern.subDirs = ["HLT/EGM/Tracking/GSF/HitEffFromHitPattern*"]
0089
0090 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0091 run3_common.toModify(trackingEffFromHitPatternHLT, _modifyForRun3Default)
0092 run3_common.toModify(trackingForElectronsEffFromHitPatternHLT, _modifyForRun3EGM)