Dear ROOT experts,
Does anyone know of an easy way to analyze a standard LHE file with RDataFrame?
The way I used to do it before is to convert LHE files to ROOT with ExRootAnalysis library and then use simple loops over events as suggested in the link above.
- Is it possible to read such root file with RDataFrame?
- Otherwise, do you know of any other tools/code to read LHE files into RDataFrame?
-Andrey
Hi @Andrey_Pozdnyakov ,
I am not aware of any already existing tool.
I think there are two available options – both require a bit of coding:
-
if ExRootAnalysis can read LHE files into ROOT, then you can just dump their contents into a ROOT TTree and then read that with RDataFrame
-
RDataFrame can read arbitrary columnar formats via ad-hoc RDataSource implementations. We have one for CSV files, one for Arrow tables, etc. A LHE RDataSource implementation could be developed and then it could be used to read LHE files in RDataFrame
Cheers,
Enrico