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.
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("jetProbabilityBJetTags" ),
55  workingPoint = cms.double(0.275)
56  ),
57  trackCountingPur = cms.PSet(
58  label = cms.InputTag("trackCountingHighPurBJetTags" ),
59  workingPoint = cms.double(3.41)
60  ),
61  secondaryVertex = cms.PSet(
62  label = cms.InputTag("combinedSecondaryVertexBJetTags"),
63  workingPoint = cms.double(0.679)
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  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'])
78  )
79  ),
80  ## ------------------------------------------------------
81  ## PRESELECTION
82  ##
83  ## setup of the event preselection, which will not
84  ## be monitored
85  ## [mandatory] : but may be empty
86  ##
87  preselection = cms.PSet(
88  trigger = cms.PSet(
89  src = cms.InputTag("TriggerResults","","HLT"),
90  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'])
91  ),
92  ## [optional] : when omitted no preselection is applied
93  vertex = cms.PSet(
94  src = cms.InputTag("offlinePrimaryVertices"),
95  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
96  )
97  ),
98  ## ------------------------------------------------------
99  ## SELECTION
100  ##
101  ## monitor histrograms are filled after each selection
102  ## step, the selection is applied in the order defined
103  ## by this vector
104  ## [mandatory] : may be empty or contain an arbitrary
105  ## number of PSets
106  selection = cms.VPSet(
107  cms.PSet(
108  label = cms.string("Hlt:step0"),
109  src = cms.InputTag(""),
110  select = cms.string(""),
111  min = cms.int32(0),
112  max = cms.int32(0),
113  ),
114  cms.PSet(
115  label = cms.string("muons:step1"),
116  src = cms.InputTag("muons"),
117  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"),
118  min = cms.int32(1),
119  max = cms.int32(1),
120  ),
121  #cms.PSet(
122  # label = cms.string("jets/pf:step2"),
123  # src = cms.InputTag("ak4PFJetsCHS"),
124  # jetCorrector = cms.string("ak4PFCHSL2L3"),
125  # select = cms.string("pt>40 & abs(eta)<5.0"),
126  # min = cms.int32(1),
127  #),
128  cms.PSet(
129  label = cms.string("jets/pf:step2"),
130  src = cms.InputTag("ak4PFJetsCHS"),
131  #jetCorrector = cms.string("ak4PFCHSL2L3"),
132  select = cms.string("pt>40 & abs(eta)<5.0"),
133  min = cms.int32(2),
134  ),
135  )
136 )
137 
138 SingleTopSingleElectronHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
139  ## ------------------------------------------------------
140  ## SETUP
141  ##
142  ## configuration of the MonitoringEnsemble(s)
143  ## [mandatory] : optional PSets may be omitted
144  ##
145  setup = cms.PSet(
146  ## sub-directory to write the monitor histograms to
147  ## [mandatory] : should not be changed w/o explicit
148  ## communication to TopCom!
149  directory = cms.string("HLT/TopHLTOffline/SingleTop/SingleElectron/"),
150  ## [mandatory]
151  sources = cms.PSet(
152  muons = cms.InputTag("muons"),
153  elecs = cms.InputTag("gedGsfElectrons"),
154  jets = cms.InputTag("ak4PFJetsCHS"),
155  mets = cms.VInputTag("met", "tcMet", "pfMet"),
156  pvs = cms.InputTag("offlinePrimaryVertices")
157 
158  ),
159  ## [optional] : when omitted all monitoring plots for primary vertices
160  ## will be filled w/o extras
161  pvExtras = cms.PSet(
162  ## when omitted electron plots will be filled w/o additional pre-
163  ## selection of the primary vertex candidates
164  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
165  ),
166  ## [optional] : when omitted all monitoring plots for electrons
167  ## will be filled w/o extras
168  elecExtras = cms.PSet(
169  ## when omitted electron plots will be filled w/o cut on electronId
170  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
171  ## when omitted electron plots will be filled w/o additional pre-
172  ## selection of the electron candidates
173  select = cms.string("pt>30 & abs(eta)<2.5"),
174  ## when omitted isolated electron multiplicity plot will be equi-
175  ## valent to inclusive electron multiplicity plot
176  isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
177  ),
178  ## [optional] : when omitted all monitoring plots for jets
179  ## will be filled w/o extras
180  jetExtras = cms.PSet(
181  ## when omitted monitor plots for pt will be filled from uncorrected
182  ## jets
183  #jetCorrector = cms.string("ak4PFCHSL2L3"),
184  ## when omitted no extra selection will be applied on jets before
185  ## filling the monitor histograms; if jetCorrector is present the
186  ## selection will be applied to corrected jets
187  select = cms.string("pt>40 & abs(eta)<5.0"),
188  ## when omitted monitor histograms for b-tagging will not be filled
189  jetBTaggers = cms.PSet(
190  trackCountingEff = cms.PSet(
191  label = cms.InputTag("jetProbabilityBJetTags" ),
192  workingPoint = cms.double(0.275)
193  ),
194  trackCountingPur = cms.PSet(
195  label = cms.InputTag("trackCountingHighPurBJetTags" ),
196  workingPoint = cms.double(3.41)
197  ),
198  secondaryVertex = cms.PSet(
199  label = cms.InputTag("combinedSecondaryVertexBJetTags"),
200  workingPoint = cms.double(0.679)
201  )
202  ),
203  ),
204  ## [optional] : when omitted no mass window will be applied
205  ## for the W mass before filling the event monitoring plots
206  massExtras = cms.PSet(
207  lowerEdge = cms.double( 70.),
208  upperEdge = cms.double(110.)
209  ),
210  ## [optional] : when omitted the monitoring plots for triggering
211  ## will be empty
212  triggerExtras = cms.PSet(
213  src = cms.InputTag("TriggerResults","","HLT"),
214 
215 # Soureek changing path name HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCVS07_v to HLT_Ele23_WPLoose_Gsf_CentralPFJet30_BTagCSV07_v
216 
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 )