CMS 3D CMS Logo

HighMETSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 ## select events with at least one good PV
6 
7 ## apply HBHE Noise filter
8 ## import CommonTools.RecoAlgos.HBHENoiseFilter_cfi
9 ## HBHENoiseFilter = CommonTools.RecoAlgos.HBHENoiseFilter_cfi.HBHENoiseFilter.clone()
10 
11 
12 ## select events with high pfMET
13 pfMETSelectorHighMETSkim = cms.EDFilter(
14  "CandViewSelector",
15  src = cms.InputTag("pfMet"),
16  cut = cms.string( "pt()>200" )
17  )
18 
19 pfMETCounterHighMETSkim = cms.EDFilter(
20  "CandViewCountFilter",
21  src = cms.InputTag("pfMETSelectorHighMETSkim"),
22  minNumber = cms.uint32(1),
23  )
24 
25 pfMETSelSeq = cms.Sequence(
26  primaryVertexFilter*
27  ##HBHENoiseFilter*
28  pfMETSelectorHighMETSkim*
29  pfMETCounterHighMETSkim
30  )
31 
32 
33 
34 ## select events with high caloMET
35 caloMETSelectorHighMETSkim = cms.EDFilter(
36  "CandViewSelector",
37  src = cms.InputTag("caloMetM"),
38  cut = cms.string( "pt()>200" )
39  )
40 
41 caloMETCounterHighMETSkim = cms.EDFilter(
42  "CandViewCountFilter",
43  src = cms.InputTag("caloMETSelectorHighMETSkim"),
44  minNumber = cms.uint32(1),
45  )
46 
47 caloMETSelSeq = cms.Sequence(
48  primaryVertexFilter*
49  ##HBHENoiseFilter*
50  caloMETSelectorHighMETSkim*
51  caloMETCounterHighMETSkim
52  )
53 
54 
55 ## select events with high MET dependent on PF and Calo MET Conditions
56 CondMETSelectorHighMETSkim = cms.EDProducer(
57  "CandViewShallowCloneCombiner",
58  decay = cms.string("pfMet caloMetM"),
59  cut = cms.string(" (daughter(0).pt > 200) || (daughter(0).pt/daughter(1).pt > 2 && daughter(1).pt > 150 ) || (daughter(1).pt/daughter(0).pt > 2 && daughter(0).pt > 150 ) " )
60  )
61 
62 CondMETCounterHighMETSkim = cms.EDFilter(
63  "CandViewCountFilter",
64  src = cms.InputTag("CondMETSelectorHighMETSkim"),
65  minNumber = cms.uint32(1),
66  )
67 
68 CondMETSelSeq = cms.Sequence(
69  primaryVertexFilter*
70  ##HBHENoiseFilter*
71  CondMETSelectorHighMETSkim*
72  CondMETCounterHighMETSkim
73  )
74 
75 
76 
77 ## select events with PAT METs in MINIAODSIM - remember to keep the right branches in the cmsDriver
78 miniMETSelectorHighMETSkim = cms.EDFilter(
79  "CandViewSelector",
80  src = cms.InputTag("slimmedMETs"),
81  cut = cms.string( "pt()>200" )
82  )
83 
84 miniMETCounterHighMETSkim = cms.EDFilter(
85  "CandViewCountFilter",
86  src = cms.InputTag("miniMETSelectorHighMETSkim"),
87  minNumber = cms.uint32(1),
88  )
89 
90 miniMETSelSeq = cms.Sequence(
91  ##HBHENoiseFilter*
92  miniMETSelectorHighMETSkim*
93  miniMETCounterHighMETSkim
94  )
95 
select events with at least one good PV