- Timestamp:
- Nov 19, 2009, 2:53:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4IonDEDXHandler.cc
r1058 r1192 35 35 // First implementation: 11. 03. 2009 36 36 // 37 // Modifications: 38 // 37 // Modifications: 12. 11 .2009 - Function BuildDEDXTable: Using adapted build 38 // methods of stopping power classes according 39 // to interface change in G4VIonDEDXTable. 40 // Function UpdateCacheValue: Using adapted 41 // ScalingFactorEnergy function according to 42 // interface change in G4VIonDEDXScaling- 43 // Algorithm (AL) 39 44 // 40 45 // Class description: … … 227 232 const G4String& materialName = material -> GetName(); 228 233 229 isApplicable = table -> IsApplicable(atomicNumberBase, chemFormula);234 isApplicable = table -> BuildPhysicsVector(atomicNumberBase, chemFormula); 230 235 231 236 if(isApplicable) { … … 235 240 } 236 241 237 isApplicable = table -> IsApplicable(atomicNumberBase, materialName);242 isApplicable = table -> BuildPhysicsVector(atomicNumberBase, materialName); 238 243 if(isApplicable) { 239 244 stoppingPowerTable[key] = … … 253 258 G4int atomicNumberMat = G4int((*elementVector)[i] -> GetZ()); 254 259 255 isApplicable = table -> IsApplicable(atomicNumberBase, atomicNumberMat);260 isApplicable = table -> BuildPhysicsVector(atomicNumberBase, atomicNumberMat); 256 261 257 262 if(isApplicable) { … … 274 279 size_t nmbdEdxBins = dEdxTable[0] -> GetVectorLength(); 275 280 G4double lowerEdge = dEdxTable[0] -> GetLowEdgeEnergy(0); 276 G4double upperEdge = dEdxTable[0] -> GetLowEdgeEnergy(nmbdEdxBins );281 G4double upperEdge = dEdxTable[0] -> GetLowEdgeEnergy(nmbdEdxBins-1); 277 282 278 283 G4LPhysicsFreeVector* dEdxBragg = … … 339 344 G4double nmbNucleons = G4double(particle -> GetAtomicMass()); 340 345 value.energyScaling = 341 algorithm -> ScalingFactorEnergy(particle) / nmbNucleons;346 algorithm -> ScalingFactorEnergy(particle, material) / nmbNucleons; 342 347 343 348 size_t nmbdEdxBins = value.dedxVector -> GetVectorLength();
Note: See TracChangeset
for help on using the changeset viewer.