- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/utils/src/G4VMultipleScattering.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VMultipleScattering.cc,v 1.8 2 2010/04/12 11:45:03vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: G4VMultipleScattering.cc,v 1.86 2010/10/26 11:30:46 vnivanch Exp $ 27 // GEANT4 tag $Name: emutils-V09-03-23 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 294 294 if(verboseLevel>0 && ( num == "e-" || num == "mu+" || 295 295 num == "proton" || num == "pi-" || 296 num == " GenericIon")) {296 num == "kaon+" || num == "GenericIon")) { 297 297 PrintInfoDefinition(); 298 298 if(2 < verboseLevel && theLambdaTable) G4cout << *theLambdaTable << G4endl; … … 348 348 DefineMaterial(track.GetMaterialCutsCouple()); 349 349 G4double ekin = track.GetKineticEnergy(); 350 if(isIon) { ekin *= proton_mass_c2/track.Get Definition()->GetPDGMass(); }350 if(isIon) { ekin *= proton_mass_c2/track.GetParticleDefinition()->GetPDGMass(); } 351 351 currentModel = static_cast<G4VMscModel*>(SelectModel(ekin)); 352 352 if(x > 0.0 && ekin > 0.0 && currentModel->IsActive(ekin)) { 353 353 G4double tPathLength = 354 354 currentModel->ComputeTruePathLengthLimit(track, theLambdaTable, x); 355 if (tPathLength < x) *selection = CandidateForSelection;355 if (tPathLength < x) { *selection = CandidateForSelection; } 356 356 x = currentModel->ComputeGeomPathLength(tPathLength); 357 357 // G4cout << "tPathLength= " << tPathLength … … 404 404 G4double& currentSafety) 405 405 { 406 G4GPILSelection* selection = 0; 407 return AlongStepGetPhysicalInteractionLength(track,previousStepSize,currentMinimalStep, 408 currentSafety, selection); 406 G4GPILSelection selection = NotCandidateForSelection; 407 G4double x = AlongStepGetPhysicalInteractionLength(track,previousStepSize, 408 currentMinimalStep, 409 currentSafety, &selection); 410 return x; 409 411 } 410 412
Note: See TracChangeset
for help on using the changeset viewer.