[Clas_offline] building your own user_ana using SVN/SCons
Johann Goetz
jgoetz at ucla.edu
Thu Sep 3 09:33:48 EDT 2009
Hi Maurizio (and clas_offline),
I have had some time to think about how to handle user_ana. It boils
down to these commands. Anyone should be able to run these on the ifarm
without any problems. notice I added the tcsh version of the environment
script.
setenv WORKSPACE /work/clas/disk9/${USER}/user_ana_scons_test
mkdir -p ${WORKSPACE}
cd ${WORKSPACE}
setenv CLASTRUNK https://jlabsvn.jlab.org/svnroot/clas/trunk
svn co ${CLASTRUNK}/detector/st
svn co ${CLASTRUNK}/reconstruction/user_ana
svn co ${CLASTRUNK}/reconstruction/ana
svn co ${CLASTRUNK}/reconstruction/recsis
source /group/clas/local/current/scripts/environment.csh
cd ${WORKSPACE}/st
scons prefix=../local install -j8
cd ${WORKSPACE}/user_ana
scons prefix=../local install -j8
cd ${WORKSPACE}/ana
scons prefix=../local install -j8
cd ${WORKSPACE}/recsis
scons prefix=../local install -j8
setenv PATH ${WORKSPACE}/local/bin:${PATH}
Now you should have user_ana in your path. Though it is the clas6-trunk
version. Now you should be able to bring over your changes to these
directories and recompile each library, ending with recsis which
contains the user_ana main program. This time, do the 'scons install
-j8' command because 'prefix' has already been saved in the config file.
If you have any problems with this, let me know. Also, I am open to any
suggestions or changes that would make this easier for everyone.
Of course, this is already on the wiki here:
http://clasweb.jlab.org/wiki/index.php/Building_your_own_user_ana_against_prebuilt_clas_libraries
-Johann
More information about the Clas_offline
mailing list