Skip to content
Snippets Groups Projects
Commit bc617bd3 authored by Zineb Aly's avatar Zineb Aly
Browse files

adapt fitinf to tests

parent 4c35ec85
No related branches found
No related tags found
1 merge request!8outsource reconstruction data in separate arrays
Pipeline #7889 passed with warnings
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -179,8 +179,8 @@ class OfflineKeys:
'JSTART_NPE_MIP', 'JSTART_NPE_MIP_TOTAL',
'JSTART_LENGTH_METRES', 'JVETO_NPE', 'JVETO_NUMBER_OF_HITS',
'JENERGY_MUON_RANGE_METRES', 'JENERGY_NOISE_LIKELIHOOD',
'JENERGY_NDF', 'JENERGY_NUMBER_OF_HITS'
] # 'JCOPY_Z_M' is the last element, not found in files!
'JENERGY_NDF', 'JENERGY_NUMBER_OF_HITS', 'JCOPY_Z_M'
]
return self._fit_keys
@property
......@@ -600,7 +600,8 @@ class OfflineTracks:
@property
def reco(self):
if self._reco is None:
keys = ", ".join(self._fit_keys)
# the last key is not found in files
keys = ", ".join(self._fit_keys[:-1])
# i[0] is the reco data of the track with the highest likelihood
# 18 is always the position of fit info
fit_data = np.array([i[0] for i in self._values[18] if len(i)!=0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment