@@ -35,8 +35,13 @@ class ParticleBase:
35
35
Semantic type (shower (0), track (1), Michel (2), delta (3),
36
36
low energy scatter (4)) of this particle
37
37
pid : int
38
- Particle spcies (Photon (0), Electron (1), Muon (2), Charged Pion (3),
39
- Proton (4)) of this particle
38
+ Particle species (Photon (0), Electron (1), Muon (2), Charged Pion (3),
39
+ Proton (4), Kaon (5)) of this particle
40
+ chi2_pid : int
41
+ Particle species as predicted by the chi2 template method (Muon (2),
42
+ Charged Pion (3), Proton (4), Kaon (5)) of this particle
43
+ chi2_per_pid : np.ndarray
44
+ (P) Array of chi2 values associated with each particle class
40
45
pdg_code : int
41
46
PDG code corresponding to the PID number
42
47
is_primary : bool
@@ -61,11 +66,11 @@ class ParticleBase:
61
66
csda_ke : float
62
67
Kinetic energy reconstructed from the particle range in MeV
63
68
csda_ke_per_pid : np.ndarray
64
- Same as `csda_ke` but for every available track PID hypothesis
69
+ (P) Same as `csda_ke` but for every available track PID hypothesis
65
70
mcs_ke : float
66
71
Kinetic energy reconstructed using the MCS method in MeV
67
72
mcs_ke_per_pid : np.ndarray
68
- Same as `mcs_ke` but for every available track PID hypothesis
73
+ (P) Same as `mcs_ke` but for every available track PID hypothesis
69
74
momentum : np.ndarray
70
75
3-momentum of the particle at the production point in MeV/c
71
76
p : float
@@ -80,6 +85,8 @@ class ParticleBase:
80
85
interaction_id : int = - 1
81
86
shape : int = - 1
82
87
pid : int = - 1
88
+ chi2_pid : int = - 1
89
+ chi2_per_pid : np .ndarray = None
83
90
pdg_code : int = - 1
84
91
is_primary : bool = False
85
92
length : float = - 1.
@@ -102,6 +109,7 @@ class ParticleBase:
102
109
_fixed_length_attrs = (
103
110
('start_point' , 3 ), ('end_point' , 3 ), ('start_dir' , 3 ),
104
111
('end_dir' , 3 ), ('momentum' , 3 ),
112
+ ('chi2_per_pid' , len (PID_LABELS ) - 1 ),
105
113
('csda_ke_per_pid' , len (PID_LABELS ) - 1 ),
106
114
('mcs_ke_per_pid' , len (PID_LABELS ) - 1 )
107
115
)
@@ -197,7 +205,7 @@ class RecoParticle(ParticleBase, RecoBase):
197
205
Attributes
198
206
----------
199
207
pid_scores : np.ndarray
200
- (P) Array of softmax scores associated with each of particle class
208
+ (P) Array of softmax scores associated with each particle class
201
209
primary_scores : np.ndarray
202
210
(2) Array of softmax scores associated with secondary and primary
203
211
ppn_ids : np.ndarray
@@ -411,7 +419,13 @@ class TruthParticle(Particle, ParticleBase, TruthBase):
411
419
Attributes
412
420
----------
413
421
orig_interaction_id : int
414
- Unaltered index of the interaction in the original MC paricle list
422
+ Unaltered index of the interaction in the original MC particle list
423
+ orig_parent_id : int
424
+ Unaltered index of the particle parent in the original MC particle list
425
+ orig_group_id : int
426
+ Unaltered index of the particle group in the original MC particle list
427
+ orig_children_id : np.ndarray
428
+ Unaltered list of the particle children in the original MC particle list
415
429
children_counts : np.ndarray
416
430
(P) Number of truth child particle of each shape
417
431
reco_length : float
@@ -427,6 +441,9 @@ class TruthParticle(Particle, ParticleBase, TruthBase):
427
441
Best-guess reconstructed momentum of the particle
428
442
"""
429
443
orig_interaction_id : int = - 1
444
+ orig_parent_id : int = - 1
445
+ orig_group_id : int = - 1
446
+ orig_children_id : np .ndarray = - 1
430
447
children_counts : np .ndarray = None
431
448
reco_length : float = - 1.
432
449
reco_start_dir : np .ndarray = None
@@ -443,7 +460,7 @@ class TruthParticle(Particle, ParticleBase, TruthBase):
443
460
444
461
# Variable-length attributes
445
462
_var_length_attrs = (
446
- ('children_counts' , np .int32 ),
463
+ ('orig_children_id' , np . int64 ), ( ' children_counts' , np .int32 ),
447
464
* TruthBase ._var_length_attrs ,
448
465
* ParticleBase ._var_length_attrs ,
449
466
* Particle ._var_length_attrs
0 commit comments