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 
26  ),
27 
28 
29  efficiencyProfile = cms.untracked.vstring(
30  "efficiencyVertex 'Efficiency to Match Reco Muons to Trigger Objects; NVertex^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyVertex_numer efficiencyVertex_denom",
31  "efficiencyEta 'Efficiency to Match Reco Muons to Trigger Objects; #eta^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyEta_numer efficiencyEta_denom",
32  "efficiencyPhi 'Efficiency to Match Reco Muons to Trigger Objects; #phi^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyPhi_numer efficiencyPhi_denom",
33  "efficiencyTurnOn 'Efficiency to Match Reco Muons to Trigger Objects; p_{T}^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyTurnOn_numer efficiencyTurnOn_denom",
34  "efficiencyD0 'Efficiency to Match Reco Muons to Trigger Objects; d0^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyD0_numer efficiencyD0_denom",
35  "efficiencyZ0 'Efficiency to Match Reco Muons to Trigger Objects; z0^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyZ0_numer efficiencyZ0_denom",
36  "efficiencyCharge 'Efficiency to Match Reco Muons to Trigger Objects; q^{reco}; N(#mu matched to trigger object) / N(#mu)' efficiencyCharge_numer efficiencyCharge_denom",
37  "fakerateVertex 'Trigger Fake Rate; NVertex^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakerateVertex_numer fakerateVertex_denom",
38  "fakerateEta 'Trigger Fake Rate; #eta^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakerateEta_numer fakerateEta_denom",
39  "fakeratePhi 'Trigger Fake Rate; #phi^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakeratePhi_numer fakeratePhi_denom",
40  "fakerateTurnOn 'Trigger Fake Rate; p_{T}^{trigger}; N(unmatched trigger objects) / N(trigger objects)' fakerateTurnOn_numer fakerateTurnOn_denom",
41 
42  "TPefficiencyEtaJPsi 'Tag & Probe efficiency; #eta; N(tt) / N(tp)' massVsEtaJpsi_numer massVsEtaJpsi_denom",
43  "TPefficiencyPtJPsi 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' massVsPtJpsi_numer massVsPtJpsi_denom",
44  "TPefficiencyDeltaR 'Tag & Probe efficiency; #Delta R; N(tt) / N(tp)' efficiencyDeltaR_numer efficiencyDeltaR_denom",
45  "TPefficiencyVertexZ 'Tag & Probe efficiency; NVertex; N(tt) / N(tp)' massVsVertexZ_numer massVsVertexZ_denom",
46 
47  ),
48 
49 )
50 
51 hltMuonEfficienciesMR = DQMEDHarvester("DQMGenericClient",
52 
53  subDirs = cms.untracked.vstring("HLT/Muon/MR/Distributions.*"),
54  verbose = cms.untracked.uint32(0), # Set to 2 for all messages
55  outputFileName = cms.untracked.string(''),
56  commands = cms.vstring(),
57  resolution = cms.vstring(),
58  efficiency = cms.vstring(
59  "MR_efficiencyPhiVsEta 'Efficiency to Match Reco Muons to Trigger Objects; #eta^{reco}; #phi^{reco}' MR_efficiencyPhiVsEta_numer MR_efficiencyPhiVsEta_denom",
60  "MR_TPefficiencyPtZ 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' MR_massVsPtZ_numer MR_massVsPtZ_denom",
61  "MR_TPefficiencyDZZ 'Tag & Probe efficiency; DZ; N(tt) / N(tp)' MR_massVsDZZ_numer MR_massVsDZZ_denom",
62  "MR_TPefficiencyEtaZ 'Tag & Probe efficiency; Eta; N(tt) / N(tp)' MR_massVsEtaZ_numer MR_massVsEtaZ_denom",
63  "MR_TPefficiencyPhiZ 'Tag & Probe efficiency; Phi; N(tt) / N(tp)' MR_massVsPhiZ_numer MR_massVsPhiZ_denom",
64  "MR_Refefficiency_Pt 'Reference efficiency; Pt; Pt' MR_Refefficiency_Pt_numer MR_Refefficiency_Pt_denom",
65  "MR_Refefficiency_TurnOn_Mu1 'Reference efficiency; Pt; N(pass) / N' MR_Refefficiency_TurnOn_Mu1_numer MR_Refefficiency_TurnOn_Mu1_denom",
66  "MR_Refefficiency_TurnOn_Mu2 'Reference efficiency; Pt; N(pass) / N' MR_Refefficiency_TurnOn_Mu2_numer MR_Refefficiency_TurnOn_Mu2_denom",
67  "MR_Refefficiency_Vertex 'Reference efficiency; NVertex; N(pass) / N' MR_Refefficiency_Vertex_numer MR_Refefficiency_Vertex_denom",
68  "MR_Refefficiency_DZ_Mu 'Reference efficiency; d_{z}; N(pass) / N' MR_Refefficiency_DZ_Mu_numer MR_Refefficiency_DZ_Mu_denom"
69 
70 
71  ),
72 
73 
74  efficiencyProfile = cms.untracked.vstring(
75  "MR_TPefficiencyPtJPsi 'Tag & Probe efficiency; p_{T}; N(tt) / N(tp)' MR_massVsPtJpsi_numer MR_massVsPtJpsi_denom",
76  "MR_TPefficiencyVertexJPsi 'Tag & Probe efficiency; NVertex; N(tt) / N(tp)' MR_massVsVertexJpsi_numer MR_massVsVertexJpsi_denom",
77  "MR_TPefficiencyVertexZ 'Tag & Probe efficiency; NVertex; N(tt) / N(tp)' MR_massVsVertexZ_numer MR_massVsVertexZ_denom"
78 
79  ),
80 
81 )
82 
83 hltMuonRefEfficiencies = DQMEDHarvester("HLTMuonRefMethod",
84  subDirs = cms.untracked.vstring("HLT/Muon/Distributions.*"),
85  outputFileName = cms.untracked.string(''),
86  hltTriggers = cms.untracked.vstring("HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ",
87  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ"),
88  refTriggers = cms.untracked.string("HLT_Mu17_TrkIsoVVL"),
89  efficiency = cms.untracked.vstring( "Refefficiency_Eta_Mu1",
90  "Refefficiency_Eta_Mu2",
91  "Refefficiency_TurnOn_Mu1",
92  "Refefficiency_TurnOn_Mu2",
93  "Refefficiency_DZ_Mu",
94  "Refefficiency_Pt",
95  "Refefficiency_Eta",
96  "Refefficiency_DZ_Mu",
97  ),
98  refEff = cms.untracked.vstring( 'TPefficiencyEtaZ',
99  'TPefficiencyEtaZ',
100  'TPefficiencyPtZ',
101  'TPefficiencyPtZ',
102  'TPefficiencyDZZ',
103  'TPefficiencyPtZ',
104  "TPefficiencyEtaZ",
105  'TPefficiencyDZZ',
106  ),
107 
108  )
109 
110 hltMuonRefEfficienciesMR = DQMEDHarvester("HLTMuonRefMethod",
111  subDirs = cms.untracked.vstring("HLT/Muon/MR/Distributions.*"),
112  outputFileName = cms.untracked.string(''),
113  hltTriggers = cms.untracked.vstring("HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ",
114  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ"),
115  refTriggers = cms.untracked.string("HLT_Mu17_TrkIsoVVL"),
116  efficiency = cms.untracked.vstring( "MR_Refefficiency_TurnOn_Mu1",
117  "MR_Refefficiency_TurnOn_Mu2",
118  "MR_Refefficiency_DZ_Mu",
119  "MR_Refefficiency_Pt"
120  "MR_Refefficiency_DZ_Mu",
121  ),
122  refEff = cms.untracked.vstring( 'MR_TPefficiencyPtZ',
123  'MR_TPefficiencyPtZ',
124  'MR_TPefficiencyDZZ',
125  'MR_TPefficiencyPtZ',
126  'MR_TPefficiencyDZZ',
127  ),
128 
129  )
130 
131 
132 
133 hltMuonPostVal = cms.Sequence(
134  hltMuonEfficiencies*
135  hltMuonEfficienciesMR*
136  hltMuonRefEfficiencies*
137  hltMuonRefEfficienciesMR
138 )
139 
140 
141 
142 
143