I was trying to run the readily available macros in the Tutorial directory in Root and I edited the code and made some changes and its not running , now I dont understand the code and dont know how to get that original macro back.
Download the “pre-compiled binary distribution” for your ROOT version for any available operating system (a “.tar.gz” or “.zip” file). They all include the “tutorials” subdirectory (so you can easily extract it).
BTW. You do not need to work in the original “Tutorial directory in Root”. Just make a copy of them to some working directory (so that the originals will not be modified).
Welcome to the ROOT forum.
The tutorials are also visible online in the ROOT reference guide:
You can also copy/paste the tutorial you modified from there.