Looping over .dat files with several variables and convert them into ROOT files with separate Branches in a single TTree

Hello All,

I have 180 .dat files containing 13 different variables for up to 3000000 events. I would like to convert them into ROOT files with 13 different Branches for each variable. First of all, I have to make a loop to read all the 180 .dat files. Then, I have to convert them into root files and fill the Tree. I already know how to create the Branches and the Tree, but not a specific idea for the loop over the dat files and also how to fill the tree. Any help would be really appreciated.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.