I see that some members from the km3net-dataformat data are not yet implemented in km3io. For example, in the list of methods for class Trk, there's the Trk::status which is not implemented in km3io. By the way, I could only figure this out by inspecting the code and not from the documentation (see issue #79 (closed)).
In this particular case, I see that the member is marked as TODO. Is there a problem with its implementation? I see that for other methods there are some issues related to uproot. I could help to implement this.
Edited
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
On what kind of data would you perform this test? For example, a ROOT file produced by gSeaGen could be OK. The test could simply be to check that the status for particles with ID = "neutrino pdg code" have status = "primary", and that any othher particle is not primary.
In practice doing this is not easy at the moment. If I look at the documentation of KM3NET-dataformat, I see that status is an integer, but I still didn't find there what are the possible values and their meanings. Only by inspecting the code I could see that there some possible values for the status variable are TRK_ST_UNDEFINED, TRK_ST_PRIMARYNEUTRINO, TRK_ST_PRIMARYCOSMIC or TRK_ST_FINALSTATE. But I couldn't find their integer values documented, and these are neither part of km3io.
I opened an issue in km3net dataformat. We then probably need to add these also to km3io, and then add this test.
Everything is there already, see above (#80 (comment 25284)) the tests should just check if the status values and mother IDs are the ones we expect, that's it.
Yeah, what I meant is that to check that the values are what we expect, we need to know what's the meaning of each value. I can work with the list provided by @pkalaczynski above.