Skip to content

Commit

Permalink
avoid downloading several times the cluster input file
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado committed Oct 15, 2024
1 parent 64a3e8f commit 815ea4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DCHdigi/test/test_DCHdigi/test_DCHdigi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ddsim --steeringFile sim_steering.py --outputFile 'dch_proton_10GeV.root' -N 10

# download file for cluster counting technique
ifilename="https://fccsw.web.cern.ch/fccsw/filesForSimDigiReco/IDEA/DataAlgFORGEANT.root"
wget $ifilename
# -nc, --no-clobber: skip downloads that would download to existing files
wget --no-clobber $ifilename

# Check if the input file exists
if [[ ! -f "$(basename $ifilename)" ]]; then
Expand Down

0 comments on commit 815ea4c

Please sign in to comment.