get_event Module
Defines the event structure from the GET DAQ data.
GetEvent
Class representing an event in the GET DAQ
Contains traces (GetTraces) from the AT-TPC pad plane.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
raw_data |
ndarray
|
The hdf5 Dataset that contains trace data |
required |
event_number |
int
|
The event number |
required |
params |
GetParameters
|
Configuration parameters controlling the GET signal analysis |
required |
rng |
Generator
|
A random number generator for use with the signal analysis |
required |
Attributes:
Name | Type | Description |
---|---|---|
traces |
list[GetTrace]
|
The pad plane traces from the event |
number |
The event number |
Methods:
Name | Description |
---|---|
GetEvent |
Construct the event and process traces |
is_valid |
Check if the event is valid |
Source code in src/spyral/trace/get_event.py
preprocess_traces(traces, baseline_window_scale)
JIT-ed Method for pre-cleaning the trace data in bulk before doing trace analysis
These methods are more suited to operating on the entire dataset rather than on a trace by trace basis It includes
- Removal of edge effects in traces (first and last time buckets can be noisy)
- Baseline removal via fourier transform method (see J. Bradt thesis, pytpc library)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
traces |
ndarray
|
A (n, 512) matrix where n is the number of traces and each row corresponds to a trace. This should be a copied array, not a reference to an array in an hdf file |
required |
baseline_window_scale |
float
|
The scale of the baseline filter used to perform a moving average over the basline |
required |
Returns:
Type | Description |
---|---|
ndarray
|
A new (n, 512) matrix which contains the traces with their baselines removed and edges smoothed |