CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
singletopHLTEventDQM_cfi.py
Go to the documentation of this file.
1 #Soureek updated HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCVS07_v to HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v
2 import FWCore.ParameterSet.Config as cms
3 
4 SingleTopSingleMuonHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
5  ## ------------------------------------------------------
6  ## SETUP
7  ##
8  ## configuration of the MonitoringEnsemble(s)
9  ## [mandatory] : optional PSets may be omitted
10  ##
11  setup = cms.PSet(
12  ## sub-directory to write the monitor histograms to
13  ## [mandatory] : should not be changed w/o explicit
14  ## communication to TopCom!
15  directory = cms.string("HLT/TopHLTOffline/SingleTop/SingleMuon/"),
16  ## [mandatory]
17  sources = cms.PSet(
18  muons = cms.InputTag("muons"),
19  elecs = cms.InputTag("gedGsfElectrons"),
20  jets = cms.InputTag("ak4PFJetsCHS"),
21  mets = cms.VInputTag("met", "tcMet", "pfMet"),
22  pvs = cms.InputTag("offlinePrimaryVertices")
23 
24  ),
25  ## [optional] : when omitted all monitoring plots for primary vertices
26  ## will be filled w/o extras
27  pvExtras = cms.PSet(
28  ## when omitted electron plots will be filled w/o additional pre-
29  ## selection of the primary vertex candidates
30  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
31  ),
32  ## [optional] : when omitted all monitoring plots for muons
33  ## will be filled w/o extras
34  muonExtras = cms.PSet(
35  ## when omitted muon plots will be filled w/o additional pre-
36  ## selection of the muon candidates
37  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1"),
38  ## when omitted isolated muon multiplicity plot will be equi-
39  ## valent to inclusive muon multiplicity plot
40  isolation = cms.string("(pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.2"),
41  ),
42  ## [optional] : when omitted all monitoring plots for jets
43  ## will be filled w/o extras
44  jetExtras = cms.PSet(
45  ## when omitted monitor plots for pt will be filled from uncorrected
46  ## jets
47  #jetCorrector = cms.string("ak4PFCHSL2L3"),
48  ## when omitted no extra selection will be applied on jets before
49  ## filling the monitor histograms; if jetCorrector is present the
50  ## selection will be applied to corrected jets
51  select = cms.string("pt>40 & abs(eta)<5.0"),
52  ## when omitted monitor histograms for b-tagging will not be filled
53  jetBTaggers = cms.PSet(
54  trackCountingEff = cms.PSet(
55  label = cms.InputTag("pfJetProbabilityBJetTags" ),
56  workingPoint = cms.double(0.275)
57  ),
58  trackCountingPur = cms.PSet(
59  label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
60  workingPoint = cms.double(3.41)
61  ),
62  secondaryVertex = cms.PSet(
63  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
64  workingPoint = cms.double(0.890)
65  )
66  ),
67  ),
68  ## [optional] : when omitted no mass window will be applied
69  ## for the W mass before filling the event monitoring plots
70  massExtras = cms.PSet(
71  lowerEdge = cms.double( 70.),
72  upperEdge = cms.double(110.)
73  ),
74  ## [optional] : when omitted the monitoring plots for triggering
75  ## will be empty
76  triggerExtras = cms.PSet(
77  src = cms.InputTag("TriggerResults","","HLT"),
78  paths = cms.vstring(['HLT_IsoMu18_CentralPFJet30_BTagCSV07_v', 'HLT_IsoMu18_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_v', 'HLT_IsoMu18_v', 'HLT_IsoMu22_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_CentralPFJet30_BTagCSV07_v', 'HLT_IsoMu20_eta2p1_TriCentralPFJet30_v', 'HLT_IsoMu20_eta2p1_TriCentralPFJet50_40_30_v', 'HLT_IsoMu20_eta2p1_CentralPFJet30_BTagCSV07_v', 'HLT_IsoMu20_eta2p1_v', 'HLT_IsoMu24_eta2p1_TriCentralPFJet30_v', 'HLT_IsoMu24_eta2p1_TriCentralPFJet50_40_30_v', 'HLT_IsoMu24_eta2p1_CentralPFJet30_BTagCSV07_v'])
79  )
80  ),
81  ## ------------------------------------------------------
82  ## PRESELECTION
83  ##
84  ## setup of the event preselection, which will not
85  ## be monitored
86  ## [mandatory] : but may be empty
87  ##
88  preselection = cms.PSet(
89  trigger = cms.PSet(
90  src = cms.InputTag("TriggerResults","","HLT"),
91  select = cms.vstring(['HLT_IsoMu18_CentralPFJet30_BTagCSV07_v', 'HLT_IsoMu18_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_v', 'HLT_IsoMu18_v', 'HLT_IsoMu22_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_CentralPFJet30_BTagCSV07_v', 'HLT_IsoMu20_eta2p1_TriCentralPFJet30_v', 'HLT_IsoMu20_eta2p1_TriCentralPFJet50_40_30_v', 'HLT_IsoMu20_eta2p1_CentralPFJet30_BTagCSV07_v', 'HLT_IsoMu20_eta2p1_v', 'HLT_IsoMu24_eta2p1_TriCentralPFJet30_v', 'HLT_IsoMu24_eta2p1_TriCentralPFJet50_40_30_v', 'HLT_IsoMu24_eta2p1_CentralPFJet30_BTagCSV07_v'])
92  ),
93  ## [optional] : when omitted no preselection is applied
94  vertex = cms.PSet(
95  src = cms.InputTag("offlinePrimaryVertices"),
96  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
97  )
98  ),
99  ## ------------------------------------------------------
100  ## SELECTION
101  ##
102  ## monitor histrograms are filled after each selection
103  ## step, the selection is applied in the order defined
104  ## by this vector
105  ## [mandatory] : may be empty or contain an arbitrary
106  ## number of PSets
107  selection = cms.VPSet(
108  cms.PSet(
109  label = cms.string("Hlt:step0"),
110  src = cms.InputTag(""),
111  select = cms.string(""),
112  min = cms.int32(0),
113  max = cms.int32(0),
114  ),
115  cms.PSet(
116  label = cms.string("muons:step1"),
117  src = cms.InputTag("muons"),
118  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1 & (pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.12"),
119  min = cms.int32(1),
120  max = cms.int32(1),
121  ),
122  #cms.PSet(
123  # label = cms.string("jets/pf:step2"),
124  # src = cms.InputTag("ak4PFJetsCHS"),
125  # jetCorrector = cms.string("ak4PFCHSL2L3"),
126  # select = cms.string("pt>40 & abs(eta)<5.0"),
127  # min = cms.int32(1),
128  #),
129  cms.PSet(
130  label = cms.string("jets/pf:step2"),
131  src = cms.InputTag("ak4PFJetsCHS"),
132  #jetCorrector = cms.string("ak4PFCHSL2L3"),
133  select = cms.string("pt>40 & abs(eta)<5.0"),
134  min = cms.int32(2),
135  ),
136  )
137 )
138 
139 SingleTopSingleElectronHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
140  ## ------------------------------------------------------
141  ## SETUP
142  ##
143  ## configuration of the MonitoringEnsemble(s)
144  ## [mandatory] : optional PSets may be omitted
145  ##
146  setup = cms.PSet(
147  ## sub-directory to write the monitor histograms to
148  ## [mandatory] : should not be changed w/o explicit
149  ## communication to TopCom!
150  directory = cms.string("HLT/TopHLTOffline/SingleTop/SingleElectron/"),
151  ## [mandatory]
152  sources = cms.PSet(
153  muons = cms.InputTag("muons"),
154  elecs = cms.InputTag("gedGsfElectrons"),
155  jets = cms.InputTag("ak4PFJetsCHS"),
156  mets = cms.VInputTag("met", "tcMet", "pfMet"),
157  pvs = cms.InputTag("offlinePrimaryVertices")
158 
159  ),
160  ## [optional] : when omitted all monitoring plots for primary vertices
161  ## will be filled w/o extras
162  pvExtras = cms.PSet(
163  ## when omitted electron plots will be filled w/o additional pre-
164  ## selection of the primary vertex candidates
165  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
166  ),
167  ## [optional] : when omitted all monitoring plots for electrons
168  ## will be filled w/o extras
169  elecExtras = cms.PSet(
170  ## when omitted electron plots will be filled w/o cut on electronId
171  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
172  ## when omitted electron plots will be filled w/o additional pre-
173  ## selection of the electron candidates
174  select = cms.string("pt>30 & abs(eta)<2.5"),
175  ## when omitted isolated electron multiplicity plot will be equi-
176  ## valent to inclusive electron multiplicity plot
177  isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
178  ),
179  ## [optional] : when omitted all monitoring plots for jets
180  ## will be filled w/o extras
181  jetExtras = cms.PSet(
182  ## when omitted monitor plots for pt will be filled from uncorrected
183  ## jets
184  #jetCorrector = cms.string("ak4PFCHSL2L3"),
185  ## when omitted no extra selection will be applied on jets before
186  ## filling the monitor histograms; if jetCorrector is present the
187  ## selection will be applied to corrected jets
188  select = cms.string("pt>40 & abs(eta)<5.0"),
189  ## when omitted monitor histograms for b-tagging will not be filled
190  jetBTaggers = cms.PSet(
191  trackCountingEff = cms.PSet(
192  label = cms.InputTag("pfJetProbabilityBJetTags" ),
193  workingPoint = cms.double(0.275)
194  ),
195  trackCountingPur = cms.PSet(
196  label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
197  workingPoint = cms.double(3.41)
198  ),
199  secondaryVertex = cms.PSet(
200  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
201  workingPoint = cms.double(0.890)
202  )
203  ),
204  ),
205  ## [optional] : when omitted no mass window will be applied
206  ## for the W mass before filling the event monitoring plots
207  massExtras = cms.PSet(
208  lowerEdge = cms.double( 70.),
209  upperEdge = cms.double(110.)
210  ),
211  ## [optional] : when omitted the monitoring plots for triggering
212  ## will be empty
213  triggerExtras = cms.PSet(
214  src = cms.InputTag("TriggerResults","","HLT"),
215 
216 ## Soureek changing path name HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCVS07_v to HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v
217  paths = cms.vstring(['HLT_Ele23_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v', 'HLT_Ele27_WPLoose_Gsf_WHbbBoost_v', 'HLT_Ele27_WPLoose_Gsf_v', 'HLT_Ele27_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v' 'HLT_Ele27_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_TriCentralPFJet30_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_TriCentralPFJet30_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v'])
218  )
219  ),
220  ## ------------------------------------------------------
221  ## PRESELECTION
222  ##
223  ## setup of the event preselection, which will not
224  ## be monitored
225  ## [mandatory] : but may be empty
226  ##
227  preselection = cms.PSet(
228  trigger = cms.PSet(
229  src = cms.InputTag("TriggerResults","","HLT"),
230 
231 ## Soureek changing path name HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCVS07_v to HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v
232  select = cms.vstring(['HLT_Ele23_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v', 'HLT_Ele27_WPLoose_Gsf_WHbbBoost_v', 'HLT_Ele27_WPLoose_Gsf_v', 'HLT_Ele27_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v' 'HLT_Ele27_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_TriCentralPFJet30_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_v', 'HLT_Ele27_eta2p1_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_TriCentralPFJet30_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_TriCentralPFJet50_40_30_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_v', 'HLT_Ele32_eta2p1_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v'])
233  ),
234  ## [optional] : when omitted no preselection is applied
235  vertex = cms.PSet(
236  src = cms.InputTag("offlinePrimaryVertices"),
237  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
238  )
239  ),
240  ## ------------------------------------------------------
241  ## SELECTION
242  ##
243  ## monitor histrograms are filled after each selection
244  ## step, the selection is applied in the order defined
245  ## by this vector
246  ## [mandatory] : may be empty or contain an arbitrary
247  ## number of PSets
248  selection = cms.VPSet(
249  cms.PSet(
250  label = cms.string("Hlt:step0"),
251  src = cms.InputTag(""),
252  select = cms.string(""),
253  min = cms.int32(0),
254  max = cms.int32(0),
255  ),
256  cms.PSet(
257  label = cms.string("elecs:step1"),
258  src = cms.InputTag("gedGsfElectrons"),
259  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
260  select = cms.string("pt>30 & abs(eta)<2.5 & (dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
261  min = cms.int32(1),
262  max = cms.int32(1),
263  ),
264  #cms.PSet(
265  # label = cms.string("jets/pf:step2"),
266  # src = cms.InputTag("ak4PFJetsCHS"),
267  # jetCorrector = cms.string("ak4PFCHSL2L3"),
268  # select = cms.string("pt>40 & abs(eta)<5.0"),
269  # min = cms.int32(1),
270  #),
271  cms.PSet(
272  label = cms.string("jets/pf:step2"),
273  src = cms.InputTag("ak4PFJetsCHS"),
274  #jetCorrector = cms.string("ak4PFCHSL2L3"),
275  select = cms.string("pt>40 & abs(eta)<5.0"),
276  min = cms.int32(2),
277  ),
278  )
279 )