Skip to content

Commit

Permalink
initial versions of cffs for phase2 anti-e
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj authored and Sebastian Wozniewski committed Oct 19, 2020
1 parent 114ed44 commit 4cb08e8
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import FWCore.ParameterSet.Config as cms

# Electron collection merger
mergedSlimmedElectronsForTauId = cms.EDProducer('PATElectronCollectionMerger',
src = cms.VInputTag('slimmedElectrons', 'slimmedElectronsFromMultiClNoEB')
)
# anti-e phase-2 tauID
from RecoTauTag.RecoTau.patTauDiscriminationAgainstElectronMVA6_cfi import *
patTauDiscriminationAgainstElectronMVA6Phase2 = patTauDiscriminationAgainstElectronMVA6.clone(
#FIXME, correct settings for phase2
srcElectrons = 'mergedSlimmedElectronsForTauId'
)

patTauDiscriminationAgainstElectronMVA6Phase2Task = cms.Task(
mergedSlimmedElectronsForTauId,
patTauDiscriminationAgainstElectronMVA6Phase2
)

patTauDiscriminationAgainstElectronMVA6Phase2Seq = cms.Sequence(
patTauDiscriminationAgainstElectronMVA6Phase2Task
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import FWCore.ParameterSet.Config as cms

# HGCal electron stuff
from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi import cleanedEcalDrivenGsfElectronsFromMultiCl
from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap

cleanedEcalDrivenGsfElectronsFromMultiClNoEB = cleanedEcalDrivenGsfElectronsFromMultiCl.clone(
cleanBarrel = True
)
hgcElectronIDNoEB = hgcalElectronIDValueMap.clone(
electrons = cms.InputTag("cleanedEcalDrivenGsfElectronsFromMultiClNoEB"),
)

# Electron collection merger
mergedGsfElectronsForTauId = cms.EDProducer('GsfElectronCollectionMerger',
src = cms.VInputTag('gedGsfElectrons', 'cleanedEcalDrivenGsfElectronsFromMultiClNoEB')
)
# anti-e phase-2 tauID
from RecoTauTag.RecoTau.pfRecoTauDiscriminationAgainstElectronMVA6_cfi import *
pfRecoTauDiscriminationAgainstElectronMVA6Phase2 = pfRecoTauDiscriminationAgainstElectronMVA6.clone(
#FIXME, correct settings for phase2
srcElectrons = 'mergedGsfElectronsForTauId'
)

pfRecoTauDiscriminationAgainstElectronMVA6Phase2Task = cms.Task(
cleanedEcalDrivenGsfElectronsFromMultiClNoEB,
hgcElectronIDNoEB,
mergedGsfElectronsForTauId,
pfRecoTauDiscriminationAgainstElectronMVA6Phase2
)

pfRecoTauDiscriminationAgainstElectronMVA6Phase2Seq = cms.Sequence(
pfRecoTauDiscriminationAgainstElectronMVA6Phase2Task
)

0 comments on commit 4cb08e8

Please sign in to comment.