Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoTauTag.RecoTau.recoTauDiscriminantCutMultiplexerDefault_cfi import recoTauDiscriminantCutMultiplexerDefault
0004 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauBasicDiscriminators
0005 import RecoTauTag.RecoTau.pfRecoTauDiscriminationByIsolationMVA2_cfi as _mod
0006 
0007 discriminationByIsolationMVA2raw = _mod.pfRecoTauDiscriminationByIsolationMVA2.clone(
0008     # tau collection to discriminate
0009     PFTauProducer = 'pfTauProducer',
0010 
0011     # Require leading pion ensures that:
0012     #  1) these is at least one track above threshold (0.5 GeV) in the signal cone
0013     #  2) a track OR a pi-zero in the signal cone has pT > 5 GeV
0014     Prediscriminants = requireLeadTrack,
0015     loadMVAfromDB = True,
0016     inputFileName = "RecoTauTag/RecoTau/data/emptyMVAinputFile", # the filename for MVA if it is not loaded from DB
0017     mvaName = "tauIdMVAnewDMwLT",
0018     mvaOpt  = "newDMwLT",
0019 
0020     # NOTE: tau lifetime reconstruction sequence needs to be run before
0021     srcTauTransverseImpactParameters = '',
0022     
0023     srcBasicTauDiscriminators = 'hpsPFTauBasicDiscriminators',
0024     srcChargedIsoPtSumIndex = 0,
0025     srcNeutralIsoPtSumIndex = 1,
0026     srcPUcorrPtSumIndex = 5,
0027 )
0028 
0029 discriminationByIsolationMVA2 = recoTauDiscriminantCutMultiplexerDefault.clone(
0030     PFTauProducer = 'pfTauProducer',    
0031     Prediscriminants = requireLeadTrack,
0032     toMultiplex = 'discriminationByIsolationMVA2raw',
0033     loadMVAfromDB = True,
0034     mapping = cms.VPSet(
0035         cms.PSet(
0036             category = cms.uint32(0),
0037             cut = cms.string("newDMwLT"),
0038             variable = cms.string("pt"),
0039         )
0040     ),
0041     workingPoints = [
0042         "Eff80",
0043         "Eff70",
0044         "Eff60",
0045         "Eff50",
0046         "Eff40"
0047     ]
0048 )
0049 
0050 mvaIsolation2Task = cms.Task(
0051     hpsPFTauBasicDiscriminators
0052    , discriminationByIsolationMVA2raw
0053    , discriminationByIsolationMVA2
0054 )
0055 mvaIsolation2Seq = cms.Sequence(mvaIsolation2Task)