Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -208,6 +208,7 @@ G4HadronElastic::SampleInvariantT(const G4ParticleDefinition* part,
|
||||
const G4double plabLowLimit = 400.0*CLHEP::MeV;
|
||||
const G4double GeV2 = GeV*GeV;
|
||||
const G4double z07in13 = std::pow(0.7, 0.3333333333);
|
||||
const G4double numLimit = 18.;
|
||||
|
||||
G4int pdg = std::abs(part->GetPDGEncoding());
|
||||
G4double tmax = pLocalTmax/GeV2;
|
||||
@@ -255,8 +256,8 @@ G4HadronElastic::SampleInvariantT(const G4ParticleDefinition* part,
|
||||
cc = 0.2*g4pow->powZ(A,0.4)/dd;//1:0.4 --- 2: 0.4
|
||||
}
|
||||
}
|
||||
G4double q1 = 1.0 - G4Exp(-bb*tmax);
|
||||
G4double q2 = 1.0 - G4Exp(-dd*tmax);
|
||||
G4double q1 = 1.0 - G4Exp(-std::min(bb*tmax, numLimit));
|
||||
G4double q2 = 1.0 - G4Exp(-std::min(dd*tmax, numLimit));
|
||||
G4double s1 = q1*aa;
|
||||
G4double s2 = q2*cc;
|
||||
if((s1 + s2)*G4UniformRand() < s2) {
|
||||
|
||||
Reference in New Issue
Block a user