Hello,
Thank you very much for you for reply, much appreciated.
Please note that - I am intentionally filling “his2D” twice, so that it will be symmetric. That is the usual practice in gamma-ray spectroscopy. In the macro that you have attached, I have not understood why have you added “0.5” to Eclab[j] and Eclab[k] before filling “his2D”. Is it really required?
As a next step (and almost final one!) of the analysis is to generate 3D histogram (possibly symmetric as 2D), which I tried by modifying our earlier “gen_MatGG.cxx” macro to “gen_Cub.cxx” (attached). You will notice that I have reduced dimensions to 2048 channels. When I run the macro the ROOT crashes. Please find the detailed crash report in the attached file. I have checked - if I reduce the 3D-histogram dimensions to “500” the it works fine. But a 3D-histogram with only 500 channels is of no use to me. Further, if I increase dimensions even to “512” the ROOT throws following error:
Error in TRint::HandleTermInput(): std::bad_alloc caught: std::bad_alloc
What is going wrong? How to rectify this problem?
Currently I am using ROOT 6.14/00 on 32-bit Fedora 20.
Thanking you once again.
Ajay
gen_Cub.cxx (3.6 KB)
CrashReport.txt (7.6 KB)