electron_corrector Module
This module defines the correction object used to apply a Garfield correction to a point cloud.
ElectronCorrector
Class which uses a BilinearInterpolator to correct the drift time of electrons
AT-TPC electric field correction for electron drift time
Parameters:
Name | Type | Description | Default |
---|---|---|---|
interp |
BilinearInterpolator
|
The interpolator object |
required |
Attributes:
Name | Type | Description |
---|---|---|
correction |
BilinearInterpolator
|
The interpolator object |
Methods:
Name | Description |
---|---|
ElectronCorrector |
Construct the corrector |
correct_point |
Apply the correction to a point in a point cloud |
Source code in src/spyral/correction/electron_corrector.py
correct_point(point)
Apply the correction to a point in a point cloud
Parameters:
Name | Type | Description | Default |
---|---|---|---|
point |
ndarray
|
The point to be corrected |
required |
Returns:
Type | Description |
---|---|
ndarray
|
The corrected point |
Source code in src/spyral/correction/electron_corrector.py
create_electron_corrector(ecorr_path)
Create an ElectronCorrector
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ecorr_path |
Path
|
The path to the correction grid data |
required |
Returns:
Type | Description |
---|---|
ElectronCorrector
|
The corrector object |