- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/xrays/src/G4StrawTubeXTRadiator.cc
r1228 r1337 25 25 // 26 26 // 27 // $Id: G4StrawTubeXTRadiator.cc,v 1. 6 2007/09/29 17:49:34 vnivanchExp $28 // GEANT4 tag $Name: geant4-09-0 3$27 // $Id: G4StrawTubeXTRadiator.cc,v 1.7 2010/06/16 15:34:15 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 … … 32 32 #include "Randomize.hh" 33 33 #include "G4Gamma.hh" 34 35 using namespace std;36 34 37 35 //////////////////////////////////////////////////////////////////////////// … … 78 76 fSigma3 = fPlasmaCof*mediumMat->GetElectronDensity(); 79 77 if(verboseLevel > 0) 80 G4cout<<"medium plasma energy = "<<s qrt(fSigma3)/eV<<" eV"<<G4endl;78 G4cout<<"medium plasma energy = "<<std::sqrt(fSigma3)/eV<<" eV"<<G4endl; 81 79 82 80 // Compute cofs for preparation of linear photo absorption in external medium … … 121 119 G4complex C3(1.0 + 0.5*fGasThick*M3/fAlphaGas, fGasThick/L3/fAlphaGas); 122 120 123 G4complex H2 = pow(C2,-fAlphaPlate);124 G4complex H3 = pow(C3,-fAlphaGas);121 G4complex H2 = std::pow(C2,-fAlphaPlate); 122 G4complex H3 = std::pow(C3,-fAlphaGas); 125 123 G4complex H = H2*H3; 126 124 … … 134 132 2.*( Z1 - Z2 )*( Z2 - Z3 )*H2*( 1. - H3 ) ; 135 133 136 result = 2.0* real(R)*(varAngle*energy/hbarc/hbarc);134 result = 2.0*std::real(R)*(varAngle*energy/hbarc/hbarc); 137 135 138 136 return result; … … 165 163 G4double varAngle ) 166 164 { 167 G4double cof, length,delta, real , image;165 G4double cof, length,delta, real_v, image_v; 168 166 169 167 length = 0.5*GetMediumFormationZone(omega,gamma,varAngle); … … 171 169 cof = 1.0/(1.0 + delta*delta); 172 170 173 real = length*cof;174 image = real*delta;175 176 G4complex zone(real ,image);171 real_v = length*cof; 172 image_v = real_v*delta; 173 174 G4complex zone(real_v,image_v); 177 175 return zone; 178 176 }
Note: See TracChangeset
for help on using the changeset viewer.