Ignore:
Timestamp:
Nov 19, 2009, 2:53:25 PM (15 years ago)
Author:
garnier
Message:

update par rapport a CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/lowenergy/src/G4IonDEDXHandler.cc

    r1058 r1192  
    3535// First implementation: 11. 03. 2009
    3636//
    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)
    3944//
    4045// Class description:
     
    227232  const G4String& materialName = material -> GetName();
    228233
    229   isApplicable = table -> IsApplicable(atomicNumberBase, chemFormula);
     234  isApplicable = table -> BuildPhysicsVector(atomicNumberBase, chemFormula);
    230235
    231236  if(isApplicable) {
     
    235240  }
    236241
    237   isApplicable = table -> IsApplicable(atomicNumberBase, materialName);
     242  isApplicable = table -> BuildPhysicsVector(atomicNumberBase, materialName);
    238243  if(isApplicable) {
    239244     stoppingPowerTable[key] =
     
    253258      G4int atomicNumberMat = G4int((*elementVector)[i] -> GetZ());
    254259
    255       isApplicable = table -> IsApplicable(atomicNumberBase, atomicNumberMat);
     260      isApplicable = table -> BuildPhysicsVector(atomicNumberBase, atomicNumberMat);
    256261
    257262      if(isApplicable) {
     
    274279        size_t nmbdEdxBins = dEdxTable[0] -> GetVectorLength();
    275280        G4double lowerEdge = dEdxTable[0] -> GetLowEdgeEnergy(0);
    276         G4double upperEdge = dEdxTable[0] -> GetLowEdgeEnergy(nmbdEdxBins);
     281        G4double upperEdge = dEdxTable[0] -> GetLowEdgeEnergy(nmbdEdxBins-1);
    277282
    278283        G4LPhysicsFreeVector* dEdxBragg =
     
    339344     G4double nmbNucleons = G4double(particle -> GetAtomicMass());
    340345     value.energyScaling =
    341             algorithm -> ScalingFactorEnergy(particle) / nmbNucleons;
     346           algorithm -> ScalingFactorEnergy(particle, material) / nmbNucleons;
    342347
    343348     size_t nmbdEdxBins = value.dedxVector -> GetVectorLength();
Note: See TracChangeset for help on using the changeset viewer.