I am using Roofit and PyROOT, I am currently trying to use the RooDataSet::write function to save my RooDataSet to txt file. This dataset is 2D dataset containing a time-of-flight in ns and an integer number.
Here is schematically what I am doing :
root_file = ROOT.TFile.Open(‘myworkspace.root’)
w = root_file.Get(‘w’)
data = w.data(“ds”)
data.write(“myfile.txt”,)
My problem is that the data in first column is supposed to have 9 decimal places by it is displayed in the text file in scientific notation with only 5 decimals.
Is there a way to make the write function display the full 9 decimals?
@StephanH is there a tweak possible? Exporting workspaces to text files might become more relevant… and steering the export might be useful. Or should we just wait for the future workspace serialization?