totalrecall Change compile flags and output file in run.sh source run.sh ... takes a while source ./parse_to_ttree.sh . This creates a .root Add the .root to plot.cc . Compile with the commented line in the src