88 pi_rcl2(pi*classic_electr_radius*classic_electr_radius),
105 if(isInitialised) {
return; }
107 isInitialised =
true;
120 G4double ekin = std::max(eV,kineticEnergy);
122 G4double tau = ekin/electron_mass_c2;
128 G4double cross = pi_rcl2*((gamma2+4*gam+1.)*log(gam+bg) - (gam+3.)*bg)
173 if(PositKinEnergy == 0.0) {
175 G4double sint = sqrt((1. - cost)*(1. + cost));
190 G4double tau = PositKinEnergy/electron_mass_c2;
193 G4double sqgrate = sqrt(tau/tau2)*0.5;
199 G4double epsilqot = epsilmax/epsilmin;
208 greject = 1. - epsil + (2.*gam*epsil-1.)/(epsil*tau2*tau2);
215 G4double cost = (epsil*tau2-1.)/(epsil*sqg2m1);
216 if(std::abs(cost) > 1.0) {
217 G4cout <<
"### G4eeToTwoGammaModel WARNING cost= " << cost
218 <<
" positron Ekin(MeV)= " << PositKinEnergy
219 <<
" gamma epsil= " << epsil
221 if(cost > 1.0) cost = 1.0;
224 G4double sint = sqrt((1.+cost)*(1.-cost));
231 G4double TotalAvailableEnergy = PositKinEnergy + 2.0*electron_mass_c2;
232 G4double Phot1Energy = epsil*TotalAvailableEnergy;
234 G4ThreeVector Phot1Direction(sint*cos(phi), sint*sin(phi), cost);
235 Phot1Direction.
rotateUz(PositDirection);
242 G4double Phot2Energy =(1.-epsil)*TotalAvailableEnergy;
243 G4double PositP= sqrt(PositKinEnergy*(PositKinEnergy+2.*electron_mass_c2));
244 G4ThreeVector dir = PositDirection*PositP - Phot1Direction*Phot1Energy;
262 vdp->push_back(aGamma1);
263 vdp->push_back(aGamma2);
G4DLLIMPORT std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ThreeVector & GetMomentumDirection() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
G4double GetKineticEnergy() const
G4double GetElectronDensity() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
void ProposeTrackStatus(G4TrackStatus status)
virtual ~G4eeToTwoGammaModel()
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kinEnergy, G4double cutEnergy=0., G4double maxEnergy=DBL_MAX)
G4eeToTwoGammaModel(const G4ParticleDefinition *p=0, const G4String &nam="eplus2gg")
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0., G4double maxEnergy=DBL_MAX)