SND-LHC / sndsw

SND@LHC experiment framework based on FairShip and FairRoot
6 stars 17 forks source link

run_digiSND.py crashes when given absolute paths to files on EOS #160

Open olantwin opened 1 year ago

olantwin commented 1 year ago

Steps to reproduce:

  1. give a path to e.g. root://eoshome.cern.ch//eos/user/y/yourusername/... (to not use experiment's valuable EOS space
  2. script fails to stat file and crashes.

Expectation: This should work.

Workaround: If both input file and geofile are on the same EOS server, EOSSHIP=root://eoshome.cern.ch/ python ... works, with the EOS path relative to the server's root dir.

ThomasRuf commented 1 year ago

The overall philosophy is to copy the sim file to your working directory together with the geofile, run digitization, copy digi file to wherever.

olantwin commented 1 year ago

But we do support giving relative EOS paths, which are then guessed to be EOSSHIP.

If we don't want to support reading remote files, which TFile.Open can read (and stream) out of the box, we should maybe add a proper error. Debugging this issue is quite annoying, as script claims the file does not exist, while it does.