CMS 3D CMS Logo

PFRecoTauDiscriminationByIsolation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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  WeightECALIsolation = cms.double(1.), # apply a flat, overall weight to ECAL isolation. Useful to combine charged and neutral isolations with different relative weights. Default 1.
19 
20  applyOccupancyCut = cms.bool(True), # apply a cut on number of isolation objects
21  maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
22 
23  applySumPtCut = cms.bool(False), # apply a cut on the sum Pt of the isolation objects
24  maximumSumPtCut = cms.double(6.0),
25 
26  applyRelativeSumPtCut = cms.bool(False), # apply a cut on IsoPt/TotalPt
27  relativeSumPtCut = cms.double(0.0),
28  relativeSumPtOffset = cms.double(0.0),
29 
30  minTauPtForNoIso = cms.double(-99.), # minimum tau pt at which the isolation is completely relaxed. If negative, this is disabled
31 
32  applyPhotonPtSumOutsideSignalConeCut = cms.bool(False),
33  maxAbsPhotonSumPt_outsideSignalCone = cms.double(1.e+9),
34  maxRelPhotonSumPt_outsideSignalCone = cms.double(0.10),
35 
36  qualityCuts = PFTauQualityCuts, # set the standard quality cuts
37 
38  # Delta-Beta corrections to remove Pileup
39  applyDeltaBetaCorrection = cms.bool(False),
40  particleFlowSrc = cms.InputTag("particleFlow"),
41  vertexSrc = PFTauQualityCuts.primaryVertexSrc,
42  # This must correspond to the cone size of the algorithm which built the
43  # tau. (or if customOuterCone option is used, the custom cone size)
44  customOuterCone = cms.double(-1.), # propagated this default from .cc, it probably corresponds to not using customOuterCone
45  isoConeSizeForDeltaBeta = cms.double(0.5),
46  # The delta beta factor maps the expected neutral contribution in the
47  # isolation cone from the observed PU charged contribution. This factor can
48  # optionally be a function (use 'x') of the number of vertices in the event
49  # (taken from the multiplicity of vertexSrc collection)
50  deltaBetaFactor = cms.string("0.38"),
51  # By default, the pt threshold for tracks used to compute the DeltaBeta
52  # correction is taken as the gamma Et threshold from the isolation quality
53  # cuts.
54  deltaBetaPUTrackPtCutOverride = cms.bool(False), # Set the boolean = True to override.
55  deltaBetaPUTrackPtCutOverride_val = cms.double(-1.5), # Set the value for new value.
56 
57  # Tau footprint correction
58  applyFootprintCorrection = cms.bool(False),
59  footprintCorrections = cms.VPSet(
60  cms.PSet(
61  selection = cms.string("decayMode() = 0"),
62  offset = cms.string("0.0")
63  ),
64  cms.PSet(
65  selection = cms.string("decayMode() = 1 || decayMode() = 2"),
66  offset = cms.string("0.0")
67  ),
68  cms.PSet(
69  selection = cms.string("decayMode() = 5"),
70  offset = cms.string("2.7")
71  ),
72  cms.PSet(
73  selection = cms.string("decayMode() = 6"),
74  offset = cms.string("0.0")
75  ),
76  cms.PSet(
77  selection = cms.string("decayMode() = 10"),
78  offset = cms.string("max(2.0, 0.22*pt() - 2.0)")
79  )
80  ),
81 
82  # Rho corrections
83  applyRhoCorrection = cms.bool(False),
84  rhoProducer = cms.InputTag("fixedGridRhoFastjetAll"),
85  rhoConeSize = cms.double(0.5),
86  rhoUEOffsetCorrection = cms.double(1.0),
87  UseAllPFCandsForWeights = cms.bool(False),
88 
89  # moved these from .cc ifExists structures
90  storeRawOccupancy = cms.bool(False),
91  storeRawSumPt = cms.bool(False),
92  storeRawPUsumPt = cms.bool(False),
93  storeRawFootprintCorrection = cms.bool(False),
94  storeRawPhotonSumPt_outsideSignalCone = cms.bool(False),
95 
96  verbosity = cms.int32(0),
97 )