recon — Event reconstruction#

Module documentation#

Reconstruction facilities.

class hexsample.recon.ReconEventBase(trigger_id: int, timestamp: float, livetime: int, cluster: Cluster)[source]#

Descriptor for a reconstructed event.

Arguments#

trigger_idint

The trigger identifier.

timestampfloat

The timestamp (in s) of the event.

livetimeint

The livetime (in us) since the last event.

clusterCluster

The reconstructed cluster for the event.

trigger_id: int#
timestamp: float#
livetime: int#
cluster: Cluster#
adc() int[source]#

Return the total ADC count for the event.

energy() float[source]#

Return the energy of the event in eV.

position() Tuple[float, float][source]#

Return the reconstructed position of the event.

class hexsample.recon.ReconEvent(trigger_id: int, timestamp: float, livetime: int, cluster: Cluster)[source]#

Descriptor for a reconstructed event.

Arguments#

trigger_idint

The trigger identifier.

timestampfloat

The timestamp (in s) of the event.

livetimeint

The livetime (in us) since the last event.

roi_sizeint

The ROI size for the event.

clusterCluster

The reconstructed cluster for the event.

trigger_id: int#
timestamp: float#
livetime: int#
cluster: Cluster#
adc() int[source]#

Return the total ADC counts for the event.

energy() float[source]#

Return the energy of the event in eV.

position() Tuple[float, float][source]#

Return the reconstructed position of the event.