Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 ## select events with at least one good PV
0005 from RecoMET.METFilters.primaryVertexFilter_cfi import *
0006 
0007 ## apply HBHE Noise filter
0008 ## import CommonTools.RecoAlgos.HBHENoiseFilter_cfi
0009 ## HBHENoiseFilter = CommonTools.RecoAlgos.HBHENoiseFilter_cfi.HBHENoiseFilter.clone()
0010 
0011 
0012 ## select events with high pfMET
0013 pfMETSelectorHighMETSkim = cms.EDFilter(
0014     "CandViewSelector",
0015     src = cms.InputTag("pfMet"),
0016     cut = cms.string( "pt()>200" )
0017     )
0018 
0019 pfMETCounterHighMETSkim = cms.EDFilter(
0020     "CandViewCountFilter",
0021     src = cms.InputTag("pfMETSelectorHighMETSkim"),
0022     minNumber = cms.uint32(1),
0023     )
0024 
0025 pfMETSelSeq = cms.Sequence(
0026                primaryVertexFilter*
0027                            ##HBHENoiseFilter*
0028                            pfMETSelectorHighMETSkim*
0029                            pfMETCounterHighMETSkim
0030                            )
0031 
0032 
0033 
0034 ## select events with high caloMET
0035 caloMETSelectorHighMETSkim = cms.EDFilter(
0036     "CandViewSelector",
0037     src = cms.InputTag("caloMetM"),
0038     cut = cms.string( "pt()>200" )
0039     )
0040 
0041 caloMETCounterHighMETSkim = cms.EDFilter(
0042     "CandViewCountFilter",
0043     src = cms.InputTag("caloMETSelectorHighMETSkim"),
0044     minNumber = cms.uint32(1),
0045     )
0046 
0047 caloMETSelSeq = cms.Sequence(
0048                primaryVertexFilter*
0049                            ##HBHENoiseFilter*
0050                            caloMETSelectorHighMETSkim*
0051                            caloMETCounterHighMETSkim
0052                            )
0053 
0054 
0055 ## select events with high MET dependent on PF and Calo MET Conditions
0056 CondMETSelectorHighMETSkim = cms.EDProducer(
0057    "CandViewShallowCloneCombiner",
0058    decay = cms.string("pfMet caloMetM"),
0059    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 )  " )
0060    )
0061 
0062 CondMETCounterHighMETSkim = cms.EDFilter(
0063     "CandViewCountFilter",
0064     src = cms.InputTag("CondMETSelectorHighMETSkim"),
0065     minNumber = cms.uint32(1),
0066     )
0067 
0068 CondMETSelSeq = cms.Sequence(
0069                            primaryVertexFilter*
0070                            ##HBHENoiseFilter*
0071                            CondMETSelectorHighMETSkim*
0072                            CondMETCounterHighMETSkim
0073                            )
0074 
0075 
0076 
0077 ## select events with PAT METs in MINIAODSIM - remember to keep the right branches in the cmsDriver
0078 miniMETSelectorHighMETSkim = cms.EDFilter(
0079     "CandViewSelector",
0080     src = cms.InputTag("slimmedMETs"),
0081     cut = cms.string( "pt()>200" )
0082     )
0083 
0084 miniMETCounterHighMETSkim = cms.EDFilter(
0085     "CandViewCountFilter",
0086     src = cms.InputTag("miniMETSelectorHighMETSkim"),
0087     minNumber = cms.uint32(1),
0088     )
0089 
0090 miniMETSelSeq = cms.Sequence(
0091                            ##HBHENoiseFilter*
0092                            miniMETSelectorHighMETSkim*
0093                            miniMETCounterHighMETSkim
0094                            )
0095