root file writing (option, nperfile=)
Issue #5
resolved
Have root files written without having to specify the number of events to write. So suggest that there is some defaults. It might because a problem when there are many samplers and lots of secondaries.
What is maximum root file size. Can't it be automatically split in root, opposed to BDSIM doing it
Comments (4)
-
-
ok implemented it like that, nperfile is not necessary to set. please close if you are happy with this solution
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
closing. please reopen if more is needed.
- Log in to comment
Lawrence knows, but I think one of the main reasons why this option was added, was to write results while running instead of only at the end. The root files can be easily merged afterwards with hadd:
combine root files file1 fille2 .. filen into result.root: hadd result.root file1.root file2.root … filen.root
It looks like the default is nperfile=0, which results in nothing written out? That looks indeed suboptimal. What about having as default: write out one root file at the end?