Changeset 1337 for trunk/source/processes/electromagnetic/lowenergy/src/G4Penelope08GammaConversionModel.cc
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4Penelope08GammaConversionModel.cc
r1316 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4Penelope08GammaConversionModel.cc,v 1. 2 2010/04/23 14:49:46 pandolaExp $27 // GEANT4 tag $Name: geant4-09-04-beta- cand-01 $26 // $Id: G4Penelope08GammaConversionModel.cc,v 1.3 2010/06/25 09:41:17 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 // Author: Luciano Pandola … … 169 169 170 170 G4double cs = 0; 171 G4double logene = log(energy);171 G4double logene = std::log(energy); 172 172 G4PhysicsFreeVector* theVec = logAtomicCrossSection->find(iZ)->second; 173 173 174 174 G4double logXS = theVec->Value(logene); 175 cs = exp(logXS);175 cs = std::exp(logXS); 176 176 177 177 if (verboseLevel > 2) … … 242 242 G4double effC = fEffectiveCharge->find(mat)->second; 243 243 G4double alz = effC*fine_structure_const; 244 G4double T = s qrt(2.0*eki);244 G4double T = std::sqrt(2.0*eki); 245 245 G4double F00=(-1.774-1.210e1*alz+1.118e1*alz*alz)*T 246 246 +(8.523+7.326e1*alz-4.441e1*alz*alz)*T*T … … 269 269 G4double ru2m1 = 2.0*G4UniformRand()-1.0; 270 270 if (ru2m1 < 0) 271 eps = 0.5-xr* pow(std::abs(ru2m1),1./3.);271 eps = 0.5-xr*std::pow(std::abs(ru2m1),1./3.); 272 272 else 273 eps = 0.5+xr* pow(ru2m1,1./3.);273 eps = 0.5+xr*std::pow(ru2m1,1./3.); 274 274 G4double B = eki/(invRad*eps*(1.0-eps)); 275 275 scree = GetScreeningFunctions(B); … … 457 457 if (xs < 1e-40*cm2) //protection against log(0) 458 458 xs = 1e-40*cm2; 459 theVec->PutValue(i, log(ene),log(xs));459 theVec->PutValue(i,std::log(ene),std::log(xs)); 460 460 } 461 461 file.close(); … … 563 563 564 564 std::pair<G4double,G4double> myPair(0,0); 565 G4double f0a = 4.0* log(fAtomicScreeningRadius[intZ-1]);565 G4double f0a = 4.0*std::log(fAtomicScreeningRadius[intZ-1]); 566 566 G4double f0b = f0a - 4.0*fc; 567 567 myPair.first = f0a; … … 596 596 std::pair<G4double,G4double> result(0.,0.); 597 597 G4double BSquared = B*B; 598 G4double f1 = 2.0-2.0* log(1.0+BSquared);598 G4double f1 = 2.0-2.0*std::log(1.0+BSquared); 599 599 G4double f2 = f1 - 6.66666666e-1; // (-2/3) 600 600 if (B < 1.0e-10) … … 604 604 G4double a0 = 4.0*B*std::atan(1./B); 605 605 f1 = f1 - a0; 606 f2 += 2.0*BSquared*(4.0-a0-3.0* log((1.0+BSquared)/BSquared));606 f2 += 2.0*BSquared*(4.0-a0-3.0*std::log((1.0+BSquared)/BSquared)); 607 607 } 608 608 G4double g1 = 0.5*(3.0*f1-f2);
Note: See TracChangeset
for help on using the changeset viewer.