import FWCore.ParameterSet.Config as cms from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi import cleanedEcalDrivenGsfElectronsFromMultiCl from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer from PhysicsTools.PatAlgos.slimming.slimmedElectrons_cfi import slimmedElectrons from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi import hgcalRecHitMapProducer hgcElectronID = hgcalElectronIDValueMap.clone( electrons=cms.InputTag("cleanedEcalDrivenGsfElectronsFromMultiCl"), ) patElectronsFromMultiCl = PATElectronProducer.clone( electronSource=cms.InputTag("cleanedEcalDrivenGsfElectronsFromMultiCl"), beamLineSrc=cms.InputTag("offlineBeamSpot"), pvSrc=cms.InputTag("offlinePrimaryVertices"), addElectronID=cms.bool(False), addGenMatch=cms.bool(False), addMVAVariables=cms.bool(False), embedGenMatch=cms.bool(False), embedGsfElectronCore=cms.bool(True), embedGsfTrack=cms.bool(True), embedSuperCluster=cms.bool(True), embedPflowSuperCluster=cms.bool(False), embedSeedCluster=cms.bool(True), embedBasicClusters=cms.bool(False), embedPreshowerClusters=cms.bool(False), embedPflowBasicClusters=cms.bool(False), embedPflowPreshowerClusters=cms.bool(False), embedPFCandidate=cms.bool(False), embedTrack=cms.bool(True), embedRecHits=cms.bool(False), embedHighLevelSelection=cms.bool(True),
import FWCore.ParameterSet.Config as cms from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi import cleanedEcalDrivenGsfElectronsFromMultiCl from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer from PhysicsTools.PatAlgos.slimming.slimmedElectrons_cfi import slimmedElectrons hgcElectronID = hgcalElectronIDValueMap.clone( electrons = cms.InputTag("cleanedEcalDrivenGsfElectronsFromMultiCl"), ) patElectronsFromMultiCl = PATElectronProducer.clone( electronSource = cms.InputTag("cleanedEcalDrivenGsfElectronsFromMultiCl"), beamLineSrc = cms.InputTag("offlineBeamSpot"), pvSrc = cms.InputTag("offlinePrimaryVertices"), addElectronID = cms.bool(False), addGenMatch = cms.bool(False), addMVAVariables= cms.bool(False), embedGenMatch = cms.bool(False), embedGsfElectronCore = cms.bool(True), embedGsfTrack = cms.bool(True), embedSuperCluster = cms.bool(True), embedPflowSuperCluster = cms.bool(False), embedSeedCluster = cms.bool(True), embedBasicClusters = cms.bool(False), embedPreshowerClusters = cms.bool(False), embedPflowBasicClusters = cms.bool(False), embedPflowPreshowerClusters= cms.bool(False), embedPFCandidate = cms.bool(False), embedTrack = cms.bool(True), embedRecHits = cms.bool(False), embedHighLevelSelection = cms.bool(True),
from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi import cleanedEcalDrivenGsfElectronsFromMultiCl from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap # HGCal electrons cleaned against duplicates and electrons in barrel (pt>10GeV) # TauValElectronSelector defined Validation/RecoTau/plugins/Selectors.cc; # is there a more intuitive place where such a selector is defined? cleanedEcalDrivenGsfElectronsFromMultiClNoEB = cms.EDFilter('TauValElectronSelector', cut = cms.string('!isEB && pt >= 10.'), src = cms.InputTag('cleanedEcalDrivenGsfElectronsFromMultiCl') ) # Electron collection merger mergedGsfElectronsForTauId = cms.EDProducer('GsfElectronCollectionMerger', src = cms.VInputTag('gedGsfElectrons', 'cleanedEcalDrivenGsfElectronsFromMultiClNoEB') ) # HGCal EleID with merged electron collection hgcElectronIdForTauId = hgcalElectronIDValueMap.clone( electrons = "mergedGsfElectronsForTauId" ) # anti-e phase-2 tauID (raw) from RecoTauTag.RecoTau.tauDiscriminationAgainstElectronMVA6Phase2_mvaDefs_cff import mvaNames_phase2, mapping_phase2, workingPoints_phase2 from RecoTauTag.RecoTau.pfRecoTauDiscriminationAgainstElectronMVA6_cfi import * pfRecoTauDiscriminationAgainstElectronMVA6Phase2Raw = pfRecoTauDiscriminationAgainstElectronMVA6.clone( #Note: PFTauProducer and Prediscriminants have to be set in the final cfg srcElectrons = "mergedGsfElectronsForTauId", isPhase2 = True, vetoEcalCracks = False, hgcalElectronIDs = [cms.InputTag("hgcElectronIdForTauId", key) for key in hgcElectronIdForTauId.variables], **mvaNames_phase2 ) # anti-e phase-2 tauID (WPs) from RecoTauTag.RecoTau.recoTauDiscriminantCutMultiplexerDefault_cfi import recoTauDiscriminantCutMultiplexerDefault pfRecoTauDiscriminationAgainstElectronMVA6Phase2 = recoTauDiscriminantCutMultiplexerDefault.clone(
import FWCore.ParameterSet.Config as cms from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsFromMultiCl_cfi import cleanedEcalDrivenGsfElectronsFromMultiCl from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer from PhysicsTools.PatAlgos.slimming.slimmedElectrons_cfi import slimmedElectrons from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi import hgcalRecHitMapProducer hgcElectronID = hgcalElectronIDValueMap.clone( electrons="cleanedEcalDrivenGsfElectronsFromMultiCl", ) patElectronsFromMultiCl = PATElectronProducer.clone( electronSource="cleanedEcalDrivenGsfElectronsFromMultiCl", beamLineSrc="offlineBeamSpot", pvSrc="offlinePrimaryVertices", addElectronID=False, addGenMatch=False, addMVAVariables=False, embedGenMatch=False, embedGsfElectronCore=True, embedGsfTrack=True, embedSuperCluster=True, embedPflowSuperCluster=False, embedSeedCluster=True, embedBasicClusters=False, embedPreshowerClusters=False, embedPflowBasicClusters=False, embedPflowPreshowerClusters=False, embedPFCandidate=False, embedTrack=True, embedRecHits=False, embedHighLevelSelection=True,
import FWCore.ParameterSet.Config as cms from RecoEgamma.EgammaTools.cleanedEcalDrivenGsfElectronsHGC_cfi import cleanedEcalDrivenGsfElectronsHGC from RecoEgamma.EgammaTools.hgcalElectronIDValueMap_cff import hgcalElectronIDValueMap from PhysicsTools.PatAlgos.PATElectronProducer_cfi import PATElectronProducer from PhysicsTools.PatAlgos.slimming.slimmedElectrons_cfi import slimmedElectrons from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi import hgcalRecHitMapProducer hgcElectronID = hgcalElectronIDValueMap.clone( electrons="cleanedEcalDrivenGsfElectronsHGC", ) patElectronsHGC = PATElectronProducer.clone( electronSource="cleanedEcalDrivenGsfElectronsHGC", beamLineSrc="offlineBeamSpot", pvSrc="offlinePrimaryVertices", addElectronID=False, addGenMatch=False, addMVAVariables=False, embedGenMatch=False, embedGsfElectronCore=True, embedGsfTrack=True, embedSuperCluster=True, embedPflowSuperCluster=False, embedSeedCluster=True, embedBasicClusters=False, embedPreshowerClusters=False, embedPflowBasicClusters=False, embedPflowPreshowerClusters=False, embedPFCandidate=False, embedTrack=True, embedRecHits=False, embedHighLevelSelection=True,