Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -471,9 +471,10 @@ G4OpBoundaryProcess::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
if (theStatus == FresnelRefraction || theStatus == Transmission ) {
G4MaterialPropertyVector* groupvel =
Material2->GetMaterialPropertiesTable()->GetProperty(kGROUPVEL);
G4double finalVelocity = groupvel->Value(thePhotonMomentum);
aParticleChange.ProposeVelocity(finalVelocity);
Material2->GetMaterialPropertiesTable()->GetProperty(kGROUPVEL);
if (groupvel) {
aParticleChange.ProposeVelocity(groupvel->Value(thePhotonMomentum));
}
}
if (theStatus == Detection && fInvokeSD) InvokeSD(pStep);
@@ -1131,7 +1132,6 @@ void G4OpBoundaryProcess::DielectricDielectric()
alpha = cost1 - cost2*(Rindex2/Rindex1);
NewMomentum = OldMomentum + alpha*theFacetNormal;
NewMomentum = NewMomentum.unit();
PdotN = -cost2;
A_paral = NewMomentum.cross(A_trans);
A_paral = A_paral.unit();
E2_abs = std::sqrt(E2_total);