Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -69,18 +69,19 @@ G4QMDGroundStateNucleus::G4QMDGroundStateNucleus( G4int z , G4int a )
|
||||
csp = parameters->Get_csp();
|
||||
clp = parameters->Get_clp();
|
||||
|
||||
ebini = 0.0;
|
||||
// Following 10 lines should be here, right before the line 90.
|
||||
// Otherwise, mass number cannot be conserved if the projectile or
|
||||
// the target are nucleons.
|
||||
//Nucleon primary or target case;
|
||||
if ( z == 1 && a == 1 ) { // Hydrogen Case or proton primary
|
||||
SetParticipant( new G4QMDParticipant( G4Proton::Proton() , G4ThreeVector( 0.0 ) , G4ThreeVector( 0.0 ) ) );
|
||||
ebini = 0.0;
|
||||
// ebini = 0.0;
|
||||
return;
|
||||
}
|
||||
else if ( z == 0 && a == 1 ) { // Neutron primary
|
||||
SetParticipant( new G4QMDParticipant( G4Neutron::Neutron() , G4ThreeVector( 0.0 ) , G4ThreeVector( 0.0 ) ) );
|
||||
ebini = 0.0;
|
||||
// ebini = 0.0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user