GETTING STARTED

Up to Menu

 

Prepare the working directory.

 

Start an interactive session of ROOT.

 Clic on the ROOT icon and go to the working directory (workdir) by typing on the Root prompt:

root>gSystem->cd("workdir")

 or open a terminal window, go to the working directory and type:

>root

 

Run RootProf

Start the RootProf GUI by typing on the ROOT promp:

root> .x RootProfGui.C

than use the RootProf GUI to generate the command file and run RootProf. The text output will appear on the root terminal window, while plots will appear in graphical windows on your terminal.

If you don't want to use the GUI, you should first write a command file (fileInput) by using as a reference the User Guide,  and then run RootProf by typing on the ROOT promp:

root> .x RootProf_v15.C("fileInput")

 If you want to put the output text into the file outputFile, type:

root> .> outputFile

 .x RootProf_v15.C("fileInput")

 .>

You can end the ROOT session with the command

 root> .q

You should always quit the ROOT session before running again RootProf.

You can even run RootProf in batch mode, by using the command:

root.exe -l -b -q 'RootProf_v15.C("fileInput")'

In this case, the graphical output will not appear on the terminal, but it can be saved in figures by adding the command savefig 2 or savefig 3 in fileInput.

 

Analyze results

A number of windows will appear on your screen during execution. When the RootProf execution ends (the control is returned to the root prompt), you can edit each window, by resizing it, by zooming selected ranges into the histograms, by changing the drawing options, by inserting labels etc.  Click the right button of your mouse to see all available edit options. You can export each window in image (ps, png, gif) or script (C) formats. When saved in C format, the file can be run again from root, by typing:

root>.x <NameFile>.C

and the window with the original histogram will appear again on your screen, ready to be newly edited. You can also edit the outputFile to analyze results in text format.

 

Demo

 Demo files are provided together with the RootProf program files. They are in the directory named DemoFiles, and include command files (files starting with fileInput...) and data files. The simplest demo is called fileInputFirstSight. Just type:

root>.x RootProf_v15.C("fileInputFirstSight")

to start the demo run and generate results.

 

GOOD LUCK!

Up to Menu