A Brief Guide to Testbeam 2004 Analysis on CERN Linux

This guide applies to doing testbeam analysis on any CERN Linux machine (including LXPLUS) which is running CERN Linux SLC3. For example, these instructions work great on the Linux machines at the testbeam area (cmsru2 or other machines). Notice that the recommended version of ROOT has changed in early 2005!.

Setting up your environment

To set up your environment, you know what shell you use. To find out, log in to lxplus and type "ps". This command lists the currently running processes. If one of the running processes is "tcsh", you are using tcsh. If one of the running processes is "bash", you are a bash user. If none of the above are true, the following instructions may not work -- please email Jeremy about adding instructions for your shell. Be sure to log out and log back in again after making this change to your .tcshrc!
A bit less strenious way to find your shell is to issue a command: echo $SHELL
If you have only one or two windows open, you can avoid logging out and back in by issuing IN EACH OPEN WINDOW the following command: source ~/.tcshrc or source ~/.bashrc depending on the shell.
D.L. 2003.05.25
After configuring your environment, log out and back in so that the configuration changes can take effect.

Setting up a working directory

I suggest that you will probably want to set up a working directory for test beam analysis. In this description, I will assume that you have chosen to create a working directory called "testbeam04" off of your AFS home directory.
  1. Create the directory: mkdir ~/testbeam04
  2. Make the working directory your current directory: cd ~/testbeam04
  3. Make a link to the shared library for data analysis: ln -s /afs/cern.ch/user/t/tbh2/public/h2_2004/lxplus/libHTBDAQ_Data.so libHTBDAQ_Data.so
  4. Create a rootlogon.C file containing the following lines. (This will load the data library automatically when you start root in this directory.)
    {
       gSystem->Load("libHTBDAQ_Data.so");
    }
    

Useful scripts for analysis


--J. Mans