Refactored -generatePhoton.py- to use the -AccumulatorCache- decorator. Changes were made in analogy to : !45430 (merged)
@tbold @rbielski ATR-23200