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#
energy(ionization_potential: float = 3.68) float[source]#

Return the energy of the event in eV.

Warning

This is currently using the ionization energy of Silicon to do the conversion, assuming a detector gain of 1. We will need to do some bookkeeping, here, to make this work reliably.

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, method: str, pitch: float, gamma: float)[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#
method: str#
pitch: float#
gamma: float#
energy(ionization_potential: float = 3.68) float[source]#

Return the energy of the event in eV.

Warning

This is currently using the ionization energy of Silicon to do the conversion, assuming a detector gain of 1. We will need to do some bookkeeping, here, to make this work reliably.

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

Return the reconstructed position of the event.