Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 2.09 KB

File metadata and controls

44 lines (28 loc) · 2.09 KB

Standalone run

Standalone run is useful in following schenarios:

  • Running SubTimeFrame building with readout emulators (NO CRU HARDWARE REQUIRED)
  • Replaying recorded (Sub)TimeFrame data for full processing chain (DPL)

Run the chain with the datadist_start_standalone.sh script. For supported options see datadist_start_standalone.sh --help

Emulated readout data run

To use readout.exe as the CRU emulator:

  • Make sure the Readout module is loaded in the environment (or the readout.exe executable exists in the PATH).
  • pass --readout parameter

Replaying recorded (Sub)TimeFrame data and DPL gateway configuration

  • Use --data-source-dir parameter to select the directory with (Sub)TimeFrame files previously recorded with StfBuilder or TfBuilder.
  • Use --dpl-channel parameter to select name of the DPL channel, defined here, e.g. --dpl-channel dpl-stf-channel

FMQDevice channel configuration is in script/rdatadist_standalone_chain.json. If using CRU emulation mode of the readout.exe process, configuration of the emulator is read from readout_cfg/readout_emu.cfg.

StfBuilder component is used to read and inject previously recorded SubTimeFrames or TimeFrames (same file and data structure).

Example: running the chain with emulated data

# adapt the configuration file path!

readout.exe file:///$HOME/alice/sw/slc7_x86-64/DataDistribution/latest/config/readout_emu.cfg
StfBuilder --id stf_builder-0 --transport shmem --detector TPC --dpl-channel-name=dpl-chan --channel-config "name=dpl-chan,type=push,method=bind,address=ipc:///tmp/stf-builder-dpl-pipe-0,transport=shmem,rateLogging=1" --channel-config "name=readout,type=pull,method=connect,address=ipc:///tmp/readout-pipe-0,transport=shmem,rateLogging=1"
o2-dpl-raw-proxy -b --dataspec "B:TPC/RAWDATA" --channel-config "name=readout-proxy,type=pull,method=connect,address=ipc:///tmp/stf-builder-dpl-pipe-0,transport=shmem,rateLogging=1" | o2-dpl-raw-parser -b --input-spec "B:TPC/RAWDATA"

Make sure that only a single instance of the proxy is started.