Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -30,49 +30,55 @@
|
||||
// P. Arce, June-2014 Conversion neutron_hp to particle_hp
|
||||
//
|
||||
#include "G4ParticleHPDInelasticFS.hh"
|
||||
#include "G4Nucleus.hh"
|
||||
|
||||
#include "G4Deuteron.hh"
|
||||
#include "G4Nucleus.hh"
|
||||
#include "G4PhysicsModelCatalog.hh"
|
||||
|
||||
G4ParticleHPDInelasticFS::G4ParticleHPDInelasticFS()
|
||||
{
|
||||
secID = G4PhysicsModelCatalog::GetModelID( "model_G4ParticleHPDInelasticFS_F24" );
|
||||
secID = G4PhysicsModelCatalog::GetModelID("model_G4ParticleHPDInelasticFS_F24");
|
||||
}
|
||||
|
||||
void G4ParticleHPDInelasticFS::Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String & aFSType, G4ParticleDefinition* projectile)
|
||||
void G4ParticleHPDInelasticFS::Init(G4double A, G4double Z, G4int M, G4String& dirName,
|
||||
G4String& aFSType, G4ParticleDefinition* projectile)
|
||||
{
|
||||
G4ParticleHPInelasticCompFS::Init(A, Z, M, dirName, aFSType, projectile);
|
||||
G4double ResidualA = 0;
|
||||
G4double ResidualZ = 0;
|
||||
if( projectile == G4Neutron::Neutron() ) {
|
||||
ResidualA = A-1;
|
||||
ResidualZ = Z-1;
|
||||
} else if( projectile == G4Proton::Proton() ) {
|
||||
ResidualA = A-1;
|
||||
ResidualZ = Z;
|
||||
} else if( projectile == G4Deuteron::Deuteron() ) {
|
||||
ResidualA = A;
|
||||
ResidualZ = Z;
|
||||
} else if( projectile == G4Triton::Triton() ) {
|
||||
ResidualA = A+1;
|
||||
ResidualZ = Z;
|
||||
} else if( projectile == G4He3::He3() ) {
|
||||
ResidualA = A+1;
|
||||
ResidualZ = Z+1;
|
||||
} else if( projectile == G4Alpha::Alpha() ) {
|
||||
ResidualA = A+2;
|
||||
ResidualZ = Z+1;
|
||||
}
|
||||
G4ParticleHPInelasticCompFS::Init(A, Z, M, dirName, aFSType, projectile);
|
||||
G4double ResidualA = 0;
|
||||
G4double ResidualZ = 0;
|
||||
if (projectile == G4Neutron::Neutron()) {
|
||||
ResidualA = A - 1;
|
||||
ResidualZ = Z - 1;
|
||||
}
|
||||
else if (projectile == G4Proton::Proton()) {
|
||||
ResidualA = A - 1;
|
||||
ResidualZ = Z;
|
||||
}
|
||||
else if (projectile == G4Deuteron::Deuteron()) {
|
||||
ResidualA = A;
|
||||
ResidualZ = Z;
|
||||
}
|
||||
else if (projectile == G4Triton::Triton()) {
|
||||
ResidualA = A + 1;
|
||||
ResidualZ = Z;
|
||||
}
|
||||
else if (projectile == G4He3::He3()) {
|
||||
ResidualA = A + 1;
|
||||
ResidualZ = Z + 1;
|
||||
}
|
||||
else if (projectile == G4Alpha::Alpha()) {
|
||||
ResidualA = A + 2;
|
||||
ResidualZ = Z + 1;
|
||||
}
|
||||
|
||||
G4ParticleHPInelasticCompFS::InitGammas(ResidualA, ResidualZ);
|
||||
G4ParticleHPInelasticCompFS::InitGammas(ResidualA, ResidualZ);
|
||||
}
|
||||
|
||||
G4HadFinalState * G4ParticleHPDInelasticFS::ApplyYourself(const G4HadProjectile & theTrack)
|
||||
G4HadFinalState* G4ParticleHPDInelasticFS::ApplyYourself(const G4HadProjectile& theTrack)
|
||||
{
|
||||
// do the final state
|
||||
G4ParticleHPInelasticCompFS::CompositeApply(theTrack, G4Deuteron::Deuteron());
|
||||
|
||||
// do the final state
|
||||
G4ParticleHPInelasticCompFS::CompositeApply(theTrack, G4Deuteron::Deuteron());
|
||||
|
||||
// return the result
|
||||
return theResult.Get();
|
||||
// return the result
|
||||
return theResult.Get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user