82 INCL_ERROR(
"Unknown particle pair in Pi-N collision." <<
'\n');
85 G4double deltaEnergy = nucleon->getEnergy()+ pion->getEnergy();
87 nucleon->setType(deltaType);
88 nucleon->setEnergy(deltaEnergy);
90#ifdef INCLXX_IN_GEANT4_MODE
92 nucleon->setParentResonancePDGCode(0);
93 nucleon->setParentResonanceID(0);
94 pion->setParentResonancePDGCode(0);
95 pion->setParentResonanceID(0);
98 ThreeVector deltaMomentum = nucleon->getMomentum() + pion->getMomentum();
99 nucleon->setMomentum(deltaMomentum);
101 const G4double deltaMass = std::sqrt(deltaEnergy*deltaEnergy - deltaMomentum.
mag2());
102 nucleon->setMass(deltaMass);
G4bool isPair(Particle const *const p1, Particle const *const p2, ParticleType t1, ParticleType t2)