CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
reducedEgamma_tools Namespace Reference

Functions

def calibrateReducedEgamma
 

Function Documentation

def reducedEgamma_tools.calibrateReducedEgamma (   process)

Definition at line 3 of file reducedEgamma_tools.py.

References calibratedEgammas_cff.prefixName().

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