Difference between revisions of "Installation instructions for Indiana's AmpTools"

From Pwawiki
Jump to navigationJump to search
(Created page with "<pre> 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.sourcefor...")
 
Line 1: Line 1:
<pre>
 
 
Hi Mark,
 
Hi Mark,
  
 
Here are some quick instructions to get started with AmpTools at JLab.
 
Here are some quick instructions to get started with AmpTools at JLab.
 
  
 
1.  Check out the latest code from sourceforge:
 
1.  Check out the latest code from sourceforge:
  
> svn co https://amptools.svn.sourceforge.net/svnroot/amptools amptools
+
  svn co https://amptools.svn.sourceforge.net/svnroot/amptools 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.)
 
(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:
 
2.  Set up these environment variables for AmpTools and the Dalitz tutorial:
  
> setenv AMPTOOLS [full path]/amptools/trunk/AmpTools
+
  setenv AMPTOOLS [full path]/amptools/trunk/AmpTools
> setenv DALITZ [full path]/amptools/trunk/Tutorials/Dalitz
+
  setenv DALITZ [full path]/amptools/trunk/Tutorials/Dalitz
 
 
  
 
3. Set up these environment variables for root and clhep:
 
3. Set up these environment variables for root and clhep:
  
> setenv ROOTSYS [top ROOT directory]
+
  setenv ROOTSYS [top ROOT directory]
> setenv CLHEP_INCLUDE_DIR [directory of CLHEP header files]
+
  setenv CLHEP_INCLUDE_DIR [directory of CLHEP header files]
> setenv CLHEP_LIB_DIR  [directory of CLHEP libraries]
+
  setenv CLHEP_LIB_DIR  [directory of CLHEP libraries]
> setenv LD_LIBRARY_PATH $CLHEP_LIB_DIR\:$LD_LIBRARY_PATH
+
  setenv LD_LIBRARY_PATH $CLHEP_LIB_DIR\:$LD_LIBRARY_PATH
  
 
On the JLab machines (jlabl1), I did this:
 
On the JLab machines (jlabl1), I did this:
  
> setup root
+
  setup root
> setenv CLHEP_INCLUDE_DIR /group/halld/Software/builds/clhep/2.0.4.5/Linux_RHEL5-i686-gcc4.1.2/include
+
  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 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
+
  setenv LD_LIBRARY_PATH $CLHEP_LIB_DIR\:$LD_LIBRARY_PATH
 
 
  
 
4.  Try to run the Dalitz tutorial:
 
4.  Try to run the Dalitz tutorial:
  
> cd $DALITZ/run
+
  cd $DALITZ/run
> ./testfit
+
  ./testfit
  
 
Let me know if that doesn't work on the first try and we can fix whatever's broken.
 
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:
 
5.  You can find some documentation on the Dalitz tutorial (which is more or less up to date) here:
  
> $DALITZ/doc/doc.pdf
+
  $DALITZ/doc/doc.pdf
  
 
If this works ok, I'll send instructions for getting the same tutorial to work on GPU's.
 
If this works ok, I'll send instructions for getting the same tutorial to work on GPU's.
Line 50: Line 44:
  
 
Ryan
 
Ryan
</pre>
 

Revision as of 09:47, 19 October 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 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