Hepmc to root now supported

Dear Experts,

I am trying to convert a HepMC file to a ROOT file using the following script: examples/ConvertExample/convert_example.cc · 3.2.1 · HepMC / HepMC3 · GitLab

./convert_example data.hepmc data.root --input-format=hepmc2 --output-format=root(or treeroot)

However, I am encountering the following error:

Output format root is not supported

Could you please provide me with a solution to this?

Best,

Do you see “rootIO” among: HepMC3-config --features
If yes, what do you get from: HepMC3-config --rootIO

Thanks! I was not enabling ROOT when building HepMC3.

P.S. It worked with --output-format=treeroot