Import Geant4 10.3.0 source tree
This commit is contained in:
@@ -82,7 +82,9 @@ G4LMsdGenerator::IsApplicable( const G4HadProjectile& aTrack,
|
||||
if( ( aTrack.GetDefinition() == G4Proton::Proton() ||
|
||||
aTrack.GetDefinition() == G4Neutron::Neutron() ) &&
|
||||
targetNucleus.GetA_asInt() >= 1 &&
|
||||
aTrack.GetKineticEnergy() > 1800*CLHEP::MeV ) // 750*CLHEP::MeV )
|
||||
// aTrack.GetKineticEnergy() > 1800*CLHEP::MeV
|
||||
aTrack.GetKineticEnergy() > 300*CLHEP::MeV
|
||||
) // 750*CLHEP::MeV )
|
||||
{
|
||||
applied = true;
|
||||
}
|
||||
@@ -116,7 +118,7 @@ G4LMsdGenerator::ApplyYourself( const G4HadProjectile& aTrack,
|
||||
const G4HadProjectile* aParticle = &aTrack;
|
||||
G4double eTkin = aParticle->GetKineticEnergy();
|
||||
|
||||
if( eTkin <= 1.*CLHEP::GeV )
|
||||
if( eTkin <= 1.*CLHEP::GeV && aTrack.GetDefinition() != G4Proton::Proton())
|
||||
{
|
||||
theParticleChange.SetEnergyChange(eTkin);
|
||||
theParticleChange.SetMomentumChange(aTrack.Get4Momentum().vect().unit());
|
||||
@@ -307,7 +309,8 @@ G4double G4LMsdGenerator::SampleMx(const G4HadProjectile* aParticle)
|
||||
if( aParticle->GetDefinition() == G4Proton::Proton() )
|
||||
{
|
||||
Mx = 1.44;
|
||||
fPDGencoding = 12212;
|
||||
// fPDGencoding = 12212;
|
||||
fPDGencoding = 2214;
|
||||
}
|
||||
else if( aParticle->GetDefinition() == G4Neutron::Neutron() )
|
||||
{
|
||||
@@ -344,7 +347,8 @@ G4double G4LMsdGenerator::SampleMx(const G4HadProjectile* aParticle)
|
||||
if( aParticle->GetDefinition() == G4Proton::Proton() )
|
||||
{
|
||||
Mx = 1.52;
|
||||
fPDGencoding = 2124;
|
||||
// fPDGencoding = 2124;
|
||||
fPDGencoding = 2214;
|
||||
}
|
||||
else if( aParticle->GetDefinition() == G4Neutron::Neutron() )
|
||||
{
|
||||
@@ -381,7 +385,8 @@ G4double G4LMsdGenerator::SampleMx(const G4HadProjectile* aParticle)
|
||||
if( aParticle->GetDefinition() == G4Proton::Proton() )
|
||||
{
|
||||
Mx = 1.68;
|
||||
fPDGencoding = 12216;
|
||||
// fPDGencoding = 12216;
|
||||
fPDGencoding = 2214;
|
||||
}
|
||||
else if( aParticle->GetDefinition() == G4Neutron::Neutron() )
|
||||
{
|
||||
@@ -416,7 +421,8 @@ G4double G4LMsdGenerator::SampleMx(const G4HadProjectile* aParticle)
|
||||
if(fPDGencoding == 0)
|
||||
{
|
||||
Mx = 1.44;
|
||||
fPDGencoding = 12212;
|
||||
// fPDGencoding = 12212;
|
||||
fPDGencoding = 2214;
|
||||
}
|
||||
G4ParticleDefinition* myResonance =
|
||||
G4ParticleTable::GetParticleTable()->FindParticle( fPDGencoding );
|
||||
|
||||
Reference in New Issue
Block a user