Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaCh3 Modes for GENIE #363

Open
EdAtkin opened this issue Feb 21, 2025 · 1 comment
Open

MaCh3 Modes for GENIE #363

EdAtkin opened this issue Feb 21, 2025 · 1 comment
Labels
Enhancement New feature or request

Comments

@EdAtkin
Copy link
Contributor

EdAtkin commented Feb 21, 2025

GENIE does not have a 1:1 mode mapping because NC and CC events correspond to the same integer. This breaks the use of the ModeMap in the MaCh3Mode object. We should think about how to incorporate this into the object.

@EdAtkin EdAtkin added the Enhancement New feature or request label Feb 21, 2025
@pjdunne
Copy link
Collaborator

pjdunne commented Feb 21, 2025

So it looks like what we need is to make this not
std::map<int,int>
but
std::map<int,std::vector >
Then if your vector is size 1 all is good. If your vector is size 2 you check iscc

So the existing function can stay but now just returns:
m3mode=ModeMap[Index];
if m3mode.size()>1{throw;};
else(return ModeMap[Index][0])

and the 2D function just goes and checks both the modes that get returned if the vector is length 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants