#!/bin/csh
#rat environment
setenv ORIGINAL_SNOPLUS_CVMFS_DIR=$SNOPLUS_CVMFS_DIR
setenv SNOPLUS_CVMFS_DIR=$ORIGINAL_SNOPLUS_CVMFS_DIR``/../sl7/
setenv ROOTSYS $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38
setenv RAT_SCONS $SNOPLUS_CVMFS_DIR/sw/dependencies/scons-3.1.2
source $SNOPLUS_CVMFS_DIR/sw/dependencies/geant4.10.0.p02/bin/geant4.csh
setenv BZIPROOT $SNOPLUS_CVMFS_DIR/sw/dependencies/bzip2-1.0.6
setenv PATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/bin:$SNOPLUS_CVMFS_DIR/sw/dependencies/geant4.10.0.p02/bin:$SNOPLUS_CVMFS_DIR/sw/dependencies/curl-7.26.0/bin:${PATH}
if(${?PYTHONPATH}) then
setenv PYTHONPATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/lib:${PYTHONPATH}
else
setenv PYTHONPATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/lib
endif
if(${?LD_LIBRARY_PATH}) then
setenv LD_LIBRARY_PATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/curl-7.26.0/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/bzip2-1.0.6/lib:${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/curl-7.26.0/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/bzip2-1.0.6/lib
endif
if(${?DYLD_LIBRARY_PATH}) then
setenv DYLD_LIBRARY_PATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/curl-7.26.0/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/bzip2-1.0.6/lib:${DYLD_LIBRARY_PATH}
else
setenv DYLD_LIBRARY_PATH $SNOPLUS_CVMFS_DIR/sw/dependencies/root-5.34.38/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/curl-7.26.0/lib:$SNOPLUS_CVMFS_DIR/sw/dependencies/bzip2-1.0.6/lib
endif
setenv SNOPLUS_CVMFS_DIR=$ORIGINAL_SNOPLUS_CVMFS_DIR
source $SNOPLUS_CVMFS_DIR/sw/7.0.8/rat-7.0.8/env.csh
