Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoTauTag.RecoTau.HLTPFRecoTauQualityCuts_cfi import hltPFTauQualityCuts
0004 from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrack, noPrediscriminants
0005 from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi import pfRecoTauDiscriminationByIsolation
0006 
0007 hltPFRecoTauDiscriminationByIsolation = pfRecoTauDiscriminationByIsolation.clone(
0008     PFTauProducer = 'hltPFRecoTauProducer', #tau collection to discriminate
0009 
0010     # Require leading pion ensures that:
0011     # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
0012     # 2) a track in the signal cone has pT > 5 GeV
0013     Prediscriminants = noPrediscriminants,
0014 
0015     qualityCuts = hltPFTauQualityCuts,# set the standard quality cuts
0016 
0017     # Delta-Beta corrections to remove Pileup
0018     particleFlowSrc = "hltParticleFlow",
0019     vertexSrc = hltPFTauQualityCuts.primaryVertexSrc,
0020     customOuterCone = -1.0,
0021 
0022     # This must correspond to the cone size of the algorithm which built the
0023     # tau. (or if customOuterCone option is used, the custom cone size)
0024     isoConeSizeForDeltaBeta = 0.3,
0025     # The delta beta factor maps the expected neutral contribution in the
0026     # isolation cone from the observed PU charged contribution.  This factor can
0027     # optionally be a function (use 'x') of the number of vertices in the event
0028     # (taken from the multiplicity of vertexSrc collection)
0029     deltaBetaFactor = "0.38",
0030     # By default, the pt threshold for tracks used to compute the DeltaBeta
0031     # correction is taken as the gamma Et threshold from the isolation quality
0032     # cuts.
0033     deltaBetaPUTrackPtCutOverride     = True,  # Set the boolean = True to override.
0034     deltaBetaPUTrackPtCutOverride_val = 0.5, # Set the value for new value.
0035 
0036     # Rho corrections
0037     applyRhoCorrection = False,
0038     rhoProducer = "kt6PFJets:rho",
0039     rhoConeSize = 0.5,
0040     rhoUEOffsetCorrection = 1.0,
0041 
0042     IDdefinitions = cms.VPSet(),
0043     IDWPdefinitions = cms.VPSet(
0044         cms.PSet(
0045             IDname = cms.string("pfRecoTauDiscriminationByIsolation"),
0046             maximumOccupancy = cms.uint32(0), # no tracks > 1 GeV or gammas > 1.5 GeV allowed
0047             ApplyDiscriminationByTrackerIsolation = cms.bool(True), # use PFGammas when isolating
0048         )
0049     ),
0050 )