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 = '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  qualityCuts = hltPFTauQualityCuts,# set the standard quality cuts
16 
17  # Delta-Beta corrections to remove Pileup
18  particleFlowSrc = "hltParticleFlow",
19  vertexSrc = hltPFTauQualityCuts.primaryVertexSrc,
20  customOuterCone = -1.0,
21 
22  # This must correspond to the cone size of the algorithm which built the
23  # tau. (or if customOuterCone option is used, the custom cone size)
24  isoConeSizeForDeltaBeta = 0.3,
25  # The delta beta factor maps the expected neutral contribution in the
26  # isolation cone from the observed PU charged contribution. This factor can
27  # optionally be a function (use 'x') of the number of vertices in the event
28  # (taken from the multiplicity of vertexSrc collection)
29  deltaBetaFactor = "0.38",
30  # By default, the pt threshold for tracks used to compute the DeltaBeta
31  # correction is taken as the gamma Et threshold from the isolation quality
32  # cuts.
33  deltaBetaPUTrackPtCutOverride = True, # Set the boolean = True to override.
34  deltaBetaPUTrackPtCutOverride_val = 0.5, # Set the value for new value.
35 
36  # Rho corrections
37  applyRhoCorrection = False,
38  rhoProducer = "kt6PFJets:rho",
39  rhoConeSize = 0.5,
40  rhoUEOffsetCorrection = 1.0,
41 
42  IDdefinitions = cms.VPSet(),
43  IDWPdefinitions = cms.VPSet(
44  cms.PSet(
45  IDname = cms.string("pfRecoTauDiscriminationByIsolation"),
46  maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
47  ApplyDiscriminationByTrackerIsolation = cms.bool(True), # use PFGammas when isolating
48  )
49  ),
50 )