Error: wrong neuclear mass

I’m getting alot of the error below
G4NucleiProperties::GetNuclearMass: Wrong values for A = 0 and Z = 1

The code Im using is mostly a copy from some old work. I’ve looked around my code but my eyes don’t see the issue. The error occurs when I used a neutron, but disapears when I use a proton as the primary particle.
Does anyone have an idea of what the issue could be?

Below is my PrimaryActionGenerator

cosTheta = 2*G4UniformRand() - 1.;
phi = twopi*G4UniformRand();
sinTheta = std::sqrt(1. - cosTheta*cosTheta);
ux = sinTheta*std::cos(phi);
uy = sinTheta*std::sin(phi);
uz = cosTheta;
G4ParticleDefinition* particle = G4ParticleTable::GetParticleTable()->FindParticle("neutron");

I solved it. Looks like I jumped the gun on posting.
I believed it was a boolean geometry issue, but turns out the issue was that I wasn’t defining my isotope correctly.

Appologies any spent time here.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.