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) {
G4double HighOrderCorrections(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy, G4double cutEnergy)
G4double DensityCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
std::vector< G4Element * > G4ElementVector
void SetIonisationModels(G4VEmModel *m1=0, G4VEmModel *m2=0)
G4double EffectiveChargeSquareRatio(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double EffectiveChargeSquareRatio(const G4ParticleDefinition *p, const G4Material *material, G4double kineticEnergy)
G4double MottCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetParticleCharge(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double EffectiveChargeCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double BlochCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
const G4ElementVector * GetElementVector() const
G4double SpinCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
void AddStoppingData(G4int Z, G4int A, const G4String &materialName, G4PhysicsVector *dVector)
G4double NuclearDEDX(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy, G4bool fluct=true)
G4double IonBarkasCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double BarkasCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double IonHighOrderCorrections(const G4ParticleDefinition *, const G4MaterialCutsCouple *, G4double kineticEnergy)
const G4double * GetAtomicNumDensityVector() const
G4double EffectiveCharge(const G4ParticleDefinition *p, const G4Material *material, G4double kineticEnergy)
G4double ShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetPDGMass() const
G4double KShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double LShellCorrection(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
size_t GetNumberOfElements() const
G4double ComputeIonCorrections(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double ShellCorrectionSTD(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4double GetPDGCharge() const
G4int GetNumberOfStoppingVectors()
void InitialiseForNewRun()
virtual ~G4EmCorrections()
G4double Bethe(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)