Installation instructions for Indiana's AmpTools

From Pwawiki
Jump to navigationJump to search

Notes From Elton Nov 11, 2012

  1. Based on step-by-step instructions from Ryan to the JLab-PWA meeting, the suggested procedure is to download the source from AmpTools web site
  2. Need to add environment variable AMPTOOLS pointing to the new created directory
  3. The correct CLHEP libraries need to be found. For ifarm1101, use /group/halld/Software/builds/clhep/2.0.4.5/Linux_CentOS5-x86_64-gcc4.1.2

Instructions Ryan on Nov 13, 2012

Hi Mark,

Here are some quick instructions to get started with AmpTools at JLab.

1. Check out the latest code from sourceforge:

svn co https://amptools.svn.sourceforge.net/svnroot/amptools

(In general it is better to get a fixed release than to get the working trunk, of course, but the trunk right now contains important changes that aren't in the last release.)

2. Set up these environment variables for AmpTools and the Dalitz tutorial:

setenv AMPTOOLS [full path]/amptools/trunk/AmpTools
setenv DALITZ [full path]/amptools/trunk/Tutorials/Dalitz

3. Set up these environment variables for root and clhep:

setenv ROOTSYS [top ROOT directory]
setenv CLHEP_INCLUDE_DIR [directory of CLHEP header files]
setenv CLHEP_LIB_DIR  [directory of CLHEP libraries]
setenv LD_LIBRARY_PATH $CLHEP_LIB_DIR\:$LD_LIBRARY_PATH

On the JLab machines (jlabl1), I did this:

setup root
setenv CLHEP_INCLUDE_DIR /group/halld/Software/builds/clhep/2.0.4.5/Linux_RHEL5-i686-gcc4.1.2/include
setenv CLHEP_LIB_DIR /group/halld/Software/builds/clhep/2.0.4.5/Linux_RHEL5-i686-gcc4.1.2/lib
setenv LD_LIBRARY_PATH $CLHEP_LIB_DIR\:$LD_LIBRARY_PATH

4. Try to run the Dalitz tutorial:

cd $DALITZ/run
./testfit

Let me know if that doesn't work on the first try and we can fix whatever's broken.

5. You can find some documentation on the Dalitz tutorial (which is more or less up to date) here:

$DALITZ/doc/doc.pdf

If this works ok, I'll send instructions for getting the same tutorial to work on GPU's.

This is all still a work in progress, and we're working on smoothing out some edges before the next release...

Ryan