]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4VSpecialCuts.cxx
removed call to private G4EnergyLossTables::GetTables()
[u/mrichter/AliRoot.git] / TGeant4 / TG4VSpecialCuts.cxx
index c54449dfec6638fd15a276f48d0d31267102df5b..f37b94222a55d8f219a500ad1256201794076ae6 100644 (file)
@@ -103,6 +103,7 @@ G4double TG4VSpecialCuts::PostStepGetPhysicalInteractionLength(
 
   G4ParticleDefinition* particle = track.GetDefinition();
   if (particle->GetPDGCharge() != 0.) {
+
     // min remaining range
     G4double kinEnergy = track.GetKineticEnergy();
     G4Material* material = track.GetMaterial();
@@ -115,10 +116,9 @@ G4double TG4VSpecialCuts::PostStepGetPhysicalInteractionLength(
 
     // min kinetic energy (from limits)
     // the kin energy cut can be applied only in case
-    // G4EnergyLossTables are defined for the particle
+    // G4EnergyLossTables are defined for the particle    
     if (G4EnergyLossTables::GetDEDXTable(particle)) {
       G4double minEkine = GetMinEkine(*limits, track);
-      G4EnergyLossTables::GetTables(particle);
       G4double minR 
         = G4EnergyLossTables::GetRange(particle, minEkine, material);
       temp = rangeNow - minR;