CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/DPGAnalysis/Skims/python/HighMETSkim_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 
00004 ## select events with at least one good PV
00005 pvFilter = cms.EDFilter(
00006     "VertexSelector",
00007     src = cms.InputTag("offlinePrimaryVertices"),
00008     cut = cms.string("!isFake && ndof > 4 && abs(z) <= 24 && position.Rho <= 2"),
00009     filter = cms.bool(True),   # otherwise it won't filter the events, just produce an empty vertex collection.
00010     )
00011 
00012 
00013 ## apply HBHE Noise filter
00014 import CommonTools.RecoAlgos.HBHENoiseFilter_cfi
00015 HBHENoiseFilter = CommonTools.RecoAlgos.HBHENoiseFilter_cfi.HBHENoiseFilter.clone()
00016 
00017 
00018 ## select events with high pfMET
00019 pfMETSelector = cms.EDFilter(
00020     "CandViewSelector",
00021     src = cms.InputTag("pfMet"),
00022     cut = cms.string( "pt()>150" )
00023     )
00024 
00025 pfMETCounter = cms.EDFilter(
00026     "CandViewCountFilter",
00027     src = cms.InputTag("pfMETSelector"),
00028     minNumber = cms.uint32(1),
00029     )
00030 
00031 pfMETSelSeq = cms.Sequence(pvFilter*
00032                            HBHENoiseFilter*
00033                            pfMETSelector*
00034                            pfMETCounter
00035                            )
00036 
00037 
00038 
00039 ## select events with high tcMET
00040 tcMETSelector = cms.EDFilter(
00041     "CandViewSelector",
00042     src = cms.InputTag("tcMet"),
00043     cut = cms.string( "pt()>150" )
00044     )
00045 
00046 tcMETCounter = cms.EDFilter(
00047     "CandViewCountFilter",
00048     src = cms.InputTag("tcMETSelector"),
00049     minNumber = cms.uint32(1),
00050     )
00051 
00052 tcMETSelSeq = cms.Sequence(pvFilter*
00053                            HBHENoiseFilter*
00054                            tcMETSelector*
00055                            tcMETCounter
00056                            )
00057 
00058