CMS 3D CMS Logo

HLTPFRecoTauDiscriminationByIsolation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoTauTag.RecoTau.HLTPFRecoTauQualityCuts_cfi import hltPFTauQualityCuts
4 from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrack, noPrediscriminants
5 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi import pfRecoTauDiscriminationByIsolation
6 
7 hltPFRecoTauDiscriminationByIsolation = pfRecoTauDiscriminationByIsolation.clone(
8  PFTauProducer = cms.InputTag('hltPFRecoTauProducer'), #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 = noPrediscriminants,
14 
15  # Select which collections to use for isolation. You can select one or both
16  ApplyDiscriminationByECALIsolation = cms.bool(False), # 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  storeRawSumPt = cms.bool(False),
25 
26  applyRelativeSumPtCut = cms.bool(False), # apply a cut on IsoPt/TotalPt
27  relativeSumPtCut = cms.double(0.0),
28 
29  qualityCuts = hltPFTauQualityCuts,# set the standard quality cuts
30 
31  # Delta-Beta corrections to remove Pileup
32  applyDeltaBetaCorrection = cms.bool(False),
33  particleFlowSrc = cms.InputTag("hltParticleFlow"),
34  vertexSrc = hltPFTauQualityCuts.primaryVertexSrc,
35  customOuterCone = cms.double( -1.0 ),
36 
37  # This must correspond to the cone size of the algorithm which built the
38  # tau. (or if customOuterCone option is used, the custom cone size)
39  isoConeSizeForDeltaBeta = cms.double(0.3),
40  # The delta beta factor maps the expected neutral contribution in the
41  # isolation cone from the observed PU charged contribution. This factor can
42  # optionally be a function (use 'x') of the number of vertices in the event
43  # (taken from the multiplicity of vertexSrc collection)
44  deltaBetaFactor = cms.string("0.38"),
45  # By default, the pt threshold for tracks used to compute the DeltaBeta
46  # correction is taken as the gamma Et threshold from the isolation quality
47  # cuts.
48  deltaBetaPUTrackPtCutOverride = cms.bool(True), # Set the boolean = True to override.
49  deltaBetaPUTrackPtCutOverride_val = cms.double(0.5), # Set the value for new value.
50 
51  # Rho corrections
52  applyRhoCorrection = cms.bool(False),
53  rhoProducer = cms.InputTag("kt6PFJets", "rho"),
54  rhoConeSize = cms.double(0.5),
55  rhoUEOffsetCorrection = cms.double(1.0),
56 )