For loop in Events breaks off when the bin number of TH1D increase too large

Hi,
I confused about the for loop always break off when a TH2D bin number increased.
eg.

Long64_t n_entries = 100000;
for(Long64_t ii=0; ii<n_entries; ii++){
TH2D* aux = new TH2D("aux", "", nbinning, 10000, -0.05, 0.05);
....
}
``
when I increased the number of bin from 10000 to 50000. 
the for loop in events always break off.

Maybe you ran out of RAM. You create histograms in a loop but you do not show that you delete them there. Increasing the number of bins by a factor 5 will automatically increase the size of every histogram by the same factor.

Nice, I try to delete the new object when I writed them. And fixied them.
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.