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 
18  applyOccupancyCut = cms.bool(True), # apply a cut on number of isolation objects
19  maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
20 
21  applySumPtCut = cms.bool(False), # apply a cut on the sum Pt of the isolation objects
22  maximumSumPtCut = cms.double(6.0),
23 
24  applyRelativeSumPtCut = cms.bool(False), # apply a cut on IsoPt/TotalPt
25  relativeSumPtCut = cms.double(0.0),
26  relativeSumPtOffset = 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("fixedGridRhoFastjetAll"),
52  rhoConeSize = cms.double(0.5),
53  rhoUEOffsetCorrection = cms.double(1.0)
54 )