I ran into a small but annoying problem. In my analysis, I do an intermediate step where I save events after pre-selection using RooDataSet::write method; as they’re quite large and I don’t want to create unnecessary TTrees.
This works fine. However, if I get a lot of events, and want to save the event number, writing the event number with default precision is not enough.
I looked through the documentation, and found no way to access the precision of the ofstream in RooFit write methods. Is there a solution that doesn’t involve overloading write to stream methods?