analysis.algorithms.calorimetry module¶
-
analysis.algorithms.calorimetry.compute_sum_deposited(particle: analysis.classes.Particle.Particle)[source]¶
-
analysis.algorithms.calorimetry.compute_track_length(points, bin_size=17)[source]¶ Compute track length by dividing it into segments and computing a local PCA axis, then summing the local lengths of the segments.
- Parameters
points (np.ndarray) – Shape (N, 3)
bin_size (int, optional) – Size (in voxels) of the segments
- Returns
- Return type
float
-
analysis.algorithms.calorimetry.compute_particle_direction(p: analysis.classes.Particle.Particle, start_segment_radius=17, vertex=None)[source]¶ Given a Particle, compute the start direction. Within start_segment_radius of the start point, find PCA axis and measure direction.
If not start point is found, returns (-1, -1, -1).
- Parameters
p (Particle) –
start_segment_radius (float, optional) –
- Returns
Shape (3,)
- Return type
np.ndarray