9 Analyzing ROOT output ntuples and files off-line

RunMC allows to analyse the ntuple files (with the extension ``rtup'' and ``htup'') off-line. Just select ``Ntuple HEPEVT'' or ``Ntuple RUNMC'', and load the selected files. Always select only one file. Then, if you want to chain over all ntuples, select this option on RunMC GUI. Do not forget to click ``check ntuple files''. This will show you the list of the files currently selected. All calculations for those files should be done exactly as for real Monte Carlo calculations. (Note that RUNMC ntuple format cannot be used for many calculations since this type of ntuples does not have much information on the event structure).

Once you have the output files, ``project.root'', ``project.rtup'', or ``project.htup", you can analyze the output using ROOT TBrowser. The output files can be analyzed latter, calculating complicated event characteristics off-line. Look at the ``projexampleproj_hepevt'' directory. It contains a demo program which reads ``project.htup'', and prints all values for each event on the screen. Analogously, ``proj/example/proj_runmc'' contains a demo program which reads ``project.rtup'' file. Please read ``README'' in these directories for more details.