Files
geant4/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPN3AInelasticFS.cc
T
2016-06-01 15:25:35 +02:00

34 lines
950 B
C++

// neutron_hp -- source file
// J.P. Wellisch, Nov-1996
// A prototype of the low energy neutron transport model.
//
#include "G4NeutronHPN3AInelasticFS.hh"
#include "G4Nucleus.hh"
#include "G4Alpha.hh"
G4ParticleChange * G4NeutronHPN3AInelasticFS::ApplyYourself(const G4Track & theTrack)
{
// these are the particle types in the final state
G4ParticleDefinition * theDefs[4];
theDefs[0] = G4Neutron::Neutron();
theDefs[1] = G4Alpha::Alpha();
theDefs[2] = G4Alpha::Alpha();
theDefs[3] = G4Alpha::Alpha();
// fill the final state
G4NeutronHPInelasticBaseFS::BaseApply(theTrack, theDefs, 4);
// return the result
return &theResult;
}
void G4NeutronHPN3AInelasticFS::
Init (G4double A, G4double Z, G4String & dirName, G4String & aFSType)
{
G4NeutronHPInelasticBaseFS::Init(A, Z, dirName, aFSType);
G4double ResidualA = A-12;
G4double ResidualZ = Z-6;
G4NeutronHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
}