Initialize Photon class in detector reset function instead in models
Currently Photon
class is initialized in photon generation models and only if they are used. It would be better that an empty Photon array is initialized in detector.reset
, like all other data structures, this way models only change or add to the already existing array.
Edited by Matej Arko