107 if(isInitialised) {
return; }
109 isInitialised =
true;
130 G4double cross = pi_rcl2*((gamma2+4*gam+1.)*
G4Log(gam+bg) - (gam+3.)*bg)
175 if(PositKinEnergy == 0.0) {
177 G4double sint = sqrt((1. - cost)*(1. + cost));
195 G4double sqgrate = sqrt(tau/tau2)*0.5;
201 G4double epsilqot = epsilmax/epsilmin;
210 greject = 1. - epsil + (2.*gam*epsil-1.)/(epsil*tau2*tau2);
217 G4double cost = (epsil*tau2-1.)/(epsil*sqg2m1);
218 if(std::abs(cost) > 1.0) {
219 G4cout <<
"### G4eeToTwoGammaModel WARNING cost= " << cost
220 <<
" positron Ekin(MeV)= " << PositKinEnergy
221 <<
" gamma epsil= " << epsil
223 if(cost > 1.0) cost = 1.0;
226 G4double sint = sqrt((1.+cost)*(1.-cost));
234 G4double Phot1Energy = epsil*TotalAvailableEnergy;
236 G4ThreeVector Phot1Direction(sint*cos(phi), sint*sin(phi), cost);
237 Phot1Direction.
rotateUz(PositDirection);
244 G4double Phot2Energy =(1.-epsil)*TotalAvailableEnergy;
264 vdp->push_back(aGamma1);
265 vdp->push_back(aGamma2);
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kinEnergy, G4double cutEnergy=0., G4double maxEnergy=DBL_MAX)
G4double GetElectronDensity() const
const G4ThreeVector & GetMomentumDirection() const
Hep3Vector & rotateUz(const Hep3Vector &)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0., G4double maxEnergy=DBL_MAX)
void SetPolarization(G4double polX, G4double polY, G4double polZ)
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4eeToTwoGammaModel(const G4ParticleDefinition *p=0, const G4String &nam="eplus2gg")
void SetProposedKineticEnergy(G4double proposedKinEnergy)
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
void ProposeTrackStatus(G4TrackStatus status)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
virtual ~G4eeToTwoGammaModel()