Difference between revisions of "ROOT Analyzer/Compiling"

From HallCWiki
Jump to navigationJump to search
(How to get recent root version on CUE)
Line 6: Line 6:
 
   source /group/hallc/root/bin/thisroot.csh    ! thisroot.sh for bash shell
 
   source /group/hallc/root/bin/thisroot.csh    ! thisroot.sh for bash shell
  
to setup root.  On your own system, install root somehow.
+
to setup root.  If you add it to your ''.cshrc'' login script use:
 +
 
 +
  source /group/hallc/root/bin/thisroot.csh /group/hallc/root/bin
 +
 
 +
On your own system, install root somehow.
  
 
Before compiling, go to the directory where the code is and setup the environment with
 
Before compiling, go to the directory where the code is and setup the environment with

Revision as of 09:16, 19 September 2012

A skeleton Hall C analyzer, based on the Hall A analyzer is available and may be retrieved with Git, see Analyzer/Git.

The only prerequisite, beyond what should normally be installed on a system, is root, preferably version 5.32 or later. The default root on the CUE is version 5.30, so instead use a 5.34 version installed in the Hall C group disk by typing (or putting in your login script):

 source /group/hallc/root/bin/thisroot.csh    ! thisroot.sh for bash shell

to setup root. If you add it to your .cshrc login script use:

 source /group/hallc/root/bin/thisroot.csh /group/hallc/root/bin

On your own system, install root somehow.

Before compiling, go to the directory where the code is and setup the environment with

 source setup.csh

(Or "source setup.sh" if you use bash.) This setup script can be called in your login script. Make sure that in addition to the Hall C code in the src directory, the Hall A code is in the podd directory. See Analyzer/Git if it is not.

To compile the analyzer, type

 make

This should build the Hall A libraries and the Hall C analyzer hcana.

See Analyzer/Running for instructions to run the analyzer.