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

Check out this thread: