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 import FWCore.ParameterSet.Config as cms
2 
3 SingleTopSingleMuonHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
4  ## ------------------------------------------------------
5  ## SETUP
6  ##
7  ## configuration of the MonitoringEnsemble(s)
8  ## [mandatory] : optional PSets may be omitted
9  ##
10  setup = cms.PSet(
11  ## sub-directory to write the monitor histograms to
12  ## [mandatory] : should not be changed w/o explicit
13  ## communication to TopCom!
14  directory = cms.string("HLT/TopHLTOffline/SingleTop/SingleMuon/"),
15  ## [mandatory]
16  sources = cms.PSet(
17  muons = cms.InputTag("muons"),
18  elecs = cms.InputTag("gedGsfElectrons"),
19  jets = cms.InputTag("ak4PFJetsCHS"),
20  mets = cms.VInputTag("met", "tcMet", "pfMet"),
21  pvs = cms.InputTag("offlinePrimaryVertices")
22 
23  ),
24  ## [optional] : when omitted all monitoring plots for primary vertices
25  ## will be filled w/o extras
26  pvExtras = cms.PSet(
27  ## when omitted electron plots will be filled w/o additional pre-
28  ## selection of the primary vertex candidates
29  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
30  ),
31  ## [optional] : when omitted all monitoring plots for muons
32  ## will be filled w/o extras
33  muonExtras = cms.PSet(
34  ## when omitted muon plots will be filled w/o additional pre-
35  ## selection of the muon candidates
36  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1"),
37  ## when omitted isolated muon multiplicity plot will be equi-
38  ## valent to inclusive muon multiplicity plot
39  isolation = cms.string("(pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.2"),
40  ),
41  ## [optional] : when omitted all monitoring plots for jets
42  ## will be filled w/o extras
43  jetExtras = cms.PSet(
44  ## when omitted monitor plots for pt will be filled from uncorrected
45  ## jets
46  #jetCorrector = cms.string("ak4PFCHSL2L3"),
47  ## when omitted no extra selection will be applied on jets before
48  ## filling the monitor histograms; if jetCorrector is present the
49  ## selection will be applied to corrected jets
50  select = cms.string("pt>40 & abs(eta)<5.0"),
51  ## when omitted monitor histograms for b-tagging will not be filled
52  jetBTaggers = cms.PSet(
53  trackCountingEff = cms.PSet(
54  label = cms.InputTag("pfJetProbabilityBJetTags" ),
55  workingPoint = cms.double(0.275)
56  ),
57  trackCountingPur = cms.PSet(
58  label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
59  workingPoint = cms.double(3.41)
60  ),
61  secondaryVertex = cms.PSet(
62  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
63  workingPoint = cms.double(0.890)
64  )
65  ),
66  ),
67  ## [optional] : when omitted no mass window will be applied
68  ## for the W mass before filling the event monitoring plots
69  massExtras = cms.PSet(
70  lowerEdge = cms.double( 70.),
71  upperEdge = cms.double(110.)
72  ),
73  ## [optional] : when omitted the monitoring plots for triggering
74  ## will be empty
75  triggerExtras = cms.PSet(
76  src = cms.InputTag("TriggerResults","","HLT"),
77 #Soureek updating triggerPath name accrosding to JIRA ticket: https://its.cern.ch/jira/browse/CMSHLT-666
78  paths = cms.vstring(['HLT_IsoMu18_CentralPFJet30_BTagCSV_p063_v','HLT_IsoMu18_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_v', 'HLT_IsoMu18_v','HLT_IsoMu22_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_CentralPFJet30_BTagCSV_p063_v1', '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_BTagCSV_p063_v4'])
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 #Soureek updating triggerPath name accrosding to JIRA ticket: https://its.cern.ch/jira/browse/CMSHLT-666
92  select = cms.vstring((['HLT_IsoMu18_CentralPFJet30_BTagCSV_p063_v','HLT_IsoMu18_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_v', 'HLT_IsoMu18_v','HLT_IsoMu22_TriCentralPFJet50_40_30_v', 'HLT_IsoMu22_CentralPFJet30_BTagCSV_p063_v1', '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_BTagCSV_p063_v4']))
93  ),
94  ## [optional] : when omitted no preselection is applied
95  vertex = cms.PSet(
96  src = cms.InputTag("offlinePrimaryVertices"),
97  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
98  )
99  ),
100  ## ------------------------------------------------------
101  ## SELECTION
102  ##
103  ## monitor histrograms are filled after each selection
104  ## step, the selection is applied in the order defined
105  ## by this vector
106  ## [mandatory] : may be empty or contain an arbitrary
107  ## number of PSets
108  selection = cms.VPSet(
109  cms.PSet(
110  label = cms.string("Hlt:step0"),
111  src = cms.InputTag(""),
112  select = cms.string(""),
113  min = cms.int32(0),
114  max = cms.int32(0),
115  ),
116  cms.PSet(
117  label = cms.string("muons:step1"),
118  src = cms.InputTag("muons"),
119  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"),
120  min = cms.int32(1),
121  max = cms.int32(1),
122  ),
123  #cms.PSet(
124  # label = cms.string("jets/pf:step2"),
125  # src = cms.InputTag("ak4PFJetsCHS"),
126  # jetCorrector = cms.string("ak4PFCHSL2L3"),
127  # select = cms.string("pt>40 & abs(eta)<5.0"),
128  # min = cms.int32(1),
129  #),
130  cms.PSet(
131  label = cms.string("jets/pf:step2"),
132  src = cms.InputTag("ak4PFJetsCHS"),
133  #jetCorrector = cms.string("ak4PFCHSL2L3"),
134  select = cms.string("pt>40 & abs(eta)<5.0"),
135  min = cms.int32(2),
136  ),
137  )
138 )
139 
140 SingleTopSingleElectronHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
141 
142  ## ------------------------------------------------------
143  ## SETUP
144  ##
145  ## configuration of the MonitoringEnsemble(s)
146  ## [mandatory] : optional PSets may be omitted
147  ##
148  setup = cms.PSet(
149  ## sub-directory to write the monitor histograms to
150  ## [mandatory] : should not be changed w/o explicit
151  ## communication to TopCom!
152  directory = cms.string("HLT/TopHLTOffline/SingleTop/SingleElectron/"),
153  ## [mandatory]
154  sources = cms.PSet(
155  muons = cms.InputTag("muons"),
156  elecs = cms.InputTag("gedGsfElectrons"),
157  jets = cms.InputTag("ak4PFJetsCHS"),
158  mets = cms.VInputTag("met", "tcMet", "pfMet"),
159  pvs = cms.InputTag("offlinePrimaryVertices")
160 
161  ),
162  ## [optional] : when omitted all monitoring plots for primary vertices
163  ## will be filled w/o extras
164  pvExtras = cms.PSet(
165  ## when omitted electron plots will be filled w/o additional pre-
166  ## selection of the primary vertex candidates
167  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
168  ),
169  ## [optional] : when omitted all monitoring plots for electrons
170  ## will be filled w/o extras
171  elecExtras = cms.PSet(
172  ## when omitted electron plots will be filled w/o cut on electronId
173  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
174  ## when omitted electron plots will be filled w/o additional pre-
175  ## selection of the electron candidates
176  select = cms.string("pt>30 & abs(eta)<2.5"),
177  ## when omitted isolated electron multiplicity plot will be equi-
178  ## valent to inclusive electron multiplicity plot
179  isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
180  ),
181  ## [optional] : when omitted all monitoring plots for jets
182  ## will be filled w/o extras
183  jetExtras = cms.PSet(
184  ## when omitted monitor plots for pt will be filled from uncorrected
185  ## jets
186  #jetCorrector = cms.string("ak4PFCHSL2L3"),
187  ## when omitted no extra selection will be applied on jets before
188  ## filling the monitor histograms; if jetCorrector is present the
189  ## selection will be applied to corrected jets
190  select = cms.string("pt>40 & abs(eta)<5.0"),
191  ## when omitted monitor histograms for b-tagging will not be filled
192  jetBTaggers = cms.PSet(
193  trackCountingEff = cms.PSet(
194  label = cms.InputTag("pfJetProbabilityBJetTags" ),
195  workingPoint = cms.double(0.275)
196  ),
197  trackCountingPur = cms.PSet(
198  label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
199  workingPoint = cms.double(3.41)
200  ),
201  secondaryVertex = cms.PSet(
202  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
203  workingPoint = cms.double(0.890)
204  )
205  ),
206  ),
207  ## [optional] : when omitted no mass window will be applied
208  ## for the W mass before filling the event monitoring plots
209  massExtras = cms.PSet(
210  lowerEdge = cms.double( 70.),
211  upperEdge = cms.double(110.)
212  ),
213  ## [optional] : when omitted the monitoring plots for triggering
214  ## will be empty
215  triggerExtras = cms.PSet(
216  src = cms.InputTag("TriggerResults","","HLT"),
217 #Soureek updating triggerPath name accrosding to JIRA ticket: https://its.cern.ch/jira/browse/CMSHLT-666
218  paths = cms.vstring(['HLT_Ele23_WPLoose_Gsf_TriCentralPFJet50_40_30_v','HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV_p063_v','HLT_Ele27_WPLoose_Gsf_WHbbBoost_v', 'HLT_Ele27_WPLoose_Gsf_v', 'HLT_Ele27_WPLoose_Gsf_CentralPFJet30_BTagCSV_p063_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_BTagCSV_p063_v'])
219  )
220  ),
221  ## ------------------------------------------------------
222  ## PRESELECTION
223  ##
224  ## setup of the event preselection, which will not
225  ## be monitored
226  ## [mandatory] : but may be empty
227  ##
228  preselection = cms.PSet(
229  trigger = cms.PSet(
230  src = cms.InputTag("TriggerResults","","HLT"),
231 #Soureek updating triggerPath name accrosding to JIRA ticket: https://its.cern.ch/jira/browse/CMSHLT-666
232  select = cms.vstring(['HLT_Ele23_WPLoose_Gsf_TriCentralPFJet50_40_30_v','HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV_p063_v','HLT_Ele27_WPLoose_Gsf_WHbbBoost_v', 'HLT_Ele27_WPLoose_Gsf_v', 'HLT_Ele27_WPLoose_Gsf_CentralPFJet30_BTagCSV_p063_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_BTagCSV_p063_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 )