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
@@ -40,14 +40,16 @@
#include "G4DecayKineticTracks.hh"
#include "G4KineticTrackVector.hh"
#include "G4Log.hh"
#include "G4PhysicsModelCatalog.hh"
G4LMsdGenerator::G4LMsdGenerator(const G4String& name)
: G4HadronicInteraction(name)
: G4HadronicInteraction(name), secID(-1)
{
fPDGencoding = 0;
secID = G4PhysicsModelCatalog::GetModelID( "model_LMsdGenerator" );
// theParticleChange = new G4HadFinalState;
}
@@ -243,7 +245,7 @@ G4LMsdGenerator::ApplyYourself( const G4HadProjectile& aTrack,
G4ParticleTable::GetParticleTable()->GetIonTable()->GetIon( Z, A, 0.0 );
}
G4DynamicParticle * aSec = new G4DynamicParticle( recoilDef, lvTarg);
theParticleChange.AddSecondary(aSec);
theParticleChange.AddSecondary(aSec, secID);
}
else if( eRecoil > 0.0 )
{
@@ -275,7 +277,7 @@ G4LMsdGenerator::ApplyYourself( const G4HadProjectile& aTrack,
// G4cout<<" "<<i<<", "<<aNew->GetDefinition()->GetParticleName()<<", "<<aNew->Get4Momentum()<<G4endl;
theParticleChange.AddSecondary(aNew);
theParticleChange.AddSecondary(aNew, secID);
delete ddktv->operator[](i);
}
delete ddktv;