PageRenderTime 29ms CodeModel.GetById 13ms app.highlight 13ms RepoModel.GetById 1ms app.codeStats 0ms

/ElectroWeakAnalysis/Skimming/python/patAODTrackCandSequence_cff.py

https://github.com/aivanov-cern/cmssw
Python | 43 lines | 31 code | 8 blank | 4 comment | 0 complexity | d1240a92a48241c7e4271d030c11c30b MD5 | raw file
 1import FWCore.ParameterSet.Config as cms
 2
 3#from SimGeneral.HepPDTESSource.pythiapdt_cfi           import *
 4from Configuration.StandardSequences.MagneticField_cff import *
 5
 6patAODTrackCandsUnfiltered = cms.EDProducer("ConcreteChargedCandidateProducer",
 7    src          = cms.InputTag("generalTracks"),
 8    particleType = cms.string('mu+')   # to fix mass hypothesis
 9)
10
11patAODTrackCands = cms.EDFilter("CandViewSelector",
12    src = cms.InputTag("patAODTrackCandsUnfiltered"),
13    cut = cms.string('pt > 10')
14)
15
16
17from RecoMuon.MuonIsolationProducers.muIsolation_cff import *
18## Configure tracker isolation
19from RecoMuon.MuonIsolationProducers.trackExtractorBlocks_cff import MIsoTrackExtractorCtfBlock
20patAODTrackIsoDepositCtfTk = 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## Configure calorimetric isolation
28from RecoMuon.MuonIsolationProducers.caloExtractorByAssociatorBlocks_cff import MIsoCaloExtractorByAssociatorTowersBlock
29patAODTrackIsoDepositCalByAssociatorTowers = 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
37patAODTrackCandSequence = cms.Sequence(
38        patAODTrackCandsUnfiltered *
39        patAODTrackCands *
40        patAODTrackIsoDepositCtfTk *
41        patAODTrackIsoDepositCalByAssociatorTowers
42)
43