CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HighMETSkim_cff.py
Go to the documentation of this file.
2 
3 
4 ## select events with at least one good PV
5 pvFilter = cms.EDFilter(
6  "VertexSelector",
7  src = cms.InputTag("offlinePrimaryVertices"),
8  cut = cms.string("!isFake && ndof > 4 && abs(z) <= 24 && position.Rho <= 2"),
9  filter = cms.bool(True), # otherwise it won't filter the events, just produce an empty vertex collection.
10  )
11 
12 
13 ## apply HBHE Noise filter
15 HBHENoiseFilter = CommonTools.RecoAlgos.HBHENoiseFilter_cfi.HBHENoiseFilter.clone()
16 
17 
18 ## select events with high pfMET
19 pfMETSelector = cms.EDFilter(
20  "CandViewSelector",
21  src = cms.InputTag("pfMet"),
22  cut = cms.string( "pt()>150" )
23  )
24 
25 pfMETCounter = cms.EDFilter(
26  "CandViewCountFilter",
27  src = cms.InputTag("pfMETSelector"),
28  minNumber = cms.uint32(1),
29  )
30 
31 pfMETSelSeq = cms.Sequence(pvFilter*
32  HBHENoiseFilter*
33  pfMETSelector*
34  pfMETCounter
35  )
36 
37 
38 
39 ## select events with high tcMET
40 #tcMETSelector = cms.EDFilter(
41 # "CandViewSelector",
42 # src = cms.InputTag("tcMet"),
43 # cut = cms.string( "pt()>150" )
44 # )
45 
46 #tcMETCounter = cms.EDFilter(
47 # "CandViewCountFilter",
48 # src = cms.InputTag("tcMETSelector"),
49 # minNumber = cms.uint32(1),
50 # )
51 
52 
53 
54 
55 
The iso-based HBHE noise filter ___________________________________________||.