Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
+9 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Track.cc,v 1.24 2005/06/27 15:32:43 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Track.cc,v 1.26 2005/11/24 16:54:53 japost Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
//---------------------------------------------------------------
@@ -167,10 +167,14 @@ G4double G4Track::GetVelocity() const
// special case for photons
if ( (fOpticalPhoton !=0) &&
(fpDynamicParticle->GetDefinition()==fOpticalPhoton) ){
G4Material*
G4Material* mat=0;
if ( this->GetStep() ){
mat= this->GetMaterial(); // Fix for repeated volumes
}else{
mat=fpTouchable->GetVolume()->GetLogicalVolume()->GetMaterial();
}
if(mat->GetMaterialPropertiesTable() != 0){
// light velocity = c/(rindex+d(rindex)/d(log(E_phot)))
// values stored in GROUPVEL material properties vector