ASCII Output

The ascii format writes simulation data as structured plain text. It is intended for inspection and debugging: every bank boundary, header field, and hit variable appears on its own labeled line.


Configuration

gstreamer:
  - format: ascii
    filename: myrun

Produces one .txt file per worker thread:

myrun_t0.txt   myrun_t1.txt   myrun_t2.txt   ...

Run-level outputs (such as dosimeter) produce a single file:

myrun.txt


File structure

The file follows the event publish sequence. A typical event record looks like:

--- Event 0 ---
  Event header: event 0 timestamp 2024-01-01T00:00:00 thread 0
  --- generated bank ---
    pid: 11  px: 0  py: 0  pz: 4000
  --- true info: dc ---
    pid: 11  tid: 1  trackE: 3998.2  avgx: 12.4  avgy: -3.1  avgz: 310.0  ...
  --- digitized: dc ---
    sector: 1  layer: 3  wire: 42  doca: 0.132  time: 287.4
--- End event 0 ---

Run-level records are emitted once at the end of the run:

--- Run 11 ---
  --- run digitized: dosimeter ---
    region: 1  edep: 1.24e-04  dose: 8.71e-11
--- End run 11 ---

Frame records (stream type) are written in a similar bracketed style showing the frame header followed by the integral payload values.


When to use ASCII

For analysis workflows, prefer csv or root which are more compact and directly loadable.