Memory usage in TDR_o1_v01 geometry simulation
Hi,
Recently I noticed the memory usage in the full detector simulation of ver. TDR_o1_v01 is a bit high, so I did some tests with the script Detector/DetCRD/scripts/TDR_o1_v01/sim.py
but replace the geometry by using track only / track + ECAL / track + ECAL + HCAL / etc. I run 50 ee->ZH->nunugg events, and the results looks like below:
It seems the HCAL and Muon occupy a bit large memory in the simulation. Would that be possible to optimize the code? e.g. extract the Volume
definition out of the loop if cells share the same volume shape?
Thanks!
Best, Fangyi