CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/PhysicsTools/PatAlgos/python/recoLayer0/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("hpsPFTauProducer"),
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         # max. distance in z-direction between tau production vertex and PFCandidates included in IsoDeposit computation
00022         # (cut per default disabled, since well-defined for PFCandidates associated to tracks (PFChargedHadrons) only)
00023         Diff_z = cms.double(1.e+4),
00024         # max. distance in x-y between tau production vertex and PFCandidates included in IsoDeposit computation
00025         # (cut per default disabled, since well-defined for PFCandidates associated to tracks (PFChargedHadrons) only)
00026         Diff_r = cms.double(1.e+4),
00027 
00028         # collection of PFTaus, needed for excluding particles in tau signal cone from IsoDeposit
00029         tauSource = cms.InputTag("hpsPFTauProducer"),
00030         # maximum distance in eta-phi, needed to match PFTau to direction passed as function argument to Extractor
00031         dRmatchPFTau = cms.double(0.1),
00032         # size of cones around tau signal cone particles excluded from IsoDeposit computation
00033         dRvetoPFTauSignalConeConstituents = cms.double(0.01),
00034 
00035         DepositLabel = cms.untracked.string('')
00036     )
00037 )
00038 
00039 # compute IsoDeposits from PFChargedHadrons
00040 # (enable cut on z and x-y distance between tau and PFCandidate production vertex)
00041 tauIsoDepositPFChargedHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
00042 tauIsoDepositPFChargedHadrons.ExtractorPSet.candidateSource = cms.InputTag("pfAllChargedHadrons")
00043 tauIsoDepositPFChargedHadrons.ExtractorPSet.Diff_z = cms.double(0.2)
00044 tauIsoDepositPFChargedHadrons.ExtractorPSet.Diff_r = cms.double(0.1)
00045 
00046 # compute IsoDeposits from PFNeutralHadrons
00047 tauIsoDepositPFNeutralHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
00048 tauIsoDepositPFNeutralHadrons.ExtractorPSet.candidateSource = cms.InputTag("pfAllNeutralHadrons")
00049 
00050 # compute IsoDeposits from PFGammas
00051 tauIsoDepositPFGammas = copy.deepcopy(tauIsoDepositPFCandidates)
00052 tauIsoDepositPFGammas.ExtractorPSet.candidateSource = cms.InputTag("pfAllPhotons")
00053 
00054 patPFTauIsolation = cms.Sequence( tauIsoDepositPFCandidates
00055                                  * tauIsoDepositPFChargedHadrons
00056                                  * tauIsoDepositPFNeutralHadrons
00057                                  * tauIsoDepositPFGammas )