4 process.load(
"RecoEgamma.EgammaTools.calibratedEgammas_cff")
5 process.calibratedPhotons.produceCalibratedObjs =
False 6 process.calibratedElectrons.produceCalibratedObjs =
False 7 process.slimmingTask.add(process.calibratedPhotons)
8 process.slimmingTask.add(process.calibratedElectrons)
9 process.reducedEgamma.applyPhotonCalibOnData =
False 10 process.reducedEgamma.applyPhotonCalibOnMC =
False 11 process.reducedEgamma.applyGsfElectronCalibOnData =
False 12 process.reducedEgamma.applyGsfElectronCalibOnMC =
False 13 process.reducedEgamma.photonCalibEnergySource = cms.InputTag(
"calibratedPhotons",
"ecalEnergyPostCorr")
14 process.reducedEgamma.photonCalibEnergyErrSource = cms.InputTag(
"calibratedPhotons",
"ecalEnergyErrPostCorr")
15 process.reducedEgamma.gsfElectronCalibEnergySource = cms.InputTag(
"calibratedElectrons",
"ecalTrkEnergyPostCorr")
16 process.reducedEgamma.gsfElectronCalibEnergyErrSource = cms.InputTag(
"calibratedElectrons",
"ecalTrkEnergyErrPostCorr")
18 process.reducedEgamma.gsfElectronCalibEcalEnergySource = cms.InputTag(
"calibratedElectrons",
"ecalEnergyPostCorr")
19 process.reducedEgamma.gsfElectronCalibEcalEnergyErrSource = cms.InputTag(
"calibratedElectrons",
"ecalEnergyErrPostCorr")
20 from RecoEgamma.EgammaTools.calibratedEgammas_cff
import prefixName
21 import RecoEgamma.EgammaTools.calibratedElectronProducer_cfi
22 for valueMapName
in RecoEgamma.EgammaTools.calibratedElectronProducer_cfi.calibratedElectronProducer.valueMapsStored:
23 process.reducedEgamma.gsfElectronFloatValueMapSources.append(cms.InputTag(
"calibratedElectrons",valueMapName))
24 process.reducedEgamma.gsfElectronFloatValueMapOutput.append(
prefixName(
"calibEle",valueMapName))
25 import RecoEgamma.EgammaTools.calibratedPhotonProducer_cfi
26 for valueMapName
in RecoEgamma.EgammaTools.calibratedPhotonProducer_cfi.calibratedPhotonProducer.valueMapsStored:
27 process.reducedEgamma.photonFloatValueMapSources.append(cms.InputTag(
"calibratedPhotons",valueMapName))
28 process.reducedEgamma.photonFloatValueMapOutput.append(
prefixName(
"calibPho",valueMapName))
30
def prefixName(prefix, name)