86 G4int idx = fShellIdx;
89 if(idx < 0 || idx >= nShells) {
92 prob.resize(nprob,0.0);
95 for(idx=0; idx<nShells; ++idx) {
101 for(idx=0; idx<nShells; ++idx) {
102 if(sum <= prob[idx]) {
break; }
114 static const G4int nmax = 100;
119 G4double eKinEnergy = bindingEnergy*x;
120 G4double ePotEnergy = bindingEnergy*(1.0 + x);
121 G4double e = kinEnergyFinal + ePotEnergy + electron_mass_c2;
122 G4double p = sqrt((e + electron_mass_c2)*(e - electron_mass_c2));
127 totEnergy += ePotEnergy;
128 totMomentum = sqrt((totEnergy + electron_mass_c2)
129 *(totEnergy - electron_mass_c2));
132 G4double eTotEnergy = eKinEnergy + electron_mass_c2;
133 G4double eTotMomentum = sqrt(eKinEnergy*(eTotEnergy + electron_mass_c2));
135 G4double sintet = sqrt((1 - costet)*(1 + costet));
150 if(0.0 == bindingEnergy) { isOK =
true; }
154 G4double x0 = p*(totMomentum + eTotMomentum*costet);
162 G4double x1 = p*eTotMomentum*sintet;
163 G4double x2 = totEnergy*(eTotEnergy - e) - e*eTotEnergy
164 - totMomentum*eTotMomentum*costet + electron_mass_c2*electron_mass_c2;
166 if(std::abs(y) <= 1.0) {
167 cost = -(x2 + x1*sqrt(1. - y*y))/x0;
168 if(std::abs(cost) <= 1.0) { isOK =
true; }
185 G4double sint = sqrt((1 - cost)*(1 + cost));
const G4ThreeVector & GetMomentumDirection() const
const G4ParticleDefinition * GetParticleDefinition() const
G4double GetTotalEnergy() const
G4double GetTotalMomentum() const