hexsample.recon — Event reconstruction#

Module documentation#

Reconstruction facilities.

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

Descriptor for a reconstructed event.

Parameters:
  • trigger_id (int) – The trigger identifier.

  • timestamp (float) – The timestamp (in s) of the event.

  • livetime (int) – The livetime (in us) since the last event.

  • cluster (Cluster) – The reconstructed cluster for the event.

trigger_id: int#
timestamp: float#
livetime: int#
cluster: Cluster#
energy(ionization_potential: float = 3.68) float#

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]#

Return the reconstructed position of the event.

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

Descriptor for a reconstructed event.

Parameters:
  • trigger_id (int) – The trigger identifier.

  • timestamp (float) – The timestamp (in s) of the event.

  • livetime (int) – The livetime (in us) since the last event.

  • roi_size (int) – The ROI size for the event.

  • cluster (Cluster) – The reconstructed cluster for the event.

trigger_id: int#
timestamp: float#
livetime: int#
cluster: Cluster#
energy(ionization_potential: float = 3.68) float#

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]#

Return the reconstructed position of the event.