hardware_id Module
The Spyral definition of a AT-TPC pad
HardwareID
dataclass
Dataclass for AT-TPC pad hardware information
Attributes:
Name | Type | Description |
---|---|---|
pad_id |
int
|
The pad id number |
cobo_id |
int
|
The CoBo id number |
asad_id |
int
|
The AsAd id number |
aget_id |
int
|
The AGET id number |
aget_channel |
int
|
The AGET channel number |
Methods:
Name | Description |
---|---|
__str__ |
Convert the HardwareID to a string |
Source code in src/spyral/core/hardware_id.py
__str__()
Convert the HardwareID to a string
Returns:
Type | Description |
---|---|
str
|
The HardwareID string |
Source code in src/spyral/core/hardware_id.py
generate_electronics_id(hardware)
Get a UUID for a given HardwareID
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hardware |
HardwareID
|
|
required |
Returns:
Type | Description |
---|---|
int
|
a single value UUID |
Source code in src/spyral/core/hardware_id.py
hardware_id_from_array(array)
Convert an array of id numbers to a HardwareID
Typically used with the raw hdf5 data from the AT-TPC merger.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
array |
ndarray
|
An array of hardware id's in the appropriate order |
required |
Returns:
Type | Description |
---|---|
HardwareID
|
The HardwareID object |