File indexing completed on 2024-04-06 12:24:59
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def calibrateReducedEgamma(process):
0004 process.load("RecoEgamma.EgammaTools.calibratedEgammas_cff")
0005 process.calibratedPhotons.produceCalibratedObjs = False
0006 process.calibratedElectrons.produceCalibratedObjs = False
0007 process.slimmingTask.add(process.calibratedPhotons)
0008 process.slimmingTask.add(process.calibratedElectrons)
0009 process.reducedEgamma.applyPhotonCalibOnData = False
0010 process.reducedEgamma.applyPhotonCalibOnMC = False
0011 process.reducedEgamma.applyGsfElectronCalibOnData = False
0012 process.reducedEgamma.applyGsfElectronCalibOnMC = False
0013 process.reducedEgamma.photonCalibEnergySource = cms.InputTag("calibratedPhotons","ecalEnergyPostCorr")
0014 process.reducedEgamma.photonCalibEnergyErrSource = cms.InputTag("calibratedPhotons","ecalEnergyErrPostCorr")
0015 process.reducedEgamma.gsfElectronCalibEnergySource = cms.InputTag("calibratedElectrons","ecalTrkEnergyPostCorr")
0016 process.reducedEgamma.gsfElectronCalibEnergyErrSource = cms.InputTag("calibratedElectrons","ecalTrkEnergyErrPostCorr")
0017
0018 process.reducedEgamma.gsfElectronCalibEcalEnergySource = cms.InputTag("calibratedElectrons","ecalEnergyPostCorr")
0019 process.reducedEgamma.gsfElectronCalibEcalEnergyErrSource = cms.InputTag("calibratedElectrons","ecalEnergyErrPostCorr")
0020 from RecoEgamma.EgammaTools.calibratedEgammas_cff import prefixName
0021 import RecoEgamma.EgammaTools.calibratedElectronProducer_cfi
0022 for valueMapName in RecoEgamma.EgammaTools.calibratedElectronProducer_cfi.calibratedElectronProducer.valueMapsStored:
0023 process.reducedEgamma.gsfElectronFloatValueMapSources.append(cms.InputTag("calibratedElectrons",valueMapName))
0024 process.reducedEgamma.gsfElectronFloatValueMapOutput.append(prefixName("calibEle",valueMapName))
0025 import RecoEgamma.EgammaTools.calibratedPhotonProducer_cfi
0026 for valueMapName in RecoEgamma.EgammaTools.calibratedPhotonProducer_cfi.calibratedPhotonProducer.valueMapsStored:
0027 process.reducedEgamma.photonFloatValueMapSources.append(cms.InputTag("calibratedPhotons",valueMapName))
0028 process.reducedEgamma.photonFloatValueMapOutput.append(prefixName("calibPho",valueMapName))
0029