STAR Computing | |
Understanding Root Macros | |
Offline computing tutorial | Maintained by G. Van Buren |
A good way to learn how Root runs is to look at a macro and try to follow what's going on. Some macros which have already been written can be found on the BNL computers at:
$STAR/StRoot/macrosI advise some caution in rummaging through the various available macros as you may find many ways to do the same thing, which can become a source of confusion. My recommendation is to study the macro I present below, which was designed with intended instructiveness.
I'll present here an examples macro and discuss what is happening inside. What are important to understand are the basic steps of the chain approach* to data analysis:
* It is not necessary to use a chain, and some of the macros found in the directory indicated forego the chain approach. However, the chain is the STAR Computing-endorsed method for analysis macros.