I want to traverse hundreds of. Dat files in a directory and save them as. Root files.
Hi @ouyangzb ,
I don’t think you can inject dat files into a TChain (@pcanal can correct me if I’m wrong).
However you can read each dat file into a TTree with TTree::ReadFile or similar, and you can write out each TTree as a root file, in a for loop.
Cheers,
Enrico
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.