Setup notes for sample C++ programs using ROOT classes To get the C++ example programs on this site, you can download the compressed tarball file, e.g., mc.tar.gz, tmva.tar.gz, etc., to your work directory, then unpack with e.g. gunzip mc.tar.gz tar -xvf mc.tar This will produce the subdirectory mc (or whatever) and place into it all of the required files. To build and run any of the C++ programs on this site you need to have ROOT set up on your machine. The basic info on how to do this can be found from root.cern.ch, for example, see http://root.cern.ch/drupal/content/development-version-52704 for info on setting up Version 5.27/04. For example, at CERN on lxplus under bash you type: . /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5/setup.sh . /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.04/x86_64-slc5-gcc43-opt/root/bin/thisroot.sh or if you are using (t)csh, you say: source /afs/cern.ch/sw/lcg/external/gcc/4.3/x86_64-slc5/setup.csh source /afs/cern.ch/sw/lcg/app/releases/ROOT/5.27.04/x86_64-slc5-gcc43-opt/root/bin/thisroot.csh This sets up root and defines the environment variable ROOTSYS. After doing this you should be able to download the source code and GNUmakefile in any of the subdirectories and then type gmake to build the executable program. G. Cowan 9.8.10