diff --git a/macros/CCEScan/batch/base.sh b/macros/CCEScan/batch/base.sh index 64ce724..7c6edec 100644 --- a/macros/CCEScan/batch/base.sh +++ b/macros/CCEScan/batch/base.sh @@ -1,26 +1,44 @@ #!/bin/bash - - - -source /home/hep/matzeni/.bashrc +source /home/hep/egraveri/.bashrc export LHCBSTYLE=1 -export CCEHOME=/home/hep/matzeni/STAging/ +# export DISK=/disk/data1/hep/elena export DISK=/disk/data12/lhcb/STAgeingData - - - +export CCEHOME=/home/hep/egraveri/STAging + +# restart_root(){ +# if [[ -f /etc/SuSE-release ]]; then +# CERN=/app/cern +# #ROOTSYS=$CERN/root_v5.34.25/root +# #ROOTSYS=$CERN/root_v6.06.00/root-6.06.00 +# #ROOTSYS=$CERN/root_v6.02.10/root-6.02.10 +# ROOTSYS=$CERN/root_v6.08.06 +# PATH=$PATH:$ROOTSYS/bin +# export PATH=$PATH:$ROOTSYS/bin +# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib +# export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH +# export PYTHONPATH=$PYTHONPATH:$ROOTSYS/lib +# else +# ROOTSYS=/cvmfs/lhcb.cern.ch/lib/lcg/app/releases/ROOT/5.34.10/x86_64-slc6-gcc48-opt/root +# PATH=$PATH:$ROOTSYS/bin +# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib +# cd $ROOTSYS +# source $ROOTSYS/bin/thisroot.sh +# cd - > /dev/null +# fi +# } + restart_root(){ # if [[ -f /etc/SuSE-release ]]; then - CERN=/app/cern - #ROOTSYS=$CERN/root_v5.34.34/root - ROOTSYS=$CERN/root_v6.08.06 - #ROOTSYS=$CERN/root_v6.02.10/root-6.02.10 - PATH=$PATH:$ROOTSYS/bin - LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib - export ROOTSYS=$CERN/root_v6.08.06 - export PATH=$PATH:$ROOTSYS/bin - export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH - export PYTHONPATH=$PYTHONPATH:$ROOTSYS/lib + CERN=/app/cern + #ROOTSYS=$CERN/root_v5.34.34/root + ROOTSYS=$CERN/root_v6.08.06 + #ROOTSYS=$CERN/root_v6.02.10/root-6.02.10 + PATH=$PATH:$ROOTSYS/bin + LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib + export ROOTSYS=$CERN/root_v6.08.06 + export PATH=$PATH:$ROOTSYS/bin + export LD_LIBRARY_PATH=$ROOTSYS/lib:$PYTHONDIR/lib:$LD_LIBRARY_PATH + export PYTHONPATH=$PYTHONPATH:$ROOTSYS/lib # else # ROOTSYS=/cvmfs/lhcb.cern.ch/lib/lcg/app/releases/ROOT/5.34.10/x86_64-slc6-gcc48-opt/root # PATH=$PATH:$ROOTSYS/bin @@ -30,4 +48,5 @@ # cd - > /dev/null # fi } + restart_root