Particle ID
Import the Particle ID tools from spyral_utils.nuclear.particle_id
ParticleID
dataclass
Thin wrapper over spyral-utils Cut2D that attaches a NucleusData
Used to gate on particle groups in Brho and dEdx
Attributes:
Name | Type | Description |
---|---|---|
cut |
Cut2D
|
A spyral-utils Cut2D on brho and dEdx estimated parameters |
nucleus |
NucleusData
|
The nucleus species associated with this ID |
Source code in src/spyral_utils/nuclear/particle_id.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
deserialize_particle_id(path, nuclear_map)
Load a ParticleID from a JSON file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
The path to a JSON file containing a ParticleID |
required |
nuclear_map |
NuclearDataMap
|
An instance of a spyral_utils.nuclear.NuclearDataMap |
required |
Returns:
Type | Description |
---|---|
ParticleID | None
|
The deserialized ParticleID or None on failure |
Source code in src/spyral_utils/nuclear/particle_id.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|