Adaptations for SLC6 CMSSW_5_3_19 and photonorelectron in producer