65 prob.resize(nprob,0.0);
79 prob.resize(nprob,0.0);
83 for(idx=0; idx<nShells; ++idx) {
89 for(idx=0; idx<nShells; ++idx) {
90 if(sum <= prob[idx]) {
break; }
103 G4double ePotEnergy = bindingEnergy*(1.0 +
x);
109 totEnergy += ePotEnergy;
110 totMomentum = sqrt((totEnergy + electron_mass_c2)
111 *(totEnergy - electron_mass_c2));
114 G4double eTotMomentum = sqrt(eKinEnergy*(eKinEnergy + 2*electron_mass_c2));
117 G4double sintet = sqrt((1 - costet)*(1 + costet));
120 eTotMomentum*sintet*sin(phi),
121 eTotMomentum*costet + totMomentum,
122 eKinEnergy + electron_mass_c2 + totEnergy);
130 mom = sqrt((en + electron_mass_c2)*(en - electron_mass_c2));
132 cost= (e/gam - en)/(mom*bet);
138 }
while(std::fabs(cost) > 1.0);
140 G4double sint = sqrt((1 - cost)*(1 + cost));
void set(double x, double y, double z)
Hep3Vector boostVector() const
G4DeltaAngle(const G4String &name="")
G4double GetTotalEnergy() const
G4double GetTotalMomentum() const
static G4double GetBindingEnergy(G4int Z, G4int SubshellNb)
const G4ThreeVector & GetMomentumDirection() const
HepLorentzVector & boost(double, double, double)
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ParticleDefinition * GetParticleDefinition() const
void PrintGeneratorInformation() const
G4double G4Log(G4double x)
G4double GetPDGMass() const
static G4int GetNumberOfElectrons(G4int Z, G4int SubshellNb)
static G4Electron * Electron()
virtual G4ThreeVector & SampleDirection(const G4DynamicParticle *dp, G4double kinEnergyFinal, G4int Z, const G4Material *mat=0)
G4ThreeVector fLocalDirection
G4double bindingEnergy(G4int A, G4int Z)
static G4int GetNumberOfShells(G4int Z)