Skip to content

Output Data Format

Hackee stores experimental data in plain-text, gzip-compressed files organized into a chronological directory hierarchy. All comment and metadata lines begin with a leading hash (#), making the files directly readable by standard analysis tools such as numpy.loadtxt, pandas, or gnuplot.


Directory Hierarchy & Naming Convention

When saving is triggered (manually or automatically at the end of a run), files are written to the configured Folder to Save Data (root) and optionally mirrored to the Data Backup Folder:

<root>/
├── hist/
│   └── YYYY/
│       └── YYYYMMDD/
│           └── HHMMSS.hist.gz
├── rate/
│   └── YYYY/
│       └── YYYYMMDD/
│           └── HHMMSS.rate.gz
└── list/
    └── YYYY/
        └── YYYYMMDD/
            └── HHMMSS.list.gz
  • Timestamp (YYYY, YYYYMMDD, HHMMSS): Derived from the end time (TIME.LAST) of the measurement run in local time.
  • Temporary Buffers: During an active run, counting rates and list-mode events are appended incrementally to ./rate.txt and ./list.txt in the working directory, then compressed into their final .gz destinations upon saving.

1. Energy Histograms (.hist.gz)

Contains the accumulated 15-bit (32768-channel) pulse-height spectra for all active channels, preceded by a comprehensive metadata header.

Header Structure

Key Format / Example Description
Date / eDate YYYYMMDD Start and end dates of the acquisition run.
Begin / End Integer (s) Start and end timestamps in seconds since midnight (HH*3600 + MM*60 + SS).
Treal Float (s) Total elapsed real time of the run.
Tlive Float(s) (s) Accumulated live time per active channel (dead-time corrected).
ModelMCA / Serial String / Int Digitizer model name and serial number.
Active Channels Name (ch) Channel labels and indices (e.g., HPGe (0)).
DPP-PHA Parameters Key, unit : val0 val1 Full dump of all channel-level DPP-PHA register settings and calibration gains (Absolute Gain, keV/ch).
Channels Name0 Name1 Column labels corresponding to the spectrum columns below.

Data Body

  • Rows: Exactly 32768 (2^15) rows, indexed implicitly from ADC channel 0 to 32767.
  • Columns: One integer column per active channel (uint32 counts), formatted as space-separated fixed-width fields (%-5d).

2. Counting Rates (.rate.gz)

Records time-series counting rates evaluated at each Readout Span interval.

Header Structure

# START: Fri Nov 20 13:20:00 2026
# t₀ = 1795169600.123
# time, s    CH0    CH1
  • START: Human-readable local start time.
  • t₀: Unix epoch start timestamp in seconds (14.3f).

Data Body

Each row corresponds to one readout cycle:

Column Format Description
time, s 8.1f Elapsed real time (TIME.REAL) since t₀.
Rate_n, Err_n 6.0f, 3.0f Per-channel counting rate in subrange B (counts / live_t, in s-1) and its statistical uncertainty (sqrt(N) / live_t). Repeated for each active channel.
CRate, CErr 5.0f, 3.0f (Only when Coincidence Mode is enabled) Coincidence event rate and statistical uncertainty.

3. List-Mode Events (.list.gz)

Saved when Save Events is enabled. Records individual accepted events (after dead-time and EXTRAS filtering) grouped by readout cycle.

Header Structure

Begins with # START: <timestamp> followed by the full # Active Channels and DPP-PHA parameter block (identical to the .hist.gz header).

Data Body

Data is partitioned into readout blocks delimited by a timestamp comment line:

# t = 1795169601.250
123456789  14205 0   
123459012  8432  0   
  • Block Header: # t = <unix_timestamp> (14.3f), marking the end of the readout cycle.
  • Event Columns:
    1. TimeTag (<10): 30-bit hardware trigger timestamp in clock ticks (1 tick = 20 ns at 50 MHz).
    2. Energy (<5): 15-bit pulse height (0 .. 32767 LSB).
    3. Extras (<4): 12-bit EXTRAS status word from the digitizer.