-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathTrackingMonitoring_Client_cff.py
74 lines (62 loc) · 4.51 KB
/
TrackingMonitoring_Client_cff.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
from DQM.TrackingMonitorClient.TrackingEffFromHitPatternClientConfig_cff import trackingEffFromHitPattern
trackingEffFromHitPatternHLT = trackingEffFromHitPattern.clone(
subDirs = ["HLT/Tracking/pixelTracks/HitEffFromHitPattern*",
"HLT/Tracking/iter0HP/HitEffFromHitPattern*",
"HLT/Tracking/iter2Merged/HitEffFromHitPattern*",
"HLT/Tracking/tracks/HitEffFromHitPattern*"]
)
# Sequence
trackingMonitorClientHLT = cms.Sequence(
trackingEffFromHitPatternHLT
)
# EGM tracking
trackingForElectronsEffFromHitPatternHLT = trackingEffFromHitPattern.clone(
subDirs = ["HLT/EGM/Tracking/GSF/HitEffFromHitPattern*",
"HLT/EGM/Tracking/pixelTracks/HitEffFromHitPattern*",
"HLT/EGM/Tracking/iter0HP/HitEffFromHitPattern*",
"HLT/EGM/Tracking/iter2Merged/HitEffFromHitPattern*"]
)
# Sequence
trackingForElectronsMonitorClientHLT = cms.Sequence(
trackingForElectronsEffFromHitPatternHLT
)
TrackToTrackEfficiencies = DQMEDHarvester("DQMGenericClient",
subDirs = cms.untracked.vstring(
"HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurity",
"HLT/Tracking/ValidationWRTOffline/hltMergedWrtHighPurityPV",
),
verbose = cms.untracked.uint32(0),
resolution = cms.vstring(),
efficiency = cms.vstring(
"Eff_pt 'Relative Efficiency vs Pt;#P_T;relative efficiency' ref_matched_pt ref_pt eff",
"Eff_eta 'Relative Efficiency vs Eta;#eta;relative efficiency' ref_matched_eta ref_eta eff",
"Eff_phi 'Relative Efficiency vs Phi;#phi;relative efficiency' ref_matched_phi ref_phi eff",
"Eff_dxy 'Relative Efficiency vs dxy;d_{xy};relative efficiency' ref_matched_dxy ref_dxy eff",
"Eff_dz 'Relative Efficiency vs dz;d_{z};relative efficiency' ref_matched_dz ref_dz eff",
"Eff_dxyWRTpv 'Relative Efficiency vs dxyWRTpv;d_{xy};relative efficiency' ref_matched_dxyWRTpv ref_dxyWRTpv eff",
"Eff_dzWRTpv 'Relative Efficiency vs dzWRTpv;d_{z};relative efficiency' ref_matched_dzWRTpv ref_dzWRTpv eff",
"Eff_charge 'Relative Efficiency vs charge;charge;relative efficiency' ref_matched_charge ref_charge eff",
"Eff_hits 'Relative Efficiency vs hits;number of hits;relative efficiency' ref_matched_hits ref_hits eff",
"FakeRate_pt 'Relative Fake Rate vs Pt;#P_T;relative fake rate' mon_unMatched_pt mon_pt eff",
"FakeRate_eta 'Relative Fake Rate vs Eta;#eta;relative fake rate' mon_unMatched_eta mon_eta eff",
"FakeRate_phi 'Relative Fake Rate vs Phi;#phi;relative fake rate' mon_unMatched_phi mon_phi eff",
"FakeRate_dxy 'Relative Fake Rate vs dxy;d_{xy};relative fake rate' mon_unMatched_dxy mon_dxy eff",
"FakeRate_dz 'Relative Fake Rate vs dz;d_{z};relative fake rate' mon_unMatched_dz mon_dz eff",
"FakeRate_dxyWRTpv 'Relative Fake Rate vs dxyWRTpv;d_{xy};relative fake rate' mon_unMatched_dxyWRTpv mon_dxyWRTpv eff",
"FakeRate_dzWRTpv 'Relative Fake Rate vs dzWRTpv;d_{z};relative fake rate' mon_unMatched_dzWRTpv mon_dzWRTpv eff",
"FakeRate_charge 'Relative Fake Rate vs charge;charge;relative fake rate' mon_unMatched_charge mon_charge eff",
"FakeRate_hits 'Relative Fake Rate vs hits;number of hits;relative fake rate' mon_unMatched_hits mon_hits eff",
),
)
trackEfficiencyMonitoringClientHLT = cms.Sequence(
TrackToTrackEfficiencies
)
def _modifyForRun3Default(efffromhitpattern):
efffromhitpattern.subDirs = ["HLT/Tracking/pixelTracks/HitEffFromHitPattern*", "HLT/Tracking/tracks/HitEffFromHitPattern*"]
def _modifyForRun3EGM(efffromhitpattern):
efffromhitpattern.subDirs = ["HLT/EGM/Tracking/GSF/HitEffFromHitPattern*"]
from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify(trackingEffFromHitPatternHLT, _modifyForRun3Default)
run3_common.toModify(trackingForElectronsEffFromHitPatternHLT, _modifyForRun3EGM)