Difference between revisions of "ROOT Analyzer/Compiling"

From HallCWiki
Jump to navigationJump to search
(Remove need for Hall C specific ROOT build)
Line 16: Line 16:
 
(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 <tt>src</tt> directory, the Hall A code is in the <tt>podd</tt> directory.  See [[Analyzer/Git]] if it is not.
 
(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 <tt>src</tt> directory, the Hall A code is in the <tt>podd</tt> directory.  See [[Analyzer/Git]] if it is not.
  
To compile the analyzer, type
+
The analyzer may be compiled with either the traditional "make" utility, or with SCons, a new utility which allows additional auto-configuration abilities.  To use "make", simply type:
  
 
   make
 
   make
 +
 +
To use SCons, type:
 +
 +
  scons
  
 
This should build the Hall A libraries and the Hall C analyzer <tt>hcana</tt>.  
 
This should build the Hall A libraries and the Hall C analyzer <tt>hcana</tt>.  
  
 
See [[Analyzer/Running]] for instructions to run the analyzer.
 
See [[Analyzer/Running]] for instructions to run the analyzer.

Revision as of 14:57, 12 November 2013

The new Hall C analyzer, hcana, based on the Hall A analyzer is available and may be retrieved with git, see ROOT Analyzer/Git.

The only prerequisite, beyond what should normally be installed on a system, is root, version 5.32 or later. On the JLab CUE systems, root may be setup by typing (or putting in your login script):

 setup root

Note: Previous instructions used a version of root in /group/hallc/root. As the default version of root in /apps is sufficient, this group disk version is no longer needed. References to it should be removed from your .login and .cshrc files.

On your own system, install root somehow.

Before compiling, go to the directory where the code is and setup the environment for hcana 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.

The analyzer may be compiled with either the traditional "make" utility, or with SCons, a new utility which allows additional auto-configuration abilities. To use "make", simply type:

 make

To use SCons, type:

 scons

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

See Analyzer/Running for instructions to run the analyzer.