CMS 3D CMS Logo

patAODTrackCandSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
5 
6 patAODTrackCandsUnfiltered = cms.EDProducer("ConcreteChargedCandidateProducer",
7  src = cms.InputTag("generalTracks"),
8  particleType = cms.string('mu+') # to fix mass hypothesis
9 )
10 
11 patAODTrackCands = cms.EDFilter("CandViewSelector",
12  src = cms.InputTag("patAODTrackCandsUnfiltered"),
13  cut = cms.string('pt > 10')
14 )
15 
16 
18 
19 from RecoMuon.MuonIsolationProducers.trackExtractorBlocks_cff import MIsoTrackExtractorCtfBlock
20 patAODTrackIsoDepositCtfTk = cms.EDProducer("CandIsoDepositProducer",
21  src = cms.InputTag("patAODTrackCands"),
22  trackType = cms.string('best'),
23  MultipleDepositsFlag = cms.bool(False),
24  ExtractorPSet = cms.PSet( MIsoTrackExtractorCtfBlock )
25 )
26 
27 
28 from RecoMuon.MuonIsolationProducers.caloExtractorByAssociatorBlocks_cff import MIsoCaloExtractorByAssociatorTowersBlock
29 patAODTrackIsoDepositCalByAssociatorTowers = cms.EDProducer("CandIsoDepositProducer",
30  src = cms.InputTag("patAODTrackCands"),
31  trackType = cms.string('best'),
32  MultipleDepositsFlag = cms.bool(True),
33  ExtractorPSet = cms.PSet( MIsoCaloExtractorByAssociatorTowersBlock )
34 )
35 
36 # sequence to run on AOD before PAT cleaners
37 patAODTrackCandSequence = cms.Sequence(
38  patAODTrackCandsUnfiltered *
39  patAODTrackCands *
40  patAODTrackIsoDepositCtfTk *
41  patAODTrackIsoDepositCalByAssociatorTowers
42 )
43 
muIsolation_cff
MagneticField_cff
caloExtractorByAssociatorBlocks_cff
trackExtractorBlocks_cff