Why not provide a consumesCollector to the helper, the class that does the work, as explained on 
https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideEDMGetDataFromEvent#Consumes_and_Helpers ?