Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:02:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoTauTag.RecoTau.TauDiscriminatorTools import *
0004 from RecoTauTag.RecoTau.pfRecoTauDiscriminationByMVAIsolationRun2_cfi import pfRecoTauDiscriminationByMVAIsolationRun2
0005 from RecoTauTag.RecoTau.recoTauDiscriminantCutMultiplexerDefault_cfi import recoTauDiscriminantCutMultiplexerDefault
0006 from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauBasicDiscriminators
0007 
0008 discriminationByIsolationMVArun2v1raw = pfRecoTauDiscriminationByMVAIsolationRun2.clone(
0009 
0010     # tau collection to discriminate
0011     PFTauProducer = 'pfTauProducer',
0012 
0013     # Require leading pion ensures that:
0014     #  1) these is at least one track above threshold (0.5 GeV) in the signal cone
0015     #  2) a track OR a pi-zero in the signal cone has pT > 5 GeV
0016     Prediscriminants = requireLeadTrack,
0017     loadMVAfromDB = True,
0018         
0019     srcBasicTauDiscriminators = 'hpsPFTauBasicDiscriminators'
0020 )
0021 
0022 discriminationByIsolationMVArun2v1 = recoTauDiscriminantCutMultiplexerDefault.clone(
0023     PFTauProducer = 'pfTauProducer',    
0024     Prediscriminants = requireLeadTrack,
0025     toMultiplex = 'discriminationByIsolationMVArun2v1raw',
0026     loadMVAfromDB = True,
0027     mapping = cms.VPSet(
0028         cms.PSet(
0029             category = cms.uint32(0),
0030             cut = cms.string("newDMwLT"),
0031             variable = cms.string("pt"),
0032         )
0033     ),
0034     workingPoints = cms.vstring(
0035         "Eff80",
0036         "Eff70",
0037         "Eff60",
0038         "Eff50",
0039         "Eff40"
0040     )
0041 )
0042 
0043 mvaIsolation2TaskRun2 = cms.Task(
0044     hpsPFTauBasicDiscriminators
0045    , discriminationByIsolationMVArun2v1raw
0046    , discriminationByIsolationMVArun2v1
0047 )
0048 mvaIsolation2SeqRun2 = cms.Sequence(mvaIsolation2TaskRun2)