######################  IMPORTANT  ######################
export SOFT_HOME=  #PATH TO YOUR "cern" DIRECTORY
######################  IMPORTANT  ######################

export PATH=$SOFT_HOME/bin:$PATH
export LD_LIBRARY_PATH=$SOFT_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH

#G4
source $SOFT_HOME/G4/bin/geant4.sh
export G4UI_USE_TCSH=1
export G4INCLUDE=$SOFT_HOME/G4/include/Geant4
export G4LIB=$SOFT_HOME/G4/lib
PATH=${PATH}:${G4WORKDIR}/bin/${G4SYSTEM}
export PATH
export PATH=${CLHEP_BASE_DIR}/bin:${CLHEP_BASE_DIR}/lib:${PATH}
export LD_LIBRARY_PATH=${CLHEP_BASE_DIR}:${CLHEP_BASE_DIR}/lib:${LD_LIBRARY_PATH}


#CERNLIB
#source /opt/exp_soft/pamela/vmc/cernlib_32/cern_env.sh pro


######################  IMPORTANT  ######################
#ROOT + PAMELA 9th reduction
source $SOFT_HOME/set_pam_env_9.sh  #path to your installation of PAMELA software
                                    #usually the VMC has a dedicated installation
                                    #even if it is not mandatory...
                                    #you can try to replace this with your installation
                                    #if it doesn't work, compile a dedicated installation
                                    #just for the VMC...
######################  IMPORTANT  ######################
#PYTHIA6=${ROOTSYS}/lib
#export PYTHIA6

#PA and PamCut
# to su Pa.
export PAM_PA_USE=no  # put no to not use it
export PAM_PA_INC=$SOFT_HOME/PA/
export PAM_PA_LIB=$SOFT_HOME/PA/

export PAM_CUT=$SOFT_HOME/PamCut
export LD_LIBRARY_PATH=${PAM_CUT}:$LD_LIBRARY_PATH

if [ $PAM_PA_USE = yes ]; then
    LD_LIBRARY_PATH=${PAM_PA_LIB}:$LD_LIBRARY_PATH
fi



# PAMCUTS



if [ $PAM_PA_USE = yes ]; then
    LD_LIBRARY_PATH=${PAM_PA_LIB}:$LD_LIBRARY_PATH
fi



#VMC+VGM
export VGM_INSTALL=${SOFT_HOME}/VGM
export USE_VGM=1
export VGM_SYSTEM=Linux-g++
export LD_LIBRARY_PATH=${SOFT_HOME}/VGM/lib/:${LD_LIBRARY_PATH}

export G4VMC_DIR=${SOFT_HOME}/geant4_vmc
export LD_LIBRARY_PATH=${SOFT_HOME}/G4/lib/:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${SOFT_HOME}/geant4_vmc/lib/tgt_linux/:/usr/X11R6/lib:${LD_LIBRARY_PATH}
export PLATFORM=linux

#PAMVMC
export PAM_VMC=${SOTF_HOME}/../SIM_VMC/PamVMC
export PATH=${PATH}:${PAM_VMC}/bin
export LD_LIBRARY_PATH=${PAM_VMC}/lib/tgt_linux/:${LD_LIBRARY_PATH}


export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
#source /afs/infn.it/ts/project/lcg/external/gcc/gccsel.sh 4.7.0   #on TS farm uncomment this line, it is preferrable to use GCC 4.7 (4.6 would probably work as well)
