Skip to content

Decoding Binary Data Files on the DAQ Server

Tom Eichlersmith edited this page Dec 11, 2025 · 3 revisions

There are two kinds of binary data files.

  1. *.raw: written by internal pedestals, decoded with econd-decoder
  2. *.dat: written by Rogue using Run Control, decoded with rogue-decoder.py

How you run these programs depends on which conda environment you are in.

ldmx-env-base

You are using this environment to develop pflib, so I'm assuming you have a build of pflib somewhere.

Running the C++ program can be done from the build

./build/econd-decoder -h

Running the Python rogue decoder needs the PYTHONPATH to be updated.

PYTHONPATH=${PWD}/build ./app/rogue-decoder.py

(I'm open to ideas on how to simplify this.)

Just extracting the raw words without attempting to decode. This can maybe help if there are a lot of warnings from the decoding and you want to make sure its not the decoding's fault.

./app/rogue-extract.py

ldmx-env

The Rogue decoding is installed

rogue-decoder.py -h

or

econd-decoder -h

Clone this wiki locally