Beam Test Desktop Install: ROOT Only
ROOT is normally installed as an external library when installing a BeamtestRelease. Use this procedure when you wish to install ROOT on your desktop as a standalone analysis tool for examining beamtest data.
Notice: The GLAST code has not been released to the public and is for use by members of the LAT Collaboration only! |
To use the Installer (recommended):
Prerequisites
You need to have Java installed prior to using the installer. If you are a VRVS user you should already have Java installed; if not, you can download Java from
java.com.
Procedure
- Set up your install directory (e.g., c:\glast\beamtest).
- Click on: Launch the Installer.
Note: If you experience problems, refer to step 1 of: Glast Software Installer.
- Select the top-level package you are interested in (BeamtestRelease).
- Select the appropriate Version (e.g., v3r0907p0) and Tag.

- Click: Next
- Select your Destination folder and External packages folder.
Note: You must select a Destination folder before proceeding to the next step; however, as noted in the following step, you will not download any files to the Destination folder.

- Deselect (i.e., Clear All) all of the Glast Files in that release.

- Click on the External Files tab.
The Installer automatically checks the libraries installed on your machine for the package and version you selected and, by default, identifies any additional libraries needed. Note the Version of ROOT required for that release (e.g., v5.10.00).
- Deselect (i.e., Clear All) all External Files, then select ROOT.

- Click on the05/22/2008
Note: The installer automatically extracts the Root tree libraries for each code version.
Configure Your Environment
Set USER Environment Variables: Windows
To set up your ROOT environment, create the following User environment variables:
|
User variable |
Value |
|
ROOTSYS |
c:\glast\beamtest\ROOT\v5.10.00\root\ |
|
HOME |
[yourHomeDirectory, e.g., c:\] |
|
PATH |
c:\glast\beamtest\ROOT\v5.10.00\root\bin;
c:\glast\beamtest\ROOT\v5.10.00\root\lib; |
|
TEMP |
C:\Temp |
|
TMPDIR |
C:\Temp |
Set Root Environment Variables: Linux
To configure your Linux environment to use ROOT as an Analysis Tool:
- Create a new environment variable named: ROOTSYS
- Set it equal to the path to your new ROOT installation; for example:
setenv ROOTSYS c:/glast/beamtest/ROOT/v5.10.00/root/
- Add $ROOTSYS/lib to your $LD_LIBRARY_PATH:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${ROOTSYS}/lib
- Add $ROOTSYS/bin to your $PATH:
setenv PATH ${PATH}:${ROOTSYS}/bin
Test ROOT
To determine if ROOT is set up properly:
- From the command window, enter: root

Verify that you have the right version (e.g., 5.10/00).
- To check ROOT environment setting, enter:
TF1 f1("func1", "sin(x)/x", 0, 10)
Then enter:
f1.Draw()
A new plot should be displayed:

- To quit your ROOT session, type: .q
ROOT should exit.
Also See:
Last updated by: Chuck Patterson
05/23/2007 |
|
|