I’m fairly new to Root and c++ but I’m trying to write a macro that produces a root file containing histograms.
However currently I’m getting a segmentation fault and I don’t really know why.
If anyone could help that would be great.
I have one idea: I’m appending data to vectors, but think that they may be getting too large. But I’m really new to this so I’m not exactly certain.
Code and input file are attached.
wbbj1.txt needs to be renamed as wbbj1.top
final1.txt needs to be renamed as final1.C wbbj1.txt (5.15 KB) final1.txt (4.51 KB)