TH3F from ASCII file

Thank you @couet. In the past I used the Tgraph like this

 TMultiGraph *mg = new TMultiGraph();
   TGraphErrors *gamma = new TGraphErrors(data,"%lg %lg %lg %lg");

but I never filled histograms…

I was looking to find something…I found, for example this topic Histogram from a text file but I don’t understand how to adapt it to my need…

I was trying to write a macro but I don’t know how to finish it

scorelemma.cpp (5.0 KB)

I hope you can help me to finish it…