Skip to content

breaking: EventInfo member pointers#820

Open
luketpickering wants to merge 1 commit intodevelopfrom
feature/EventInfoRemovePointers
Open

breaking: EventInfo member pointers#820
luketpickering wants to merge 1 commit intodevelopfrom
feature/EventInfoRemovePointers

Conversation

@luketpickering
Copy link
Contributor

@luketpickering luketpickering commented Mar 5, 2026

EventInfo data members were mostly pointers. It is clear that for reconstructed or some true quantities, using pointers to experiment-subclass owned memory allows the subclasses to make systematic variations without negotiation with the base class, but the data members in EventInfo should never change.

Changed the following data members from pointers to instances of the relevant primitive type: Target, Mode, nupdg, nupdgUnosc, enu_true, coszenith_true

  • also rename rw_etru -> enu_true and rw_truecz -> coszenith_true for clarity
  • also changed the type of Mode from double (?) to int
  • also tidy some odd iterator indirection syntax

Action Required:

  • Experiment SampleHandlerFD subclasses will need to update their SetupFDMC implementation to set values and not pointers.

- also tidy some odd iterator indirection syntax
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Hi @luketpickering, thank you for contributing to MaCh3! Please wait for MaCh3 developers to review your PR. If no one answers within a week, please message people from this list: https://github.com/orgs/mach3-software/teams/mach3admin . While waiting, please enjoy this

meme

Use this action on your projects. Use jokes on issues instead.

@luketpickering luketpickering changed the title break:EventInfo member pointers breaking:EventInfo member pointers Mar 5, 2026
@luketpickering luketpickering added this to the v2.6 milestone Mar 5, 2026
@luketpickering luketpickering changed the title breaking:EventInfo member pointers breaking: EventInfo member pointers Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant