vallenae.io.HitRecord

class vallenae.io.HitRecord(time: float, channel: int, param_id: int, amplitude: float, duration: float, energy: float, rms: float, set_id: Optional[int] = None, threshold: Optional[float] = None, rise_time: Optional[float] = None, signal_strength: Optional[float] = None, counts: Optional[int] = None, trai: Optional[int] = None, cascade_hits: Optional[int] = None, cascade_counts: Optional[int] = None, cascade_energy: Optional[int] = None, cascade_signal_strength: Optional[int] = None)[source]

Hit record in pridb (SetType = 2).

Attributes

amplitude

Peak amplitude in volts

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

disable=line-too-long

channel

Channel number

counts

Number of positive threshold crossings

duration

Hit duration in seconds

energy

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

param_id

Parameter ID of table ae_params for ADC value conversion

rise_time

Rise time in seconds

rms

RMS of the noise before the hit in volts

set_id

Unique identifier for data set in pridb

signal_strength

Signal strength in nVs (1e-9 Vs)

threshold

Threshold amplitude in volts

time

Time in seconds

trai

Transient recorder index (foreign key between pridb and tradb)

Methods

__init__()

Initialize self.

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.