# Source this script to set up the DD4Hep installation that this script is part of.
#
# This script if for the csh like shells, see thisdd4hep.sh for bash like shells.
#
# Author: Pere Mato

set ARGS=($_)
set THIS="`dirname ${ARGS[2]}`"


#----PATH----------------------------------------------------------------------------
if ($?PATH) then
   setenv PATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/bin:$PATH      # Linux, ELF HP-UX
else
   setenv PATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/bin
endif

#----LD_LIBRARY_PATH-----------------------------------------------------------------
if ($?LD_LIBRARY_PATH) then
   setenv LD_LIBRARY_PATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/lib:/lib:$LD_LIBRARY_PATH      # Linux, ELF HP-UX
else
   setenv LD_LIBRARY_PATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/lib:/lib
endif

#----DYLD_LIBRARY_PATH---------------------------------------------------------------
if ($?DYLD_LIBRARY_PATH) then
   setenv DYLD_LIBRARY_PATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/lib:/lib:$DYLD_LIBRARY_PATH  # Mac OS X
else
   setenv DYLD_LIBRARY_PATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/lib:/lib
endif

#----PYTHONPATH---------------------------------------------------------------
if ($?PYTHONPATH) then
   setenv PYTHONPATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/DDCore/python:$PYTHONPATH
else
   setenv PYTHONPATH /opt/ilcsoft/HEAD-2016-12-02/DD4hep/HEAD/DDCore/python
endif
