1 import FWCore.ParameterSet.Config
as cms
4 from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsHGC_cfi
import cleanedEcalDrivenGsfElectronsHGC
5 from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff
import hgcalElectronIDValueMap
9 cleanedEcalDrivenGsfElectronsHGCnoEB = cms.EDFilter(
'TauValElectronSelector',
10 cut = cms.string(
'!isEB && pt >= 10.'),
11 src = cms.InputTag(
'cleanedEcalDrivenGsfElectronsHGC')
14 mergedGsfElectronsForTauId = cms.EDProducer(
'GsfElectronCollectionMerger',
15 src = cms.VInputTag(
'gedGsfElectrons',
'cleanedEcalDrivenGsfElectronsHGCnoEB')
18 hgcElectronIdForTauId = hgcalElectronIDValueMap.clone(
19 electrons =
"mergedGsfElectronsForTauId" 22 from RecoTauTag.RecoTau.tauDiscriminationAgainstElectronMVA6Phase2_mvaDefs_cff
import mvaNames_phase2, mapping_phase2, workingPoints_phase2
24 pfRecoTauDiscriminationAgainstElectronMVA6Phase2Raw = pfRecoTauDiscriminationAgainstElectronMVA6.clone(
26 srcElectrons =
"mergedGsfElectronsForTauId",
28 vetoEcalCracks =
False,
29 hgcalElectronIDs = [cms.InputTag(
"hgcElectronIdForTauId", key)
for key
in hgcElectronIdForTauId.variables],
33 from RecoTauTag.RecoTau.recoTauDiscriminantCutMultiplexerDefault_cfi
import recoTauDiscriminantCutMultiplexerDefault
34 pfRecoTauDiscriminationAgainstElectronMVA6Phase2 = recoTauDiscriminantCutMultiplexerDefault.clone(
36 toMultiplex =
"pfRecoTauDiscriminationAgainstElectronMVA6Phase2Raw",
37 mapping = mapping_phase2,
38 rawValues = [
"discriminator",
"category"],
39 workingPoints = workingPoints_phase2
42 electronsForTauDiscriminationAgainstElectronMVA6Phase2Task = cms.Task(
43 cleanedEcalDrivenGsfElectronsHGC,
44 cleanedEcalDrivenGsfElectronsHGCnoEB,
45 mergedGsfElectronsForTauId,
49 pfRecoTauDiscriminationAgainstElectronMVA6Phase2Task = cms.Task(
50 electronsForTauDiscriminationAgainstElectronMVA6Phase2Task,
51 pfRecoTauDiscriminationAgainstElectronMVA6Phase2Raw,
52 pfRecoTauDiscriminationAgainstElectronMVA6Phase2
55 pfRecoTauDiscriminationAgainstElectronMVA6Phase2Seq = cms.Sequence(
56 pfRecoTauDiscriminationAgainstElectronMVA6Phase2Task