vallenae.io.HitRecord
- class vallenae.io.HitRecord(time: float, channel: int, param_id: int, amplitude: float, duration: float, energy: float, rms: float, set_id: int | None = None, threshold: float | None = None, rise_time: float | None = None, signal_strength: float | None = None, counts: int | None = None, trai: int | None = None, cascade_hits: int | None = None, cascade_counts: int | None = None, cascade_energy: int | None = None, cascade_signal_strength: int | None = None)[source]
Hit record in pridb (SetType = 2).
Attributes
Peak amplitude in volts
Summed counts of hits in the same hit-cascade
Summed energy of hits in the same hit-cascade
Total number of hits in the same hit-cascade
Summed signal strength of hits in the same hit-cascade # noqa
Channel number
Number of positive threshold crossings
Hit duration in seconds
Energy (EN 1330-9) in eu (1e-14 V²s)
Parameter ID of table ae_params for ADC value conversion
Rise time in seconds
RMS of the noise before the hit in volts
Unique identifier for data set in pridb
Signal strength in nVs (1e-9 Vs)
Threshold amplitude in volts
Time in seconds
Transient recorder index (foreign key between pridb and tradb)
Methods
__init__
()count
(value, /)Return number of occurrences of value.
from_sql
(row)Create
HitRecord
from SQL row.index
(value[, start, stop])Return first index of value.