77#ifdef INCLXX_IN_GEANT4_MODE
79 nucleon->setParentResonancePDGCode(0);
80 nucleon->setParentResonanceID(0);
81 pion->setParentResonancePDGCode(0);
82 pion->setParentResonanceID(0);
86 G4double sh=nucleon->getEnergy()+pion->getEnergy();
89 G4double en=(sh*sh+mn*mn-me*me)/(2*sh);
90 nucleon->setEnergy(en);
91 G4double ee=std::sqrt(en*en-mn*mn+me*me);
97 nucleon->setMomentum(mom_nucleon);
98 pion->setMomentum(-mom_nucleon);
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.