HitRecord

class vallenae.io.HitRecord(time, channel, param_id, amplitude, duration, energy, rms, set_id=None, status=<HitFlags: 0>, threshold=None, rise_time=None, signal_strength=None, counts=None, trai=None, cascade_hits=None, cascade_counts=None, cascade_energy=None, cascade_signal_strength=None)[source]

Hit record in pridb (SetType.HIT).

__init__(time, channel, param_id, amplitude, duration, energy, rms, set_id=None, status=<HitFlags: 0>, threshold=None, rise_time=None, signal_strength=None, counts=None, trai=None, cascade_hits=None, cascade_counts=None, cascade_energy=None, cascade_signal_strength=None)

Methods

__init__(time, channel, param_id, amplitude, ...)

from_sql(row)

Create HitRecord from SQL row.

Attributes

cascade_counts

Summed counts of hits in the same hit-cascade

cascade_energy

Summed energy of hits in the same hit-cascade

cascade_hits

Total number of hits in the same hit-cascade

cascade_signal_strength

Summed signal strength of hits in the same hit-cascade

counts

Number of positive threshold crossings

rise_time

Rise time in seconds

set_id

Unique identifier for data set in pridb

signal_strength

Signal strength in nVs (1e-9 Vs)

status

Status flags

threshold

Threshold amplitude in volts

trai

Transient recorder index (foreign key between pridb and tradb)

time

Time in seconds

channel

Channel number

param_id

Parameter ID of table ae_params for ADC value conversion

amplitude

Peak amplitude in volts

duration

Hit duration in seconds

energy

Energy (EN 1330-9) in eu (1e-14 V²s)

rms

RMS of the noise before the hit in volts

time: float

Time in seconds

channel: int

Channel number

param_id: int

Parameter ID of table ae_params for ADC value conversion

amplitude: float

Peak amplitude in volts

duration: float

Hit duration in seconds

energy: float

Energy (EN 1330-9) in eu (1e-14 V²s)

rms: float

RMS of the noise before the hit in volts

set_id: int | None = None

Unique identifier for data set in pridb

status: HitFlags = 0

Status flags

threshold: float | None = None

Threshold amplitude in volts

rise_time: float | None = None

Rise time in seconds

signal_strength: float | None = None

Signal strength in nVs (1e-9 Vs)

counts: int | None = None

Number of positive threshold crossings

trai: int | None = None

Transient recorder index (foreign key between pridb and tradb)

cascade_hits: int | None = None

Total number of hits in the same hit-cascade

cascade_counts: int | None = None

Summed counts of hits in the same hit-cascade

cascade_energy: int | None = None

Summed energy of hits in the same hit-cascade

cascade_signal_strength: int | None = None

Summed signal strength of hits in the same hit-cascade

classmethod from_sql(row)[source]

Create HitRecord from SQL row.

Parameters:

row (dict[str, Any]) – Dict of column names and values

Return type:

HitRecord