65 if ( products != NULL )
70 for (
G4int j = 0; j < int( products->size() ); j++ )
72 G4int jZ = (*products)[j].Z;
73 G4int jA = (*products)[j].A;
82 if ( jZ == iZ + ipZ && jA == iA + ipA ) needResidual =
false;
84 G4ThreeVector dp((*products)[j].px,(*products)[j].py,(*products)[j].pz);
89 if ( jA == 1 && jZ == 1 ) {
93 else if ( jA == 1 && jZ == 0 )
138 G4FragmentVector::iterator it;
140 for (it = products_from_PE->begin(); it != products_from_PE->end(); it++)
142 if ( (*it)->GetZ_asInt() == iZ + ipZ && (*it)->GetA_asInt() == iA + ipA ) needResidual =
false;
144 if ( (*it)->GetParticleDefinition() != NULL ) {
155 delete products_from_PE;
159 if ( needResidual ) {
std::vector< G4Fragment * > G4FragmentVector
CLHEP::Hep3Vector G4ThreeVector
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void Set4Momentum(const G4LorentzVector &momentum)
void SetMomentum(const G4ThreeVector &momentum)
std::vector< G4GIDI_Product > * getCaptureFinalState(double e_in, double temperature, double(*rng)(void *), void *rngState)
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4HadFinalState theParticleChange
static G4IonTable * GetIonTable()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
G4int GetNucleusEncoding(G4int iZ, G4int iA, G4int iM)
G4LENDManager * lend_manager
G4HadFinalState * returnUnchanged(const G4HadProjectile &aTrack, G4HadFinalState *theResult)
G4GIDI_target * get_target_from_map(G4int nuclear_code)
G4double GetTemperature() const
static G4Neutron * Neutron()
const G4Isotope * GetIsotope()
G4int GetAtomicNumber() const
G4int GetAtomicMass() const
void SetICM(G4bool) override
G4FragmentVector * BreakItUp(const G4Fragment &theNucleus)
static G4Proton * Proton()