yoda2root: Error in <TFile::mkdir>: An object with name ... exists already
I generated a .yoda file using rivet. Now I want to convert it to a .root file, but I get following error:
$ yoda2root all.yoda
Error in <TFile::mkdir>: An object with name ALICE_2022_FOCAL:MODE=ATLAS exists already
Traceback (most recent call last):
File "/opt/rivet-3.1.5-hepmc2/local/bin/yoda2root", line 61, in <module>
d.WriteTObject(obj, parts[-1])
ReferenceError: attempt to access a null-pointer
Could it be that I have an error in my analysis that produces an ill-formatted .yoda file?
File: all.yoda
Yoda version: 1.9.4
rivet version: 3.1.5
root version: 6.24.06
python version: 3.8.13