CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolation_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
00004 from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrack
00005 
00006 PFRecoTauDiscriminationByIsolation = cms.EDProducer(
00007     "PFRecoTauDiscriminationByIsolation",
00008     PFTauProducer = cms.InputTag('pfRecoTauProducer'), #tau collection to discriminate
00009 
00010     # Require leading pion ensures that:
00011     # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
00012     # 2) a track in the signal cone has pT > 5 GeV
00013     Prediscriminants = requireLeadTrack,
00014 
00015     # Select which collections to use for isolation. You can select one or both
00016     ApplyDiscriminationByECALIsolation = cms.bool(True), # use PFGammas when isolating
00017     ApplyDiscriminationByTrackerIsolation = cms.bool(True), # use PFChargedHadr when isolating
00018 
00019     applyOccupancyCut = cms.bool(True), # apply a cut on number of isolation objects
00020     maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
00021 
00022     applySumPtCut = cms.bool(False), # apply a cut on the sum Pt of the isolation objects
00023     maximumSumPtCut = cms.double(6.0),
00024 
00025     applyRelativeSumPtCut = cms.bool(False), # apply a cut on IsoPt/TotalPt
00026     relativeSumPtCut = cms.double(0.0),
00027 
00028     qualityCuts = PFTauQualityCuts,# set the standard quality cuts
00029 
00030     # Delta-Beta corrections to remove Pileup
00031     applyDeltaBetaCorrection = cms.bool(False),
00032     particleFlowSrc = cms.InputTag("particleFlow"),
00033     vertexSrc = PFTauQualityCuts.primaryVertexSrc,
00034 
00035     # This must correspond to the cone size of the algorithm which built the
00036     # tau. (or if customOuterCone option is used, the custom cone size)
00037     isoConeSizeForDeltaBeta = cms.double(0.5),
00038     # The delta beta factor maps the expected neutral contribution in the
00039     # isolation cone from the observed PU charged contribution.  This factor can
00040     # optionally be a function (use 'x') of the number of vertices in the event
00041     # (taken from the multiplicity of vertexSrc collection)
00042     deltaBetaFactor = cms.string("0.38"),
00043     # By default, the pt threshold for tracks used to compute the DeltaBeta
00044     # correction is taken as the gamma Et threshold from the isolation quality
00045     # cuts.
00046     # Uncommenting the parameter below allows this threshold to be overridden.
00047     #deltaBetaPUTrackPtCutOverride = cms.double(1.5),
00048 
00049     # Rho corrections
00050     applyRhoCorrection = cms.bool(False),
00051     rhoProducer = cms.InputTag("kt6PFJets", "rho"),
00052     rhoConeSize = cms.double(0.5),
00053     rhoUEOffsetCorrection = cms.double(1.0),
00054 )