Closed dabercro closed 4 years ago
So with this change some of the longer jobs used up to 2 GB of memory, but the nodes on the MIT cluster is able to handle those (barely).
nice, thanks! 2GB is also ok for us, I'll merge it into the master
@capalmer85 I'm not sure if AnalysisTools has the same ownership problem or not when running the Kinematic Fitter. This change might be worth making for you too.
Good to know. I'll look into it. Thanks!
Following the clues in #128 I ended up putting a printout in the fit constraint destructor and putting
del
statements all over the place.del
stopped working afterfitter.addConstraint()
https://github.com/piberger/Xbb/blob/master/python/myutils/kinFitterXbb.py#L274I think what was actually happening is Python or ROOT gave ownership of the constraints to the fitter. Deleting the Python proxy for the constraints wasn't enough. The fix was to explicitly delete constraints in the fitter's destructor.