Root macro to retrieve and copy in a csv file the number of photo-electrons from a root file

Thank you so much for your response dastudillo!

While I’m reading the dataframes info you suggested, here is the error I obtain when running your code: