attpcdaq.daq.workertasks.WorkerInterface.organize_files

WorkerInterface.organize_files(experiment_name, run_number)[source]

Organize the GRAW files at the end of a run.

This will get a list of the files written in the working directory of the data router and move them to the directory ./experiment_name/run_name, which will be created if necessary. For example, if the experiment_name is “test” and the run_number is 4, the files will be placed in ./test/run_0004.

Parameters:
  • experiment_name (str) – A name for the experiment directory.
  • run_number (int) – The current run number.