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(
7  "PFRecoTauDiscriminationByIsolation",
8  PFTauProducer = cms.InputTag('pfRecoTauProducer'), #tau collection to discriminate
9 
10  # Require leading pion ensures that:
11  # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
12  # 2) a track in the signal cone has pT > 5 GeV
13  Prediscriminants = requireLeadTrack,
14 
15  # Select which collections to use for isolation. You can select one or both
16  ApplyDiscriminationByECALIsolation = cms.bool(True), # use PFGammas when isolating
17  ApplyDiscriminationByTrackerIsolation = cms.bool(True), # use PFChargedHadr when isolating
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 
28  qualityCuts = PFTauQualityCuts,# set the standard quality cuts
29 
30  # Delta-Beta corrections to remove Pileup
31  applyDeltaBetaCorrection = cms.bool(False),
32  particleFlowSrc = cms.InputTag("particleFlow"),
33  vertexSrc = PFTauQualityCuts.primaryVertexSrc,
34 
35  # This must correspond to the cone size of the algorithm which built the
36  # tau. (or if customOuterCone option is used, the custom cone size)
37  isoConeSizeForDeltaBeta = cms.double(0.5),
38  # The delta beta factor maps the expected neutral contribution in the
39  # isolation cone from the observed PU charged contribution. This factor can
40  # optionally be a function (use 'x') of the number of vertices in the event
41  # (taken from the multiplicity of vertexSrc collection)
42  deltaBetaFactor = cms.string("0.38"),
43  # By default, the pt threshold for tracks used to compute the DeltaBeta
44  # correction is taken as the gamma Et threshold from the isolation quality
45  # cuts.
46  # Uncommenting the parameter below allows this threshold to be overridden.
47  #deltaBetaPUTrackPtCutOverride = cms.double(1.5),
48 
49  # Rho corrections
50  applyRhoCorrection = cms.bool(False),
51  rhoProducer = cms.InputTag("kt6PFJets", "rho"),
52  rhoConeSize = cms.double(0.5),
53  rhoUEOffsetCorrection = cms.double(1.0),
54 )