CMS 3D CMS Logo

MuonPostProcessor_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 
4 hltMuonEfficiencies = DQMEDHarvester("DQMGenericClient",
5 
6  subDirs = cms.untracked.vstring("HLT/Muon/Distributions.*"),
7  verbose = cms.untracked.uint32(0), # Set to 2 for all messages
8  outputFileName = cms.untracked.string(''),
9  commands = cms.vstring(),
10  resolution = cms.vstring(),
11  efficiency = cms.vstring(
12  "efficiencyPhiVsEta 'Efficiency to Match Reco Muons to Trigger Objects; #eta^{reco}; #phi^{reco}' efficiencyPhiVsEta_numer efficiencyPhiVsEta_denom",
13  "TPefficiencyEtaZ 'Tag & Probe efficiency; #eta; N(tt) / N(tp)' massVsEtaZ_numer massVsEtaZ_denom",
14  "TPefficiencyPtZ 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' massVsPtZ_numer massVsPtZ_denom",
15  "TPefficiencyDZZ 'Tag & Probe efficiency; DZ; N(tt) / N(tp)' massVsDZZ_numer massVsDZZ_denom",
16  "Refefficiency_Pt 'Reference efficiency; Pt; Pt' Refefficiency_Pt_numer Refefficiency_Pt_denom",
17  "Refefficiency_Eta 'Reference efficiency; Eta; Eta' Refefficiency_Eta_numer Refefficiency_Eta_denom",
18  "Refefficiency_Eta_Mu1 'Reference efficiency; Eta; N(pass) / N' Refefficiency_Eta_Mu1_numer Refefficiency_Eta_Mu1_denom",
19 "Refefficiency_Eta_Mu2 'Reference efficiency; Eta; N(pass) / N' Refefficiency_Eta_Mu2_numer Refefficiency_Eta_Mu2_denom",
20  "Refefficiency_Vertex 'Reference efficiency; NVertex; N(pass) / N' Refefficiency_Vertex_numer Refefficiency_Vertex_denom",
21  "Refefficiency_TurnOn_Mu1 'Reference efficiency; Pt; N(pass) / N' Refefficiency_TurnOn_Mu1_numer Refefficiency_TurnOn_Mu1_denom",
22  "Refefficiency_TurnOn_Mu2 'Reference efficiency; Pt; N(pass) / N' Refefficiency_TurnOn_Mu2_numer Refefficiency_TurnOn_Mu2_denom",
23  "Refefficiency_DZ_Mu 'Reference efficiency; d_{z}; N(pass) / N' Refefficiency_DZ_Mu_numer Refefficiency_DZ_Mu_denom",
24  "Refefficiency_DZ_Vertex 'Reference efficiency; d_{z}; N(pass) / N' Refefficiency_DZ_Vertex_numer Refefficiency_DZ_Vertex_denom",
25  "Ref_SS_pt1 'Same sign efficiency'; p_{T}; N(pass) / N' Ref_SS_pt1_numer Ref_SS_pt1_denom",
26  "Ref_SS_pt2 'Same sign efficiency'; p_{T}; N(pass) / N' Ref_SS_pt2_numer Ref_SS_pt2_denom",
27  "Ref_SS_eta1 'Same sign efficiency'; p_{T}; N(pass) / N' Ref_SS_eta1_numer Ref_SS_eta1_denom",
28  "Ref_SS_eta2 'Same sign efficiency'; p_{T}; N(pass) / N' Ref_SS_eta2_numer Ref_SS_eta2_denom",
29  ),
30 
31 
32  efficiencyProfile = cms.untracked.vstring(
33  "efficiencyVertex 'Efficiency to Match Reco Muons to Trigger Objects; NVertex^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyVertex_numer efficiencyVertex_denom",
34  "efficiencyEta 'Efficiency to Match Reco Muons to Trigger Objects; #eta^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyEta_numer efficiencyEta_denom",
35  "efficiencyPhi 'Efficiency to Match Reco Muons to Trigger Objects; #phi^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyPhi_numer efficiencyPhi_denom",
36  "efficiencyTurnOn 'Efficiency to Match Reco Muons to Trigger Objects; p_{T}^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyTurnOn_numer efficiencyTurnOn_denom",
37  "efficiencyD0 'Efficiency to Match Reco Muons to Trigger Objects; d0^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyD0_numer efficiencyD0_denom",
38  "efficiencyZ0 'Efficiency to Match Reco Muons to Trigger Objects; z0^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyZ0_numer efficiencyZ0_denom",
39  "efficiencyCharge 'Efficiency to Match Reco Muons to Trigger Objects; q^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyCharge_numer efficiencyCharge_denom",
40  "fakerateVertex 'Trigger Fake Rate; NVertex^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakerateVertex_numer fakerateVertex_denom",
41  "fakerateEta 'Trigger Fake Rate; #eta^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakerateEta_numer fakerateEta_denom",
42  "fakeratePhi 'Trigger Fake Rate; #phi^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakeratePhi_numer fakeratePhi_denom",
43  "fakerateTurnOn 'Trigger Fake Rate; p_{T}^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakerateTurnOn_numer fakerateTurnOn_denom",
44 
45  "TPefficiencyEtaJPsi 'Tag & Probe efficiency; #eta; N(tt) / N(tp)' massVsEtaJpsi_numer massVsEtaJpsi_denom",
46  "TPefficiencyPtJPsi 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' massVsPtJpsi_numer massVsPtJpsi_denom",
47  "TPefficiencyDeltaR 'Tag & Probe efficiency; #Delta R; N(tt) / N(tp)' efficiencyDeltaR_numer efficiencyDeltaR_denom",
48  "TPefficiencyVertexZ 'Tag & Probe efficiency; NVertex; N(tt) / N(tp)' massVsVertexZ_numer massVsVertexZ_denom",
49 
50  ),
51 
52 )
53 
54 hltMuonEfficienciesMR = DQMEDHarvester("DQMGenericClient",
55 
56  subDirs = cms.untracked.vstring("HLT/Muon/MR/Distributions.*"),
57  verbose = cms.untracked.uint32(0), # Set to 2 for all messages
58  outputFileName = cms.untracked.string(''),
59  commands = cms.vstring(),
60  resolution = cms.vstring(),
61  efficiency = cms.vstring(
62  "MR_efficiencyPhiVsEta 'Efficiency to Match Reco Muons to Trigger Objects; #eta^{reco}; #phi^{reco}' MR_efficiencyPhiVsEta_numer MR_efficiencyPhiVsEta_denom",
63  "MR_TPefficiencyPtZ 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' MR_massVsPtZ_numer MR_massVsPtZ_denom",
64  "MR_TPefficiencyDZZ 'Tag & Probe efficiency; DZ; N(tt) / N(tp)' MR_massVsDZZ_numer MR_massVsDZZ_denom",
65  "MR_TPefficiencyEtaZ 'Tag & Probe efficiency; Eta; N(tt) / N(tp)' MR_massVsEtaZ_numer MR_massVsEtaZ_denom",
66  "MR_TPefficiencyPhiZ 'Tag & Probe efficiency; Phi; N(tt) / N(tp)' MR_massVsPhiZ_numer MR_massVsPhiZ_denom",
67  "MR_Refefficiency_Pt 'Reference efficiency; Pt; Pt' MR_Refefficiency_Pt_numer MR_Refefficiency_Pt_denom",
68  "MR_Refefficiency_TurnOn_Mu1 'Reference efficiency; Pt; N(pass) / N' MR_Refefficiency_TurnOn_Mu1_numer MR_Refefficiency_TurnOn_Mu1_denom",
69  "MR_Refefficiency_TurnOn_Mu2 'Reference efficiency; Pt; N(pass) / N' MR_Refefficiency_TurnOn_Mu2_numer MR_Refefficiency_TurnOn_Mu2_denom",
70  "MR_Refefficiency_Vertex 'Reference efficiency; NVertex; N(pass) / N' MR_Refefficiency_Vertex_numer MR_Refefficiency_Vertex_denom",
71  "MR_Refefficiency_DZ_Mu 'Reference efficiency; d_{z}; N(pass) / N' MR_Refefficiency_DZ_Mu_numer MR_Refefficiency_DZ_Mu_denom"
72 
73 
74  ),
75 
76 
77  efficiencyProfile = cms.untracked.vstring(
78  "MR_TPefficiencyPtJPsi 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' MR_massVsPtJpsi_numer MR_massVsPtJpsi_denom",
79  "MR_TPefficiencyVertexJPsi 'Tag & Probe efficiency; NVertex; N(tt) / N(tp)' MR_massVsVertexJpsi_numer MR_massVsVertexJpsi_denom",
80  "MR_TPefficiencyVertexZ 'Tag & Probe efficiency; NVertex; N(tt) / N(tp)' MR_massVsVertexZ_numer MR_massVsVertexZ_denom"
81 
82  ),
83 
84 )
85 
86 hltMuonRefEfficiencies = DQMEDHarvester("HLTMuonRefMethod",
87  subDirs = cms.untracked.vstring("HLT/Muon/Distributions.*"),
88  outputFileName = cms.untracked.string(''),
89  hltTriggers = cms.untracked.vstring("HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ",
90  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ"),
91  refTriggers = cms.untracked.string("HLT_Mu17_TrkIsoVVL"),
92  efficiency = cms.untracked.vstring( "Refefficiency_Eta_Mu1",
93  "Refefficiency_Eta_Mu2",
94  "Refefficiency_TurnOn_Mu1",
95  "Refefficiency_TurnOn_Mu2",
96  "Refefficiency_DZ_Mu",
97  "Refefficiency_Pt",
98  "Refefficiency_Eta",
99  "Refefficiency_DZ_Mu",
100  ),
101  refEff = cms.untracked.vstring( 'TPefficiencyEtaZ',
102  'TPefficiencyEtaZ',
103  'TPefficiencyPtZ',
104  'TPefficiencyPtZ',
105  'TPefficiencyDZZ',
106  'TPefficiencyPtZ',
107  "TPefficiencyEtaZ",
108  'TPefficiencyDZZ',
109  ),
110 
111  )
112 
113 hltMuonRefEfficienciesMR = DQMEDHarvester("HLTMuonRefMethod",
114  subDirs = cms.untracked.vstring("HLT/Muon/MR/Distributions.*"),
115  outputFileName = cms.untracked.string(''),
116  hltTriggers = cms.untracked.vstring("HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ",
117  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ"),
118  refTriggers = cms.untracked.string("HLT_Mu17_TrkIsoVVL"),
119  efficiency = cms.untracked.vstring( "MR_Refefficiency_TurnOn_Mu1",
120  "MR_Refefficiency_TurnOn_Mu2",
121  "MR_Refefficiency_DZ_Mu",
122  "MR_Refefficiency_Pt"
123  "MR_Refefficiency_DZ_Mu",
124  ),
125  refEff = cms.untracked.vstring( 'MR_TPefficiencyPtZ',
126  'MR_TPefficiencyPtZ',
127  'MR_TPefficiencyDZZ',
128  'MR_TPefficiencyPtZ',
129  'MR_TPefficiencyDZZ',
130  ),
131 
132  )
133 
134 
135 
136 hltMuonPostVal = cms.Sequence(
137  hltMuonEfficiencies*
138  hltMuonEfficienciesMR*
139  hltMuonRefEfficiencies*
140  hltMuonRefEfficienciesMR
141 )
142 
143 
144 
145 
146