test
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_IsoMu17_eta2p1_TriCentralPFNoPUJet45_35_25','HLT_IsoMu17_eta2p1_TriCentralPFNoPUJet30'])
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_IsoMu17_eta2p1_TriCentralPFNoPUJet45_35_25','HLT_IsoMu17_eta2p1_TriCentralPFNoPUJet30'])
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  paths = cms.vstring(['HLT_Ele25_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet45_35_25','HLT_Ele25_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet30'])
215  )
216  ),
217  ## ------------------------------------------------------
218  ## PRESELECTION
219  ##
220  ## setup of the event preselection, which will not
221  ## be monitored
222  ## [mandatory] : but may be empty
223  ##
224  preselection = cms.PSet(
225  trigger = cms.PSet(
226  src = cms.InputTag("TriggerResults","","HLT"),
227  select = cms.vstring(['HLT_Ele25_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet45_35_25','HLT_Ele25_CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT_TriCentralPFNoPUJet30'])
228  ),
229  ## [optional] : when omitted no preselection is applied
230  vertex = cms.PSet(
231  src = cms.InputTag("offlinePrimaryVertices"),
232  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
233  )
234  ),
235  ## ------------------------------------------------------
236  ## SELECTION
237  ##
238  ## monitor histrograms are filled after each selection
239  ## step, the selection is applied in the order defined
240  ## by this vector
241  ## [mandatory] : may be empty or contain an arbitrary
242  ## number of PSets
243  selection = cms.VPSet(
244  cms.PSet(
245  label = cms.string("Hlt:step0"),
246  src = cms.InputTag(""),
247  select = cms.string(""),
248  min = cms.int32(0),
249  max = cms.int32(0),
250  ),
251  cms.PSet(
252  label = cms.string("elecs:step1"),
253  src = cms.InputTag("gedGsfElectrons"),
254  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
255  select = cms.string("pt>30 & abs(eta)<2.5 & (dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
256  min = cms.int32(1),
257  max = cms.int32(1),
258  ),
259  #cms.PSet(
260  # label = cms.string("jets/pf:step2"),
261  # src = cms.InputTag("ak4PFJetsCHS"),
262  # jetCorrector = cms.string("ak4PFCHSL2L3"),
263  # select = cms.string("pt>40 & abs(eta)<5.0"),
264  # min = cms.int32(1),
265  #),
266  cms.PSet(
267  label = cms.string("jets/pf:step2"),
268  src = cms.InputTag("ak4PFJetsCHS"),
269  #jetCorrector = cms.string("ak4PFCHSL2L3"),
270  select = cms.string("pt>40 & abs(eta)<5.0"),
271  min = cms.int32(2),
272  ),
273  )
274 )