Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to rest-for-physics/framework#260.
Adds reference to the event on each track on event initialization. This way we can access event information (and thus metadata) from the tracks, allowing to get information about volume / process names for print. This would also allow to do things such as access parent track from inside the child track itself, which can simplify some analysis logic.
The way this is setup is that these references are initialized on event load, requiring a loop over all tracks. In principle the added overhead should be small but if we notice it's too big the logic could be improved. The reason this reference update logic is not inside the track getter for the event, its because it would make this method no longer
const
, which I think it should be.