CMS 3D CMS Logo

HighMETSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 
6 
7 
10 
11 
12 
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 
28  pfMETSelectorHighMETSkim*
29  pfMETCounterHighMETSkim
30  )
31 
32 
33 
34 
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 
50  caloMETSelectorHighMETSkim*
51  caloMETCounterHighMETSkim
52  )
53 
54 
55 
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 
71  CondMETSelectorHighMETSkim*
72  CondMETCounterHighMETSkim
73  )
74 
75 
76 
77 
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 
92  miniMETSelectorHighMETSkim*
93  miniMETCounterHighMETSkim
94  )
95 
select events with at least one good PV