The university has a cluster they use for running simulations, they gave me a code that tells the cluster what to run, to run it x times (how many “jobs”), and in what queue.
At the end I end up with x output files, and they also gave me a code to merge those files, so far so good.
Now the problem is that sometimes when I open the histograms I get:
Error in TFile::ReadBuffer: error reading all requested bytes from file histos.root, got 218 of 300
Error in TFile::Init: histos.root failed to read the file type data.
(class TFile*)0x2ec0670
I’m not sure if the problem is Pythia or if the problem is Root. Sometimes I’ll see in the output that Pythia ran without problems, and sometimes I’ll see that the output stops before the even generation is supposed to end.
Regardless, the data in the histograms should be there even if the Pythia simulation had some problem, shouldn’t it?