- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/util/src/G4ReactionDynamics.cc
r962 r1315 184 184 veryForward = true; 185 185 } 186 const G4double atomicWeight = targetNucleus.GetN();187 const G4double atomicNumber = targetNucleus.GetZ();186 const G4double atomicWeight = G4double(targetNucleus.GetA_asInt()); 187 const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt()); 188 188 const G4double protonMass = aProton->GetPDGMass()/MeV; 189 189 … … 1124 1124 1125 1125 G4int PinNucleus = std::max(0, 1126 G4int(targetNucleus.GetZ()) - protonsInFinalState);1126 targetNucleus.GetZ_asInt() - protonsInFinalState); 1127 1127 G4int NinNucleus = std::max(0, 1128 G4int(targetNucleus.GetN()-targetNucleus.GetZ()) - neutronsInFinalState);1128 targetNucleus.GetN_asInt() - neutronsInFinalState); 1129 1129 1130 1130 pseudoParticle[3].SetMomentum( 0.0, 0.0, pOriginal*GeV ); … … 1356 1356 for (G4int i = 0; i < vecLen; i++) eAvailable -= vec[i]->GetMass()/GeV; 1357 1357 1358 const G4double atomicWeight = targetNucleus.GetN();1359 const G4double atomicNumber = targetNucleus.GetZ();1358 const G4double atomicWeight = G4double(targetNucleus.GetA_asInt()); 1359 const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt()); 1360 1360 const G4double pOriginal = modifiedOriginal.GetTotalMomentum()/GeV; 1361 1361 … … 1502 1502 } 1503 1503 1504 const G4double atomicWeight = targetNucleus.GetN();1505 const G4double atomicNumber = targetNucleus.GetZ();1504 const G4double atomicWeight = G4double(targetNucleus.GetA_asInt()); 1505 const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt()); 1506 1506 // 1507 1507 // particles have been distributed in forward and backward hemispheres … … 2033 2033 2034 2034 G4int PinNucleus = std::max(0, 2035 G4int(targetNucleus.GetZ()) - protonsInFinalState);2035 targetNucleus.GetZ_asInt() - protonsInFinalState); 2036 2036 G4int NinNucleus = std::max(0, 2037 G4int(targetNucleus.GetN()-targetNucleus.GetZ()) - neutronsInFinalState);2037 targetNucleus.GetN_asInt() - neutronsInFinalState); 2038 2038 // 2039 2039 // for various reasons, the energy balance is not sufficient, … … 2270 2270 2271 2271 targetMass = targetParticle.GetMass()/GeV; 2272 const G4double atomicWeight = targetNucleus.GetN();2272 const G4double atomicWeight = G4double(targetNucleus.GetA_asInt()); 2273 2273 2274 2274 G4double etCurrent = currentParticle.GetTotalEnergy()/GeV; … … 2430 2430 2431 2431 G4int PinNucleus = std::max(0, 2432 G4int(targetNucleus.GetZ()) - protonsInFinalState);2432 targetNucleus.GetZ_asInt() - protonsInFinalState); 2433 2433 G4int NinNucleus = std::max(0, 2434 G4int(targetNucleus.GetN()-targetNucleus.GetZ()) - neutronsInFinalState);2434 targetNucleus.GetN_asInt() - neutronsInFinalState); 2435 2435 2436 2436 // DEBUGGING --> DumpFrames::DumpFrame(vec, vecLen); … … 2820 2820 // inclusive distributions, but it is necessary for momentum conservation 2821 2821 // 2822 const G4double atomicWeight = targetNucleus.GetN();2822 const G4double atomicWeight = G4double(targetNucleus.GetA_asInt()); 2823 2823 const G4double logWeight = std::log(atomicWeight); 2824 2824 … … 3096 3096 3097 3097 const G4double ekOriginal = modifiedOriginal.GetKineticEnergy()/MeV; 3098 const G4double atomicWeight = targetNucleus.GetN();3099 const G4double atomicNumber = targetNucleus.GetZ();3098 const G4double atomicWeight = G4double(targetNucleus.GetA_asInt()); 3099 const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt()); 3100 3100 3101 3101 const G4double ika1 = 3.6; … … 3836 3836 if( currentParticle.GetDefinition() == aNeutron ) 3837 3837 { 3838 const G4double A = targetNucleus.GetN(); // atomic weight3838 const G4double A = G4double(targetNucleus.GetA_asInt()); // atomic weight 3839 3839 if( G4UniformRand() > ((A-1.0)/230.0)*((A-1.0)/230.0) ) 3840 3840 qval[0] = 0.0;
Note: See TracChangeset
for help on using the changeset viewer.