Project

General

Profile

Bug #1745

Memory clean up in MC

Added by Rogers, Chris about 6 years ago. Updated about 6 years ago.

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

#1

Updated by Rogers, Chris about 6 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.

#2

Updated by Rogers, Chris about 6 years ago

This is now in test as maus_rogers, branch lp:~chris-rogers/maus/1745

Also available in: Atom PDF