Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-22 23:30:01

0001 #!/bin/bash
0002 
0003 ###########################################################################################################
0004 # Setup environments
0005 ###########################################################################################################
0006 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
0007 source $DIR/code/rooutil/thisrooutil.sh
0008 
0009 ARCH=$(uname -m)
0010 if [ -z ${CMSSW_SEARCH_PATH+x} ]; then
0011   if [ -z ${FORCED_CMSSW_VERSION+x} ]; then
0012     export CMSSW_VERSION=CMSSW_14_2_0_pre4
0013   else
0014     export CMSSW_VERSION=$FORCED_CMSSW_VERSION
0015   fi
0016 
0017   source /cvmfs/cms.cern.ch/cmsset_default.sh
0018   CMSSW_PATH=$(scram list -c CMSSW | grep -w $CMSSW_VERSION | awk '{print $3}')
0019   cd $CMSSW_PATH
0020   eval `scramv1 runtime -sh`
0021 else
0022   cd $CMSSW_BASE/src
0023 fi
0024 
0025 # Export paths to libraries we need
0026 export ALPAKA_ROOT=$(scram tool info alpaka | grep ALPAKA_BASE | cut -d'=' -f2)
0027 export BOOST_ROOT=$(scram tool info boost | grep BOOST_BASE | cut -d'=' -f2)
0028 export CUDA_HOME=$(scram tool info cuda | grep CUDA_BASE | cut -d'=' -f2)
0029 export FMT_ROOT=$(scram tool info fmt | grep FMT_BASE | cut -d'=' -f2)
0030 export ROCM_ROOT=$(scram tool info rocm | grep ROCM_BASE | cut -d'=' -f2)
0031 export ROOT_ROOT=$(scram tool info root_interface | grep ROOT_INTERFACE_BASE | cut -d'=' -f2)
0032 
0033 cd - > /dev/null
0034 echo "Setup following ROOT. Make sure the appropriate setup file has been run. Otherwise the looper won't compile."
0035 which root
0036 
0037 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
0038 export LD_LIBRARY_PATH=$DIR/LST:$DIR:$LD_LIBRARY_PATH
0039 export PATH=$DIR/bin:$PATH
0040 export PATH=$DIR/efficiency/bin:$PATH
0041 export PATH=$DIR/efficiency/python:$PATH
0042 export TRACKLOOPERDIR=$DIR
0043 export TRACKINGNTUPLEDIR=/data2/segmentlinking/CMSSW_12_2_0_pre2/
0044 export LSTOUTPUTDIR=.
0045 
0046 hostname=$(hostname)
0047 if [[ $hostname == *cornell* ]]; then
0048   export LSTPERFORMANCEWEBDIR="/cdat/tem/${USER}/LSTPerformanceWeb"
0049 else
0050   export LSTPERFORMANCEWEBDIR="/home/users/phchang/public_html/LSTPerformanceWeb"
0051 fi
0052 
0053 ###########################################################################################################
0054 # Validation scripts
0055 ###########################################################################################################
0056 
0057 # List of benchmark efficiencies are set as an environment variable
0058 export LATEST_CPU_BENCHMARK_EFF_MUONGUN="/data2/segmentlinking/muonGun_cpu_efficiencies.root"
0059 export LATEST_CPU_BENCHMARK_EFF_PU200="/data2/segmentlinking/pu200_cpu_efficiencies.root"
0060 #eof