Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -196,7 +196,7 @@ void G4QMDNucleus::CalEnergyAndAngularMomentumInCM()
//G4cout << "rcm " << i << " " << rcm[i] << G4endl;
}
// Angluar momentum
// Angular momentum
G4ThreeVector rl ( 0.0 );
for ( G4int i= 0; i < n ; i++ )
@@ -204,8 +204,10 @@ void G4QMDNucleus::CalEnergyAndAngularMomentumInCM()
rl += rcm[i].cross ( pcm[i] );
}
jj = int ( std::sqrt ( rl*rl / hbc ) + 0.5 );
// DHW: move hbc outside of sqrt to get correct units
// jj = int ( std::sqrt ( rl*rl / hbc ) + 0.5 );
jj = int (std::sqrt(rl*rl)/hbc + 0.5);
// kinetic energy per nucleon in CM
@@ -48,6 +48,7 @@
#include "G4VCrossSectionDataSet.hh"
#include "G4CrossSectionInelastic.hh"
#include "G4ComponentGGNuclNuclXsc.hh"
#include "G4PhysicsModelCatalog.hh"
G4QMDReaction::G4QMDReaction()
@@ -58,6 +59,7 @@ G4QMDReaction::G4QMDReaction()
, envelopF ( 1.05 ) // 10% for Peripheral reactions
, gem ( true )
, frag ( false )
, secID( -1 )
{
theXS = new G4CrossSectionInelastic( new G4ComponentGGNuclNuclXsc );
pipElNucXS = new G4BGGPionElasticXS(G4PionPlus::PionPlus() );
@@ -95,6 +97,8 @@ G4QMDReaction::G4QMDReaction()
coulomb_collision_rz_targ = 0.0;
coulomb_collision_px_targ = 0.0;
coulomb_collision_pz_targ = 0.0;
secID = G4PhysicsModelCatalog::GetModelID( "model_QMDModel" );
}
@@ -679,8 +683,8 @@ G4HadFinalState* G4QMDReaction::ApplyYourself( const G4HadProjectile & projectil
{
//G4cout << "Particle : " << theParticleChange.GetSecondary(i)->GetParticle()->GetParticleDefinition()->GetParticleName() << G4endl;
//G4cout << "KEnergy : " << theParticleChange.GetSecondary(i)->GetParticle()->GetKineticEnergy() << G4endl;
//G4cout << "KEnergy : " << theParticleChange.GetSecondary(i)->GetCreatorModelType() << G4endl;
theParticleChange.GetSecondary(i)->SetCreatorModelType(1111);
//G4cout << "modelID : " << theParticleChange.GetSecondary(i)->GetCreatorModelID() << G4endl;
theParticleChange.GetSecondary(i)->SetCreatorModelID(secID);
}
return &theParticleChange;