Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-10 22:49:52

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