Bug #1745
Memory clean up in MC
Status:
Open
Priority:
Normal
Assignee:
Category:
Simulation
Target version:
Start date:
04 September 2015
Due date:
% Done:
0%
Estimated time:
Workflow:
New Issue
Description
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
Updated by Rogers, Chris almost 8 years ago
I found another subtle memory issue, when reinitialising the MC a lot. Looks like BTSolenoid does not reuse existing field maps, as it should, if there is an environment variable in the file name.
Updated by Rogers, Chris almost 8 years ago
This is now in test as maus_rogers, branch lp:~chris-rogers/maus/1745