CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecoTauDiscriminationByIsolation_cfi.py
Go to the documentation of this file.
2 
3 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
4 from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrack
5 
6 pfRecoTauDiscriminationByIsolation = cms.EDProducer("PFRecoTauDiscriminationByIsolation",
7  PFTauProducer = cms.InputTag('pfRecoTauProducer'), #tau collection to discriminate
8 
9  # Require leading pion ensures that:
10  # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
11  # 2) a track in the signal cone has pT > 5 GeV
12  Prediscriminants = requireLeadTrack,
13 
14  # Select which collections to use for isolation. You can select one or both
15  ApplyDiscriminationByECALIsolation = cms.bool(True), # use PFGammas when isolating
16  ApplyDiscriminationByTrackerIsolation = cms.bool(True), # use PFChargedHadr when isolating
17  ApplyDiscriminationByWeightedECALIsolation = cms.bool(False), #do not use pileup weighting of neutral deposits by default
18 
19  applyOccupancyCut = cms.bool(True), # apply a cut on number of isolation objects
20  maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
21 
22  applySumPtCut = cms.bool(False), # apply a cut on the sum Pt of the isolation objects
23  maximumSumPtCut = cms.double(6.0),
24 
25  applyRelativeSumPtCut = cms.bool(False), # apply a cut on IsoPt/TotalPt
26  relativeSumPtCut = cms.double(0.0),
27  relativeSumPtOffset = cms.double(0.0),
28 
29  applyPhotonPtSumOutsideSignalConeCut = cms.bool(False),
30  maxAbsPhotonSumPt_outsideSignalCone = cms.double(1.e+9),
31  maxRelPhotonSumPt_outsideSignalCone = cms.double(0.10),
32 
33  qualityCuts = PFTauQualityCuts, # set the standard quality cuts
34 
35  # Delta-Beta corrections to remove Pileup
36  applyDeltaBetaCorrection = cms.bool(False),
37  particleFlowSrc = cms.InputTag("particleFlow"),
38  vertexSrc = PFTauQualityCuts.primaryVertexSrc,
39  # This must correspond to the cone size of the algorithm which built the
40  # tau. (or if customOuterCone option is used, the custom cone size)
41  isoConeSizeForDeltaBeta = cms.double(0.5),
42  # The delta beta factor maps the expected neutral contribution in the
43  # isolation cone from the observed PU charged contribution. This factor can
44  # optionally be a function (use 'x') of the number of vertices in the event
45  # (taken from the multiplicity of vertexSrc collection)
46  deltaBetaFactor = cms.string("0.38"),
47  # By default, the pt threshold for tracks used to compute the DeltaBeta
48  # correction is taken as the gamma Et threshold from the isolation quality
49  # cuts.
50  # Uncommenting the parameter below allows this threshold to be overridden.
51  #deltaBetaPUTrackPtCutOverride = cms.double(1.5),
52 
53  # Tau footprint correction
54  applyFootprintCorrection = cms.bool(False),
55  footprintCorrections = cms.VPSet(
56  cms.PSet(
57  selection = cms.string("decayMode() = 0"),
58  offset = cms.string("0.0")
59  ),
60  cms.PSet(
61  selection = cms.string("decayMode() = 1 || decayMode() = 2"),
62  offset = cms.string("0.0")
63  ),
64  cms.PSet(
65  selection = cms.string("decayMode() = 5"),
66  offset = cms.string("2.7")
67  ),
68  cms.PSet(
69  selection = cms.string("decayMode() = 6"),
70  offset = cms.string("0.0")
71  ),
72  cms.PSet(
73  selection = cms.string("decayMode() = 10"),
74  offset = cms.string("max(2.0, 0.22*pt() - 2.0)")
75  )
76  ),
77 
78  # Rho corrections
79  applyRhoCorrection = cms.bool(False),
80  rhoProducer = cms.InputTag("fixedGridRhoFastjetAll"),
81  rhoConeSize = cms.double(0.5),
82  rhoUEOffsetCorrection = cms.double(1.0),
83  UseAllPFCandsForWeights = cms.bool(False),
84  verbosity = cms.int32(0)
85 
86 )