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

decay_evtgen segfault due to genr8 particle ID guidance for eta' #297

Open
mashephe opened this issue Oct 6, 2023 · 0 comments
Open

decay_evtgen segfault due to genr8 particle ID guidance for eta' #297

mashephe opened this issue Oct 6, 2023 · 0 comments

Comments

@mashephe
Copy link
Contributor

mashephe commented Oct 6, 2023

At the bottom of most template .input files for genr8 there is a block of lines that say:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% extra constants not defined by GEANT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Rho0 = 57,
% RhoPlus = 58,
% RhoMinus = 59,
% omega = 60,
% EtaPrime = 61,
% phiMeson = 62

However, if you use the id 61 for eta', then what gets written ultimately to the HDDM file after conversion is a Lithium-6 nucleus instead of an EtaPrime. This will cause a segfault in decay_evtgen if one tries to use it to decay the HDDM file.

The solution is to change the EtaPrime particle id to 35.

It would be helpful if decay_evtgen handled this a little more gracefully. That guidance posted above has likely proliferated everywhere.

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

No branches or pull requests

1 participant