pub struct SimpleCentroidExtraction { /* private fields */ }Expand description
Simple centroid extraction using TOT-weighted averages.
- Single hit: Return as-is with super-resolution scaling
- Multi-hit: Compute TOT-weighted centroid
- Representative TOF: Use TOF from hit with highest TOT
- Output scaling: Multiply by
super_resolution_factor
Implementations§
Source§impl SimpleCentroidExtraction
impl SimpleCentroidExtraction
Sourcepub fn with_config(config: ExtractionConfig) -> Self
pub fn with_config(config: ExtractionConfig) -> Self
Create with custom configuration.
Source§impl SimpleCentroidExtraction
impl SimpleCentroidExtraction
Sourcepub fn extract_soa_batch(
&self,
batch: &HitBatch,
num_clusters: usize,
) -> Result<NeutronBatch, ExtractionError>
pub fn extract_soa_batch( &self, batch: &HitBatch, num_clusters: usize, ) -> Result<NeutronBatch, ExtractionError>
Extract neutrons into a NeutronBatch using SoA layout.
§Errors
Returns an error if extraction fails.
Trait Implementations§
Source§impl Clone for SimpleCentroidExtraction
impl Clone for SimpleCentroidExtraction
Source§fn clone(&self) -> SimpleCentroidExtraction
fn clone(&self) -> SimpleCentroidExtraction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleCentroidExtraction
impl Debug for SimpleCentroidExtraction
Source§impl Default for SimpleCentroidExtraction
impl Default for SimpleCentroidExtraction
Source§fn default() -> SimpleCentroidExtraction
fn default() -> SimpleCentroidExtraction
Returns the “default value” for a type. Read more
Source§impl NeutronExtraction for SimpleCentroidExtraction
impl NeutronExtraction for SimpleCentroidExtraction
Source§fn configure(&mut self, config: ExtractionConfig)
fn configure(&mut self, config: ExtractionConfig)
Configure the extraction.
Source§fn config(&self) -> &ExtractionConfig
fn config(&self) -> &ExtractionConfig
Get current configuration.
Source§fn extract_soa(
&self,
batch: &HitBatch,
num_clusters: usize,
) -> Result<Vec<Neutron>, ExtractionError>
fn extract_soa( &self, batch: &HitBatch, num_clusters: usize, ) -> Result<Vec<Neutron>, ExtractionError>
Auto Trait Implementations§
impl Freeze for SimpleCentroidExtraction
impl RefUnwindSafe for SimpleCentroidExtraction
impl Send for SimpleCentroidExtraction
impl Sync for SimpleCentroidExtraction
impl Unpin for SimpleCentroidExtraction
impl UnsafeUnpin for SimpleCentroidExtraction
impl UnwindSafe for SimpleCentroidExtraction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more