CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/PhysicsTools/PatExamples/python/topObjectSelection_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ## ---
00004 ##
00005 ## this cff file keep all object selections used for the TopPAG
00006 ## reference selection for ICHEP 2010
00007 ##
00008 ## ---
00009 from PhysicsTools.PatAlgos.cleaningLayer1.muonCleaner_cfi import *
00010 looseMuons = cleanPatMuons.clone(
00011     preselection =
00012     'isGlobalMuon & isTrackerMuon &'
00013     'pt > 20. &'
00014     'abs(eta) < 2.1 &'
00015     '(trackIso+caloIso)/pt < 0.1 &'
00016     'innerTrack.numberOfValidHits > 10 &'
00017     'globalTrack.normalizedChi2 < 10.0 &'
00018     'globalTrack.hitPattern.numberOfValidMuonHits > 0 &'
00019     'abs(dB) < 0.02',
00020     checkOverlaps = cms.PSet(
00021       jets = cms.PSet(
00022         src                 = cms.InputTag("goodJets"),
00023         algorithm           = cms.string("byDeltaR"),
00024         preselection        = cms.string(""),
00025         deltaR              = cms.double(0.3),
00026         checkRecoComponents = cms.bool(False),
00027         pairCut             = cms.string(""),
00028         requireNoOverlaps   = cms.bool(True),
00029       )
00030     )
00031 )
00032 
00033 tightMuons = cleanPatMuons.clone(
00034     src = 'looseMuons',
00035     preselection = '(trackIso+caloIso)/pt < 0.05'
00036 )
00037 
00038 from PhysicsTools.PatAlgos.selectionLayer1.muonSelector_cfi import *
00039 vetoMuons = selectedPatMuons.clone(
00040     src = 'selectedPatMuons',
00041     cut =
00042     'isGlobalMuon &'
00043     'pt > 10. &'
00044     'abs(eta) < 2.5 &'
00045     '(trackIso+caloIso)/pt < 0.2'
00046 )
00047 
00048 from PhysicsTools.PatAlgos.selectionLayer1.electronSelector_cfi import *
00049 vetoElecs = selectedPatElectrons.clone(
00050     src = 'selectedPatElectrons',
00051     cut =
00052     'et > 15. &'
00053     'abs(eta) < 2.5 &'
00054     '(dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/et <  0.2'
00055  )
00056 
00057 from PhysicsTools.PatAlgos.selectionLayer1.jetSelector_cfi import *
00058 goodJets = selectedPatJets.clone(
00059     src = 'selectedPatJets',
00060     cut =
00061     'pt > 30. &'
00062     'abs(eta) < 2.4 &'
00063     'emEnergyFraction > 0.01 &'
00064     'jetID.n90Hits > 1 &'
00065     'jetID.fHPD < 0.98'
00066 )
00067 
00068 topObjectSelection = cms.Sequence(
00069     goodJets   *
00070     vetoElecs  *
00071     vetoMuons  *
00072     looseMuons *
00073     tightMuons
00074  )