Memory clean up in MC
04 September 2015
I found two memory issues in the MC:
- SpecialVirtual detectors were not properly deleting allocated memory at the end of the simulation.
- Virtual detectors were not properly deleting Virtual hits at the end of the simulation. Also VirtualHits copy constructor did not properly copy any existing Virtual hits.
This probably only effects things if user is reinitialising reconstruction a lot. But worth fixing