CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/ElectroWeakAnalysis/Skimming/python/patAODTrackCandSequence_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #from SimGeneral.HepPDTESSource.pythiapdt_cfi           import *
00004 from Configuration.StandardSequences.MagneticField_cff import *
00005 
00006 patAODTrackCandsUnfiltered = cms.EDProducer("ConcreteChargedCandidateProducer",
00007     src          = cms.InputTag("generalTracks"),
00008     particleType = cms.string('mu+')   # to fix mass hypothesis
00009 )
00010 
00011 patAODTrackCands = cms.EDFilter("CandViewSelector",
00012     src = cms.InputTag("patAODTrackCandsUnfiltered"),
00013     cut = cms.string('pt > 10')
00014 )
00015 
00016 
00017 from RecoMuon.MuonIsolationProducers.muIsolation_cff import *
00018 ## Configure tracker isolation
00019 from RecoMuon.MuonIsolationProducers.trackExtractorBlocks_cff import MIsoTrackExtractorCtfBlock
00020 patAODTrackIsoDepositCtfTk = cms.EDProducer("CandIsoDepositProducer",
00021     src                  = cms.InputTag("patAODTrackCands"),
00022     trackType            = cms.string('best'),
00023     MultipleDepositsFlag = cms.bool(False),
00024     ExtractorPSet        = cms.PSet( MIsoTrackExtractorCtfBlock )
00025 )
00026 
00027 ## Configure calorimetric isolation
00028 from RecoMuon.MuonIsolationProducers.caloExtractorByAssociatorBlocks_cff import MIsoCaloExtractorByAssociatorTowersBlock
00029 patAODTrackIsoDepositCalByAssociatorTowers = cms.EDProducer("CandIsoDepositProducer",
00030     src                  = cms.InputTag("patAODTrackCands"),
00031     trackType            = cms.string('best'),
00032     MultipleDepositsFlag = cms.bool(True),
00033     ExtractorPSet        = cms.PSet( MIsoCaloExtractorByAssociatorTowersBlock )
00034 )
00035 
00036 # sequence to run on AOD before PAT cleaners
00037 patAODTrackCandSequence = cms.Sequence(
00038         patAODTrackCandsUnfiltered *
00039         patAODTrackCands *
00040         patAODTrackIsoDepositCtfTk *
00041         patAODTrackIsoDepositCalByAssociatorTowers
00042 )
00043