- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/src/G4MultipleScattering71.cc
r819 r961 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4MultipleScattering71.cc,v 1. 4 2006/10/16 15:26:49vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: G4MultipleScattering71.cc,v 1.5 2008/07/16 11:27:41 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ----------------------------------------------------------------------------- … … 76 76 77 77 #include "G4MultipleScattering71.hh" 78 #include "G4LossTableManager.hh" 78 79 #include "G4MscModel71.hh" 79 80 … … 176 177 } 177 178 179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 180 181 G4double G4MultipleScattering71::GetContinuousStepLimit( 182 const G4Track& track, 183 G4double, 184 G4double currentMinimalStep, 185 G4double&) 186 { 187 DefineMaterial(track.GetMaterialCutsCouple()); 188 const G4MaterialCutsCouple* couple = CurrentMaterialCutsCouple(); 189 G4double e = track.GetKineticEnergy(); 190 model = dynamic_cast<G4MscModel71*>(SelectModel(e)); 191 const G4ParticleDefinition* p = track.GetDefinition(); 192 G4double lambda0 = GetLambda(p, e); 193 range = G4LossTableManager::Instance()->GetRangeFromRestricteDEDX(p,e,couple); 194 if(range < currentMinimalStep) currentMinimalStep = range; 195 truePathLength = TruePathLengthLimit(track,lambda0,currentMinimalStep); 196 // G4cout << "StepLimit: tpl= " << truePathLength << " lambda0= " 197 // << lambda0 << " range= " << currentRange 198 // << " currentMinStep= " << currentMinimalStep << G4endl; 199 if (truePathLength < currentMinimalStep) valueGPILSelectionMSC = CandidateForSelection; 200 geomPathLength = model->GeomPathLength(LambdaTable(),couple, 201 p,e,lambda0,range,truePathLength); 202 if(geomPathLength > lambda0) geomPathLength = lambda0; 203 return geomPathLength; 204 } 205 178 206 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 179 207
Note: See TracChangeset
for help on using the changeset viewer.