CMS 3D CMS Logo

EfficencyPlotter_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 
4 effPlotterLoose = DQMEDHarvester("EfficiencyPlotter",
5  folder = cms.string("Muons/EfficiencyAnalyzer"),
6  phiMin = cms.double(-3.2),
7  etaMin = cms.double(-2.5),
8  ptMin = cms.double(10),
9  etaBin = cms.int32(8),
10  ptBin = cms.int32(10),
11  phiBin = cms.int32(8),
12  etaMax = cms.double(2.5),
13  phiMax = cms.double(3.2),
14  ptMax = cms.double(100),
15  vtxBin = cms.int32(30),
16  vtxMin = cms.double(0.5),
17  vtxMax = cms.double(149.5),
18  MuonID = cms.string("Loose")
19  )
20 
21 
22 effPlotterMedium = DQMEDHarvester("EfficiencyPlotter",
23  folder = cms.string("Muons/EfficiencyAnalyzer"),
24  phiMin = cms.double(-3.2),
25  etaMin = cms.double(-2.5),
26  ptMin = cms.double(10),
27  etaBin = cms.int32(8),
28  ptBin = cms.int32(10),
29  phiBin = cms.int32(8),
30  etaMax = cms.double(2.5),
31  phiMax = cms.double(3.2),
32  ptMax = cms.double(100),
33  vtxBin = cms.int32(30),
34  vtxMin = cms.double(0.5),
35  vtxMax = cms.double(149.5),
36  MuonID = cms.string("Medium")
37  )
38 
39 
40 effPlotterTight = DQMEDHarvester("EfficiencyPlotter",
41  folder = cms.string("Muons/EfficiencyAnalyzer"),
42  phiMin = cms.double(-3.2),
43  etaMin = cms.double(-2.5),
44  ptMin = cms.double(10),
45  etaBin = cms.int32(8),
46  ptBin = cms.int32(10),
47  phiBin = cms.int32(8),
48  etaMax = cms.double(2.5),
49  phiMax = cms.double(3.2),
50  ptMax = cms.double(100),
51  vtxBin = cms.int32(30),
52  vtxMin = cms.double(0.5),
53  vtxMax = cms.double(149.5),
54  MuonID = cms.string("Tight")
55  )
56 effPlotterLooseMiniAOD = DQMEDHarvester("EfficiencyPlotter",
57  folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer"),
58  phiMin = cms.double(-3.2),
59  etaMin = cms.double(-2.5),
60  ptMin = cms.double(10),
61  etaBin = cms.int32(8),
62  ptBin = cms.int32(10),
63  phiBin = cms.int32(8),
64  etaMax = cms.double(2.5),
65  phiMax = cms.double(3.2),
66  ptMax = cms.double(100),
67  vtxBin = cms.int32(30),
68  vtxMin = cms.double(0.5),
69  vtxMax = cms.double(149.5),
70  MuonID = cms.string("Loose")
71  )
72 
73 
74 effPlotterMediumMiniAOD = DQMEDHarvester("EfficiencyPlotter",
75  folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer"),
76  phiMin = cms.double(-3.2),
77  etaMin = cms.double(-2.5),
78  ptMin = cms.double(10),
79  etaBin = cms.int32(8),
80  ptBin = cms.int32(10),
81  phiBin = cms.int32(8),
82  etaMax = cms.double(2.5),
83  phiMax = cms.double(3.2),
84  ptMax = cms.double(100),
85  vtxBin = cms.int32(30),
86  vtxMin = cms.double(0.5),
87  vtxMax = cms.double(149.5),
88  MuonID = cms.string("Medium")
89  )
90 
91 
92 effPlotterTightMiniAOD = DQMEDHarvester("EfficiencyPlotter",
93  folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer"),
94  phiMin = cms.double(-3.2),
95  etaMin = cms.double(-2.5),
96  ptMin = cms.double(10),
97  etaBin = cms.int32(8),
98  ptBin = cms.int32(10),
99  phiBin = cms.int32(8),
100  etaMax = cms.double(2.5),
101  phiMax = cms.double(3.2),
102  ptMax = cms.double(100),
103  vtxBin = cms.int32(30),
104  vtxMin = cms.double(0.5),
105  vtxMax = cms.double(149.5),
106  MuonID = cms.string("Tight")
107  )
108 
109 
110 effPlotter=cms.Sequence(effPlotterLoose*effPlotterMedium*effPlotterTight)
111 effPlotter_miniAOD=cms.Sequence(effPlotterLooseMiniAOD*effPlotterMediumMiniAOD*effPlotterTightMiniAOD)
112 
113 effPlotterLoose_Phase2=effPlotterLoose.clone(
114  vtxBin=20,
115  vtxMin=149.5,
116  vtxMax=249.5
117  )
118 effPlotterMedium_Phase2=effPlotterMedium.clone(
119  vtxBin=20,
120  vtxMin=149.5,
121  vtxMax=249.5
122 )
123 effPlotterTight_Phase2=effPlotterTight.clone(
124  vtxBin=20,
125  vtxMin=149.5,
126  vtxMax=249.5
127 )
128 effPlotterLooseMiniAOD_Phase2=effPlotterLooseMiniAOD.clone(
129  vtxBin=20,
130  vtxMin=149.5,
131  vtxMax=249.5
132 )
133 effPlotterMediumMiniAOD_Phase2=effPlotterMediumMiniAOD.clone(
134  vtxBin=20,
135  vtxMin=149.5,
136  vtxMax=249.5
137 )
138 effPlotterTightMiniAOD_Phase2=effPlotterTightMiniAOD.clone(
139  vtxBin=20,
140  vtxMin=149.5,
141  vtxMax=249.5
142 )
143 
144 effPlotter_Phase2=cms.Sequence(effPlotterLoose_Phase2*effPlotterMedium_Phase2*effPlotterTight_Phase2)
145 effPlotter_miniAOD_Phase2=cms.Sequence(effPlotterLooseMiniAOD_Phase2*effPlotterMediumMiniAOD_Phase2*effPlotterTightMiniAOD_Phase2)
146 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
147 phase2_muon.toReplaceWith(effPlotter,effPlotter_Phase2)
148 phase2_muon.toReplaceWith(effPlotter_miniAOD,effPlotter_miniAOD_Phase2)
149 
150