[Gate-users] GATE v8.2: This error is symptomatic of a Tree created as a memory-resident Tree

Francisco Enríquez frank.enrqz at gmail.com
Fri Jun 10 04:05:09 CEST 2022


Hi,

I’m running a fairly simple, though quite long and memory demanding, simulation on a HPC computer.
The simulation has to be split on various CPUs using gjs. The problem that I’ve encountered is that, for some root files, the following error appears:

This error is symptomatic of a Tree created as a memory-resident Tree

 Instead of doing:

    TTree *T = new TTree(...)

    TFile *f = new TFile(...)

 you should do:

    TFile *f = new TFile(...)

    TTree *T = new TTree(...)
>From root documentation (https://root-forum.cern.ch/t/a-tree-created-as-a-memory-resident-tree/16496), I understand that by creating the TTree before the TFile, the TTree exists in memory (which is inefficient, if you want to store high amounts of data). What I don’t understand though, is why this error appears in some of my files, but not in all of them - As the simulation times are split evenly and the CPU resources are the same for all my simulation
My questions are then, (i) Why is this happening only in a few files but not all? (ii) Has this been fixed in recent gate versions?

Regards,
Francisco Enriquez

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220610/ae53f2cb/attachment-0001.html>


More information about the Gate-users mailing list