DAMPEEU / DmpTools

Miscellaneous tools written for the DAMPE experiment
0 stars 3 forks source link

HE skimmer: memory resident trees #32

Open zimmerst opened 6 years ago

zimmerst commented 6 years ago

Hi, in the current implementation, the skimmer keeps failing because it will allocate enormous amounts of memory. PBS was more kind in the past, slurm seems a bit stricter. Either way, it'd be good to investigate why this is happening, the logs may shed a little light on this...

Error in <TBranchElement::Fill>: Failed filling branch:DmpStkLadderAdcCollection.adc[384], nbytes=-1
Error in <TBranchElement::Fill>: Failed filling branch:DmpStkLadderAdcCollection.DmpStkLadderAdcCollection.adc[384], nbytes=-1
Error in <TTree::Fill>: Failed filling branch:CollectionTree.DmpStkLadderAdcCollection, nbytes=-1, entry=46115
 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(...)