source /home/hep/egraveri/.bashrc
export LHCBSTYLE=1
export DISK=/disk/data1/hep/elena
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.04.00/root-6.04.00
        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
