Use run number from AliECS as part of the raw data filename when recording with readout.exe

Dear experts,

When we record raw data file on the local disk of the FLPs, we currently use the following lines in the configuration file of readout.exe:

[consumer-rec]
enabled=1
consumerType=fileRecorder
dropEmptyHBFrames=0
fileName=/home/mft/data/data-%T-%i-%l.raw

The raw data filename will then have the timestamp %T in its name.

However, this is not so handy, in particular when we use these filenames to feed scripts to manually run later the decoding workflow for e.g. Is it possible to replace %T by something else that will pick the run number attributed by AliECS instead?

Many thanks in advance for your help.

Best regards,
Andry

Ciao Andry, sorry I don’t come here often.
I am not sure your request was acknowledged … let me check with my colleagues.
Cheers

Hello,

The variable ${O2_RUN} can be used to set the run number in recorded file name (when readout started with AliECS):

fileName=/home/mft/data/data-${O2_RUN}-%i-%l.raw

cheers,
Sylvain

Hi @sy-c and @costaf,

Thanks for providing this precise recipe. I hope to try that this afternoon (I will take short some local recorded data with readout started with AliECS).

Cheers,
Andry

Hi again,

I confirm that the trick from Sylvain worked like a charm.

Cheers,
Andry