54 #ifndef G4EmCorrections_h
55 #define G4EmCorrections_h 1
171 void BuildCorrectionVector();
237 std::vector<const G4Material*> currmat;
238 std::map< G4int, std::vector<G4double> > thcorr;
248 G4int numberOfElements;
278 std::vector<G4int> Zion;
279 std::vector<G4int> Aion;
280 std::vector<G4String> materialName;
282 std::vector<const G4ParticleDefinition*> ionList;
284 std::vector<const G4Material*> materialList;
285 std::vector<G4PhysicsVector*> stopData;
292 do {iddd--;}
while (iddd>0 && x<y[iddd]);
299 return y1 + (y2 -
y1)*(xv - x1)/(x2 -
x1);
308 return (z11*(x2-xv)*(y2-yv) + z22*(xv-x1)*(yv-y1) +
309 0.5*(z12*((x2-xv)*(yv-y1)+(xv-x1)*(y2-yv))+
310 z21*((xv-x1)*(y2-yv)+(yv-y1)*(x2-xv))))
317 if(mod1) { ionLEModel = mod1; }
318 if(mod2) { ionHEModel = mod2; }
346 if(kineticEnergy != kinEnergy || p != particle) {
348 kinEnergy = kineticEnergy;
350 tau = kineticEnergy / mass;
352 bg2 = tau * (tau+2.0);
353 beta2 = bg2/(gamma*gamma);
354 beta = std::sqrt(beta2);
356 G4double ratio = CLHEP::electron_mass_c2/mass;
357 tmax = 2.0*CLHEP::electron_mass_c2*bg2 /(1. + 2.0*gamma*ratio + ratio*ratio);
364 if(charge > 1.5) { charge = effCharge.
EffectiveCharge(p,mat,kinEnergy); }
367 if(mat != material) {