Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

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

    r1316 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: G4Penelope08GammaConversionModel.cc,v 1.2 2010/04/23 14:49:46 pandola Exp $
    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 $
    2828//
    2929// Author: Luciano Pandola
     
    169169
    170170  G4double cs = 0;
    171   G4double logene = log(energy);
     171  G4double logene = std::log(energy);
    172172  G4PhysicsFreeVector* theVec = logAtomicCrossSection->find(iZ)->second;
    173173
    174174  G4double logXS = theVec->Value(logene);
    175   cs = exp(logXS);
     175  cs = std::exp(logXS);
    176176
    177177  if (verboseLevel > 2)
     
    242242      G4double effC = fEffectiveCharge->find(mat)->second;
    243243      G4double alz = effC*fine_structure_const;
    244       G4double T = sqrt(2.0*eki);
     244      G4double T = std::sqrt(2.0*eki);
    245245      G4double F00=(-1.774-1.210e1*alz+1.118e1*alz*alz)*T
    246246         +(8.523+7.326e1*alz-4.441e1*alz*alz)*T*T
     
    269269            G4double  ru2m1 = 2.0*G4UniformRand()-1.0;
    270270            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.);
    272272            else
    273               eps = 0.5+xr*pow(ru2m1,1./3.);
     273              eps = 0.5+xr*std::pow(ru2m1,1./3.);
    274274            G4double B = eki/(invRad*eps*(1.0-eps));
    275275            scree =  GetScreeningFunctions(B);
     
    457457      if (xs < 1e-40*cm2) //protection against log(0)
    458458        xs = 1e-40*cm2;
    459       theVec->PutValue(i,log(ene),log(xs));     
     459      theVec->PutValue(i,std::log(ene),std::log(xs));     
    460460    }
    461461  file.close();
     
    563563
    564564  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]);
    566566  G4double f0b = f0a - 4.0*fc;
    567567  myPair.first = f0a;
     
    596596  std::pair<G4double,G4double> result(0.,0.);
    597597  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);
    599599  G4double f2 = f1 - 6.66666666e-1; // (-2/3)
    600600  if (B < 1.0e-10)
     
    604604      G4double a0 = 4.0*B*std::atan(1./B);
    605605      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));
    607607    }
    608608  G4double g1 = 0.5*(3.0*f1-f2);
Note: See TracChangeset for help on using the changeset viewer.