CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
tauIsolation_cff.py
Go to the documentation of this file.
2 import copy
3 
4 # compute IsoDeposits from all PFCandidates
5 tauIsoDepositPFCandidates = cms.EDProducer("CandIsoDepositProducer",
6  src = cms.InputTag("hpsPFTauProducer"),
7  MultipleDepositsFlag = cms.bool(False),
8  trackType = cms.string('candidate'),
9  ExtractorPSet = cms.PSet(
10  # PFTau specific Extractor, which allows to exclude particles within tau signal cone from IsoDeposit computation
11  ComponentName = cms.string('PFTauExtractor'),
12 
13  # collection of PFCandidates to be used for IsoDeposit computation
14  candidateSource = cms.InputTag("particleFlow"),
15 
16  # size of outer cone for which IsoDeposits are computed
17  DR_Max = cms.double(1.0),
18  # size of inner cone excluded from IsoDeposit computation
19  DR_Veto = cms.double(0.),
20 
21  # max. distance in z-direction between tau production vertex and PFCandidates included in IsoDeposit computation
22  # (cut per default disabled, since well-defined for PFCandidates associated to tracks (PFChargedHadrons) only)
23  Diff_z = cms.double(1.e+4),
24  # max. distance in x-y between tau production vertex and PFCandidates included in IsoDeposit computation
25  # (cut per default disabled, since well-defined for PFCandidates associated to tracks (PFChargedHadrons) only)
26  Diff_r = cms.double(1.e+4),
27 
28  # collection of PFTaus, needed for excluding particles in tau signal cone from IsoDeposit
29  tauSource = cms.InputTag("hpsPFTauProducer"),
30  # maximum distance in eta-phi, needed to match PFTau to direction passed as function argument to Extractor
31  dRmatchPFTau = cms.double(0.1),
32  # size of cones around tau signal cone particles excluded from IsoDeposit computation
33  dRvetoPFTauSignalConeConstituents = cms.double(0.01),
34 
35  DepositLabel = cms.untracked.string('')
36  )
37 )
38 
39 # compute IsoDeposits from PFChargedHadrons
40 # (enable cut on z and x-y distance between tau and PFCandidate production vertex)
41 tauIsoDepositPFChargedHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
42 tauIsoDepositPFChargedHadrons.ExtractorPSet.candidateSource = cms.InputTag("pfAllChargedHadrons")
43 tauIsoDepositPFChargedHadrons.ExtractorPSet.Diff_z = cms.double(0.2)
44 tauIsoDepositPFChargedHadrons.ExtractorPSet.Diff_r = cms.double(0.1)
45 
46 # compute IsoDeposits from PFNeutralHadrons
47 tauIsoDepositPFNeutralHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
48 tauIsoDepositPFNeutralHadrons.ExtractorPSet.candidateSource = cms.InputTag("pfAllNeutralHadrons")
49 
50 # compute IsoDeposits from PFGammas
51 tauIsoDepositPFGammas = copy.deepcopy(tauIsoDepositPFCandidates)
52 tauIsoDepositPFGammas.ExtractorPSet.candidateSource = cms.InputTag("pfAllPhotons")
53 
54 patPFTauIsolation = cms.Sequence( tauIsoDepositPFCandidates
55  * tauIsoDepositPFChargedHadrons
56  * tauIsoDepositPFNeutralHadrons
57  * tauIsoDepositPFGammas )