setenv ROOTSYS /afs/cern.ch/sw/lcg/external/root/5.18.00/slc4_amd64_gcc34/root
setenv PATH $ROOTSYS/bin:$PATH

if (! -d $ROOTSYS ) then
  echo "Warning: ROOTSYS directory $ROOTSYS not found"
endif

if ($?LD_LIBRARY_PATH) then
  setenv LD_LIBRARY_PATH $ROOTSYS/lib:$LD_LIBRARY_PATH
else
  setenv LD_LIBRARY_PATH $ROOTSYS/lib
endif

echo "ROOT set up with ROOTSYS=$ROOTSYS"
