Import Geant4 11.2.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2023-06-30 09:09:57 +02:00
parent aef78ca386
commit dd1f179cda
3780 changed files with 212808 additions and 142780 deletions
@@ -30,56 +30,62 @@
// P. Arce, June-2014 Conversion neutron_hp to particle_hp
//
#include "G4ParticleHPPDInelasticFS.hh"
#include "G4Nucleus.hh"
#include "G4Proton.hh"
#include "G4Deuteron.hh"
#include "G4Nucleus.hh"
#include "G4PhysicsModelCatalog.hh"
#include "G4Proton.hh"
G4ParticleHPPDInelasticFS::G4ParticleHPPDInelasticFS()
{
secID = G4PhysicsModelCatalog::GetModelID( "model_G4ParticleHPPDInelasticFS_F34" );
secID = G4PhysicsModelCatalog::GetModelID("model_G4ParticleHPPDInelasticFS_F34");
}
G4HadFinalState * G4ParticleHPPDInelasticFS::ApplyYourself(const G4HadProjectile & theTrack)
G4HadFinalState* G4ParticleHPPDInelasticFS::ApplyYourself(const G4HadProjectile& theTrack)
{
// these are the particle types in the final state
// these are the particle types in the final state
G4ParticleDefinition * theDefs[2];
G4ParticleDefinition* theDefs[2];
theDefs[0] = G4Proton::Proton();
theDefs[1] = G4Deuteron::Deuteron();
// fill the final state
// fill the final state
G4ParticleHPInelasticBaseFS::BaseApply(theTrack, theDefs, 2);
// return the result
return theResult.Get();
// return the result
return theResult.Get();
}
void G4ParticleHPPDInelasticFS::
Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String & aFSType, G4ParticleDefinition* projectile)
void G4ParticleHPPDInelasticFS::Init(G4double A, G4double Z, G4int M, G4String& dirName,
G4String& aFSType, G4ParticleDefinition* projectile)
{
G4ParticleHPInelasticBaseFS::Init(A, Z, M, dirName, aFSType, projectile);
G4double ResidualA = 0;
G4double ResidualZ = 0;
if( projectile == G4Neutron::Neutron() ) {
ResidualA = A-2;
ResidualZ = Z-2;
} else if( projectile == G4Proton::Proton() ) {
ResidualA = A-2;
ResidualZ = Z-1;
} else if( projectile == G4Deuteron::Deuteron() ) {
ResidualA = A-1;
ResidualZ = Z-1;
} else if( projectile == G4Triton::Triton() ) {
ResidualA = A;
ResidualZ = Z-1;
} else if( projectile == G4He3::He3() ) {
ResidualA = A;
ResidualZ = Z;
} else if( projectile == G4Alpha::Alpha() ) {
ResidualA = A+1;
ResidualZ = Z;
}
G4ParticleHPInelasticBaseFS::Init(A, Z, M, dirName, aFSType, projectile);
G4double ResidualA = 0;
G4double ResidualZ = 0;
if (projectile == G4Neutron::Neutron()) {
ResidualA = A - 2;
ResidualZ = Z - 2;
}
else if (projectile == G4Proton::Proton()) {
ResidualA = A - 2;
ResidualZ = Z - 1;
}
else if (projectile == G4Deuteron::Deuteron()) {
ResidualA = A - 1;
ResidualZ = Z - 1;
}
else if (projectile == G4Triton::Triton()) {
ResidualA = A;
ResidualZ = Z - 1;
}
else if (projectile == G4He3::He3()) {
ResidualA = A;
ResidualZ = Z;
}
else if (projectile == G4Alpha::Alpha()) {
ResidualA = A + 1;
ResidualZ = Z;
}
G4ParticleHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
G4ParticleHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
}