63 if(processName ==
"AnnihiToTauPair") {
67 fInfo =
"e+e->tau+tau-";
74 fLowEnergyLimit = 2. * fMass * fMass / CLHEP::electron_mass_c2 - CLHEP::electron_mass_c2;
77 fHighEnergyLimit = 1000. * TeV;
111 fCrossSecFactor = fac;
122 G4double rmuon = CLHEP::elm_coupling/fMass;
123 G4double sig0 = CLHEP::pi*rmuon*rmuon/3.;
124 const G4double pial = CLHEP::pi*CLHEP::fine_structure_const;
126 if (e <= fLowEnergyLimit)
return 0.0;
128 const G4double xi = fLowEnergyLimit/e;
129 const G4double piaxi = pial * std::sqrt(xi);
130 G4double sigma = sig0 * xi * (1. + xi*0.5);
135 if(xi <= 1.0 - 100*piaxi*piaxi) {
136 sigma *= std::sqrt(1.0 - xi);
138 else if (xi >= 1.0 - 0.01 * piaxi * piaxi) {
142 sigma *= piaxi / (1. -
G4Exp(-piaxi / std::sqrt(1 - xi)));
178 return (fCurrentSigma > 0.0) ? 1.0/(fCurrentSigma*fCrossSecFactor) :
DBL_MAX;
193 const G4double Mele = CLHEP::electron_mass_c2;
212 G4double sint = std::sqrt(1.-cost*cost);
218 G4double Ecm = std::sqrt(0.5*Mele*(Epos+Mele));
219 G4double Pcm = std::sqrt(Ecm*Ecm - fMass*fMass);
220 G4double beta = std::sqrt((Epos-Mele)/(Epos+Mele));
226 G4double EmuPlus = gamma*(Ecm + cost*beta*Pcm);
227 G4double EmuMinus = gamma*(Ecm - cost*beta*Pcm);
228 G4double PmuPlusZ = gamma*(beta*Ecm + cost*Pcm);
229 G4double PmuMinusZ = gamma*(beta*Ecm - cost*Pcm);
230 G4double PmuPlusX = Pt*std::cos(phi);
231 G4double PmuPlusY = Pt*std::sin(phi);
235 G4double PmuPlus = std::sqrt(Pt*Pt+PmuPlusZ *PmuPlusZ );
236 G4double PmuMinus = std::sqrt(Pt*Pt+PmuMinusZ*PmuMinusZ);
240 G4ThreeVector MuPlusDirection(PmuPlusX / PmuPlus, PmuPlusY / PmuPlus, PmuPlusZ / PmuPlus);
241 G4ThreeVector MuMinusDirection(PmuMinusX / PmuMinus, PmuMinusY / PmuMinus, PmuMinusZ / PmuMinus);
245 MuPlusDirection.
rotateUz(PosiDirection);
246 MuMinusDirection.
rotateUz(PosiDirection);
251 auto aParticle1 =
new G4DynamicParticle(part1, MuPlusDirection, EmuPlus - fMass);
254 auto aParticle2 =
new G4DynamicParticle(part2, MuMinusDirection, EmuMinus - fMass);
269 G4String comments = fInfo +
" annihilation, atomic e- at rest, SubType=";
271 G4cout <<
" threshold at " << fLowEnergyLimit / CLHEP::GeV <<
" GeV"
272 <<
" good description up to " << fHighEnergyLimit / CLHEP::TeV <<
" TeV for all Z."
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *) override
G4double ComputeCrossSectionPerElectron(const G4double energy)
~G4AnnihiToMuPair() override
void BuildPhysicsTable(const G4ParticleDefinition &) override
G4bool IsApplicable(const G4ParticleDefinition &) override
void SetCrossSecFactor(G4double fac)
void PrintInfoDefinition()
G4double ComputeCrossSectionPerAtom(const G4double energy, const G4double Z)
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep) override
G4AnnihiToMuPair(const G4String &processName="AnnihiToMuPair", G4ProcessType type=fElectromagnetic)
G4double CrossSectionPerVolume(G4double positronEnergy, const G4Material *)
const G4ThreeVector & GetMomentumDirection() const
G4double GetTotalEnergy() const
static G4LossTableManager * Instance()
void DeRegister(G4VEnergyLossProcess *p)
void Register(G4VEnergyLossProcess *p)
G4double GetTotNbOfElectPerVolume() const
static G4MuonMinus * MuonMinus()
static G4MuonPlus * MuonPlus()
void AddSecondary(G4Track *aSecondary)
void Initialize(const G4Track &) override
void ProposeEnergy(G4double finalEnergy)
G4double GetPDGMass() const
static G4Positron * Positron()
static G4TauMinus * TauMinus()
static G4TauPlus * TauPlus()
G4Material * GetMaterial() const
const G4DynamicParticle * GetDynamicParticle() const
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
void ProposeTrackStatus(G4TrackStatus status)
void SetNumberOfSecondaries(G4int totSecondaries)
G4ParticleChange aParticleChange
void SetProcessSubType(G4int)
G4int GetProcessSubType() const
const G4String & GetProcessName() const