Skip to content

Commit

Permalink
Merge pull request #46926 from bbilin/CMSSW_14_2_X
Browse files Browse the repository at this point in the history
Update run_generic_tarball_cvmfs.sh to revert temporarily container s…
  • Loading branch information
cmsbuild authored Dec 12, 2024
2 parents 968c40b + c008247 commit 905fcd4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,10 @@ tar -xaf ${path}
# and fallback to /tmp
export TMPDIR=${TMPDIR:-${_CONDOR_SCRATCH_DIR:-/tmp}}

# define singularity
if [ "$use_gridpack_env" != false ]; then
if [ -n "$scram_arch_version" ]; then
sing=$(echo ${scram_arch_version} | sed -E 's/^[^0-9]*([0-9]{1,2}).*/\1/')
elif egrep -q "scram_arch_version=[^$]" runcmsgrid.sh; then
sing=$(grep "scram_arch_version=[^$]" runcmsgrid.sh | sed -E 's/^[^0-9]*([0-9]{1,2}).*/\1/')
fi
if [ -n "${sing}" ]; then
sing="cmssw-el"${sing}" --"
fi
fi


#generate events
${sing} ./runcmsgrid.sh $nevt $rnum $ncpu ${@:5}
./runcmsgrid.sh $nevt $rnum $ncpu ${@:5}

mv cmsgrid_final.lhe $LHEWORKDIR/

Expand Down

0 comments on commit 905fcd4

Please sign in to comment.