File indexing completed on 2024-05-02 05:09:29
0001
0002
0003
0004
0005
0006 echo '#### MC Setup'
0007
0008 workdir=$PWD
0009 scriptdir=$CMSSW_BASE/src/Configuration/PyReleaseValidation/test/test_mc_setup/
0010
0011
0012 conditions=$1
0013 era=$2
0014 hlt=$3
0015 release_hlt=$4
0016 gt_hlt=$5
0017 beamspot=$6
0018
0019 base_dir=$PWD
0020 base_cms=$CMSSW_BASE
0021 base_arch=$SCRAM_ARCH
0022
0023
0024 base_arch_no_gcc=$(echo $SCRAM_ARCH | cut -d "_" -f -2)
0025 if [[ ! ("$CMSSW_VERSION" == $release_hlt) ]]; then
0026 hlt_cmssw_path=$(scram list -c $release_hlt | grep -w $release_hlt | sed 's|.* ||')
0027 echo $hlt_cmssw_path
0028 fi
0029
0030 echo '> GT : ' $conditions
0031 echo '> Era : ' $era
0032 echo '> BS : ' $beamspot
0033 echo '> HLT : ' $hlt
0034 echo '> HLT release : ' $release_hlt
0035 if [[ ! ("$CMSSW_VERSION" == $release_hlt) ]]; then
0036 echo " - at ${hlt_cmssw_path}"
0037 fi
0038 echo '> HLT GT : ' $gt_hlt
0039 if [[ -z "${CMSSW_MC_SETUP_TEST_CATCH_HLT}" ]]; then
0040 echo ' - !! No error catch at HLT - If you want to catch them set !!'
0041 echo ' - !! the environment variable CMSSW_MC_SETUP_TEST_CATCH_HLT !!'
0042 fi
0043 echo '> Working dir : ' $workdir
0044 echo ''
0045
0046
0047
0048 ${scriptdir}/test_MC_setup_gen_sim.sh $CMSSW_VERSION $conditions $era $beamspot
0049
0050 if [ $? -ne 0 ]; then
0051 exit 1;
0052 fi
0053
0054
0055
0056 if [[ ! ("$CMSSW_VERSION" == $release_hlt) ]]; then
0057 cd $hlt_cmssw_path
0058 eval `scram runtime -sh`
0059 cd $workdir
0060 fi
0061
0062 ${scriptdir}/test_MC_setup_hlt.sh $gt_hlt $era $hlt
0063 hlt_result=$?
0064
0065 if [ $hlt_result -ne 0 ] && [[ ! -z "${CMSSW_MC_SETUP_TEST_CATCH_HLT}" ]]; then
0066 exit 1;
0067 elif [ $hlt_result -ne 0 ]; then
0068 echo "!!! HLT failed but ignoring !!!"
0069 exit 0
0070 fi
0071
0072
0073
0074 if [[ ! ("$CMSSW_BASE" == $base_cms) ]]; then
0075 cd $base_cms
0076 eval `scram runtime -sh`
0077 cd $workdir
0078 fi
0079 echo $SCRAM_ARCH
0080 ${scriptdir}/test_MC_setup_reco.sh $release_hlt $conditions $era $hlt
0081
0082 if [ $? -ne 0 ]; then
0083 exit 1;
0084 fi
0085
0086
0087
0088 echo '>>>> Done! <<<<'