CMS 3D CMS Logo

tauIsolation_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 import copy
00003 
00004 # compute IsoDeposits from all PFCandidates
00005 tauIsoDepositPFCandidates = cms.EDProducer("CandIsoDepositProducer",
00006     src = cms.InputTag("pfRecoTauProducer"),
00007     MultipleDepositsFlag = cms.bool(False),
00008     trackType = cms.string('candidate'),
00009     ExtractorPSet = cms.PSet(
00010         # PFTau specific Extractor, which allows to exclude particles within tau signal cone from IsoDeposit computation
00011         ComponentName = cms.string('PFTauExtractor'),
00012         
00013         # collection of PFCandidates to be used for IsoDeposit computation
00014         candidateSource = cms.InputTag("particleFlow"),
00015 
00016         # size of outer cone for which IsoDeposits are computed
00017         DR_Max = cms.double(1.0),
00018         # size of inner cone excluded from IsoDeposit computation
00019         DR_Veto = cms.double(0.),
00020 
00021         # distance in zVertex between tau production vertex and PFCandidates included in IsoDeposit computation
00022         Diff_z = cms.double(0.2),
00023         # distance in x-y between tau production vertex and PFCandidates included in IsoDeposit computation
00024         Diff_r = cms.double(0.1),
00025 
00026         # collection of PFTaus, needed for excluding particles in tau signal cone from IsoDeposit
00027         tauSource = cms.InputTag("pfRecoTauProducer"),
00028         # maximum distance in eta-phi, needed to match PFTau to direction passed as function argument to Extractor
00029         dRmatchPFTau = cms.double(0.1),
00030         # size of cones around tau signal cone particles excluded from IsoDeposit computation
00031         dRvetoPFTauSignalConeConstituents = cms.double(0.01),
00032         
00033         DepositLabel = cms.untracked.string('')
00034     )                                             
00035 )
00036 
00037 # compute IsoDeposits from PFChargedHadrons
00038 tauIsoDepositPFChargedHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
00039 tauIsoDepositPFChargedHadrons.ExtractorPSet.candidateSource = cms.InputTag("pfAllChargedHadrons")
00040 
00041 # compute IsoDeposits from PFNeutralHadrons
00042 tauIsoDepositPFNeutralHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
00043 tauIsoDepositPFNeutralHadrons.ExtractorPSet.candidateSource = cms.InputTag("pfAllNeutralHadrons")
00044 
00045 # compute IsoDeposits from PFGammas
00046 tauIsoDepositPFGammas = copy.deepcopy(tauIsoDepositPFCandidates)
00047 tauIsoDepositPFGammas.ExtractorPSet.candidateSource = cms.InputTag("pfAllPhotons")
00048 
00049 patPFTauIsolation = cms.Sequence( tauIsoDepositPFCandidates
00050                                  * tauIsoDepositPFChargedHadrons
00051                                  * tauIsoDepositPFNeutralHadrons
00052                                  * tauIsoDepositPFGammas )
00053 
00054 

Generated on Tue Jun 9 17:41:44 2009 for CMSSW by  doxygen 1.5.4