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 # Electron collection merger
0004 from RecoTauTag.RecoTau.mergedPhase2SlimmedElectronsForTauId_cff import mergedSlimmedElectronsForTauId
0005 
0006 # anti-e phase-2 tauID (Raw)
0007 from RecoTauTag.RecoTau.tauDiscriminationAgainstElectronMVA6Phase2_mvaDefs_cff import mvaNames_phase2, mapping_phase2, workingPoints_phase2
0008 from RecoTauTag.RecoTau.TauDiscriminatorTools import noPrediscriminants
0009 from RecoTauTag.RecoTau.patTauDiscriminationAgainstElectronMVA6_cfi import *
0010 patTauDiscriminationAgainstElectronMVA6Phase2Raw = patTauDiscriminationAgainstElectronMVA6.clone(
0011     #Note: PATTauProducer has to be set in the final cfg
0012     Prediscriminants = noPrediscriminants,
0013     srcElectrons = "mergedSlimmedElectronsForTauId",
0014     isPhase2 = True,
0015     vetoEcalCracks = False,
0016     **mvaNames_phase2
0017 )
0018 # anti-e phase-2 tauID (WPs)
0019 from RecoTauTag.RecoTau.patTauDiscriminantCutMultiplexerDefault_cfi import patTauDiscriminantCutMultiplexerDefault
0020 patTauDiscriminationAgainstElectronMVA6Phase2 = patTauDiscriminantCutMultiplexerDefault.clone(
0021     #Note: PFTauProducer and Prediscriminants have to be set in the final cfg
0022     toMultiplex = 'patTauDiscriminationAgainstElectronMVA6Phase2Raw',
0023     mapping = mapping_phase2,
0024     rawValues = ["discriminator", "category"],
0025     workingPoints = workingPoints_phase2
0026 )
0027 
0028 patTauDiscriminationAgainstElectronMVA6Phase2Task = cms.Task(
0029     mergedSlimmedElectronsForTauId,
0030     patTauDiscriminationAgainstElectronMVA6Phase2Raw,
0031     patTauDiscriminationAgainstElectronMVA6Phase2
0032 )
0033 
0034 patTauDiscriminationAgainstElectronMVA6Phase2Seq = cms.Sequence(
0035     patTauDiscriminationAgainstElectronMVA6Phase2Task
0036 )