How can I make a histogram with a .csv file?

Hello,

I’m new to ROOT, and was hoping that someone could help me out. My goal is to be able to create a histogram from data stored in a .csv file. But I don’t know how to convert a .csv file to a .txt or .dat file.

Does anyone know how to do this using ROOT?

Thanks!

Try

auto tree = TTree::ReadFile(filename,"x:y:z");
tree->Draw("x");

Cheers,
Philippe.