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  qualityCuts = PFTauQualityCuts,# set the standard quality cuts
30 
31  # Delta-Beta corrections to remove Pileup
32  applyDeltaBetaCorrection = cms.bool(False),
33  particleFlowSrc = cms.InputTag("particleFlow"),
34  vertexSrc = PFTauQualityCuts.primaryVertexSrc,
35 
36  # This must correspond to the cone size of the algorithm which built the
37  # tau. (or if customOuterCone option is used, the custom cone size)
38  isoConeSizeForDeltaBeta = cms.double(0.5),
39  # The delta beta factor maps the expected neutral contribution in the
40  # isolation cone from the observed PU charged contribution. This factor can
41  # optionally be a function (use 'x') of the number of vertices in the event
42  # (taken from the multiplicity of vertexSrc collection)
43  deltaBetaFactor = cms.string("0.38"),
44  # By default, the pt threshold for tracks used to compute the DeltaBeta
45  # correction is taken as the gamma Et threshold from the isolation quality
46  # cuts.
47  # Uncommenting the parameter below allows this threshold to be overridden.
48  #deltaBetaPUTrackPtCutOverride = cms.double(1.5),
49 
50  # Rho corrections
51  applyRhoCorrection = cms.bool(False),
52  rhoProducer = cms.InputTag("fixedGridRhoFastjetAll"),
53  rhoConeSize = cms.double(0.5),
54  rhoUEOffsetCorrection = cms.double(1.0),
55  UseAllPFCandsForWeights = cms.bool(False),
56  verbosity = cms.int32(0)
57 
58 )