root file writing (option, nperfile=)

Issue #5 resolved
Stewart Boogert created an issue

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)

  1. Jochem Snuverink

    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?

  2. Jochem Snuverink

    ok implemented it like that, nperfile is not necessary to set. please close if you are happy with this solution

  3. Log in to comment