Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:21:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
0004 from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrack
0005 from RecoTauTag.RecoTau.pfRecoTauDiscriminationByIsolationContainer_cfi import pfRecoTauDiscriminationByIsolationContainer
0006 
0007 pfRecoTauDiscriminationByIsolation = pfRecoTauDiscriminationByIsolationContainer.clone(
0008     # Require leading pion ensures that:
0009     # 1) these is at least one track above threshold (0.5 GeV) in the signal cone
0010     # 2) a track in the signal cone has pT > 5 GeV
0011     Prediscriminants = requireLeadTrack,
0012 
0013     # Select which collections to use for isolation. You can select one or both
0014     WeightECALIsolation = 1., # apply a flat, overall weight to ECAL isolation. Useful to combine charged and neutral isolations with different relative weights. Default 1. 
0015 
0016     minTauPtForNoIso = -99., # minimum tau pt at which the isolation is completely relaxed. If negative, this is disabled
0017 
0018     qualityCuts = PFTauQualityCuts, # set the standard quality cuts
0019 
0020     # Delta-Beta corrections to remove Pileup
0021     particleFlowSrc = "particleFlow",
0022     vertexSrc = PFTauQualityCuts.primaryVertexSrc,
0023     # This must correspond to the cone size of the algorithm which built the
0024     # tau. (or if customOuterCone option is used, the custom cone size)
0025     customOuterCone = -1., # propagated this default from .cc, it probably corresponds to not using customOuterCone
0026     isoConeSizeForDeltaBeta = 0.5,
0027     # The delta beta factor maps the expected neutral contribution in the
0028     # isolation cone from the observed PU charged contribution.  This factor can
0029     # optionally be a function (use 'x') of the number of vertices in the event
0030     # (taken from the multiplicity of vertexSrc collection)
0031     deltaBetaFactor = "0.38",
0032     # By default, the pt threshold for tracks used to compute the DeltaBeta
0033     # correction is taken as the gamma Et threshold from the isolation quality
0034     # cuts.
0035     deltaBetaPUTrackPtCutOverride     = False,  # Set the boolean = True to override.
0036     deltaBetaPUTrackPtCutOverride_val = -1.5, # Set the value for new value.
0037 
0038     # Tau footprint correction
0039     applyFootprintCorrection = False,
0040     footprintCorrections = cms.VPSet(
0041         cms.PSet(
0042             selection = cms.string("decayMode() = 0"),
0043             offset = cms.string("0.0")
0044         ),
0045         cms.PSet(
0046             selection = cms.string("decayMode() = 1 || decayMode() = 2"),
0047             offset = cms.string("0.0")
0048         ),
0049         cms.PSet(
0050             selection = cms.string("decayMode() = 5"),
0051             offset = cms.string("2.7")
0052         ),
0053         cms.PSet(
0054             selection = cms.string("decayMode() = 6"),
0055             offset = cms.string("0.0")
0056         ),
0057         cms.PSet(
0058             selection = cms.string("decayMode() = 10"),
0059             offset = cms.string("max(2.0, 0.22*pt() - 2.0)")
0060         )        
0061     ),                                                        
0062 
0063     # Rho corrections
0064     applyRhoCorrection = False,
0065     rhoProducer = "fixedGridRhoFastjetAll",
0066     rhoConeSize = 0.5,
0067     rhoUEOffsetCorrection = 1.0,
0068 
0069     verbosity = 0,
0070 )