AIDASoft / DD4hep

Detector Description Toolkit for High Energy Physics
http://dd4hep.cern.ch
GNU Lesser General Public License v3.0
47 stars 93 forks source link

[ddsim] Nicely abort instead of segfault when the argument of --inputFiles does not exist #1246

Closed BrieucF closed 4 months ago

BrieucF commented 4 months ago

Would it be possible to check that the files provided to ddsim with --inputFiles exist and nicely abort in case one of them can not be found? Currently it builds the geometry (which can be long) and then segfaults which confuses a lot of people.

Reproducer:

source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
ddsim -I non_existing_file.stdhep -N 10 -O dummy.root --compactFile $K4GEO/FCCee/CLD/compact/CLD_o2_v05/CLD_o2_v05.xml
andresailer commented 4 months ago

Thanks for pointing out this pain-point!