60 LowestEnergyLimit (4.*Mmuon),
61 HighestEnergyLimit(1e21*
eV),
104 if (GammaEnergy <= LowestEnergyLimit)
126 G4double AtomicZ = (*theElementVector)[i]->GetZ();
128 SIGMA += NbOfAtomsPerVolume[i] *
159 if(Egam <= LowestEnergyLimit)
return 0.0 ;
165 G4double PowThres,Ecor,
B,Dn,Zthird,Winfty,WMedAppr,
176 Zthird=1./nist->
GetZ13(Z);
178 WMedAppr=1./(4.*Dn*
sqrte*Mmuon);
179 Wsatur=Winfty/WMedAppr;
181 PowThres=1.479+0.00799*Dn;
182 Ecor=-18.+4347./(B*Zthird);
189 CrossSection=7./9.*sigfac*
G4Log(1.+WMedAppr*CorFuc*Eg);
190 CrossSection*=CrossSecFactor;
200 G4cout <<
"The cross section for GammaConversionToMuons is artificially "
201 <<
"increased by the CrossSecFactor=" << CrossSecFactor <<
G4endl;
219 if (Egam <= LowestEnergyLimit) {
225 const G4Element* anElement = SelectRandomAtom(aDynamicGamma, aMaterial);
247 G4double sqrtx=sqrt(.25-GammaMuonInv);
255 /(1.+2.*sBZ*Mmuon*GammaMuonInv));
258 const G4int nmax = 1000;
263 G4double del=Mmuon*Mmuon/(2.*Egam*xPM);
264 W=Winfty*(1.+Ds2*del/Mmuon)/(1.+sBZ*del);
265 if(W<=1. || nn > nmax) {
break; }
267 result=xxp*
G4Log(W)*LogWmaxInv;
269 G4cout <<
"G4GammaConversionToMuons::PostStepDoIt WARNING:"
270 <<
" in dSigxPlusGen, result=" << result <<
" > 1" <<
G4endl;
273 if(nn >= nmax) {
break; }
283 G4double thetaPlus,thetaMinus,phiHalf;
295 f1=(1.-2.*xPM+4.*xPM*t*(1.-t)) / (1.+C1/(t*t));
296 if(f1<0 || f1> f1_max)
298 G4cout <<
"G4GammaConversionToMuons::PostStepDoIt WARNING:"
299 <<
"outside allowed range f1=" << f1 <<
" is set to zero"
303 if(nn > nmax) {
break; }
308 G4double f2_max=1.-2.*xPM*(1.-4.*t*(1.-t));
316 f2=1.-2.*xPM+4.*xPM*t*(1.-t)*(1.+cos(2.*psi));
317 if(f2<0 || f2> f2_max)
319 G4cout <<
"G4GammaConversionToMuons::PostStepDoIt WARNING:"
320 <<
"outside allowed range f2=" << f2 <<
" is set to zero"
324 if(nn >= nmax) {
break; }
330 G4double C2Term1=GammaMuonInv/(2.*xPM*t);
331 G4double C2=4./sqrt(xPM)*pow(C2Term1*C2Term1+C2Term2*C2Term2,2.);
339 phiHalf=0.5*rho/u*sin(psi);
341 thetaPlus =GammaMuonInv*(u+xiHalf)/xPlus;
342 thetaMinus=GammaMuonInv*(u-xiHalf)/xMinus;
346 if(std::abs(thetaPlus)>
pi) { thetaPlus = 0.0; }
347 if(std::abs(thetaMinus)>
pi) { thetaMinus = 0.0; }
351 }
while ( std::abs(thetaPlus)>
pi || std::abs(thetaMinus) >
pi);
360 G4ThreeVector MuPlusDirection ( sin(thetaPlus) *cos(phi0+phiHalf),
361 sin(thetaPlus) *sin(phi0+phiHalf), cos(thetaPlus) );
362 G4ThreeVector MuMinusDirection (-sin(thetaMinus)*cos(phi0-phiHalf),
363 -sin(thetaMinus) *sin(phi0-phiHalf), cos(thetaMinus) );
365 MuPlusDirection.
rotateUz(GammaDirection);
366 MuMinusDirection.
rotateUz(GammaDirection);
388 G4Element* G4GammaConversionToMuons::SelectRandomAtom(
396 if (NumberOfElements == 1)
return (*theElementVector)[0];
404 for (
G4int i=0 ; i < NumberOfElements ; ++i)
405 { PartialSumSigma += NbOfAtomsPerVolume[i] *
407 if (rval <= PartialSumSigma)
return ((*theElementVector)[i]);
409 G4cout <<
" WARNING !!! - The Material '"<< aMaterial->
GetName()
410 <<
"' has no elements, NULL pointer returned." <<
G4endl;
418 G4String comments =
"gamma->mu+mu- Bethe Heitler process, SubType= ";
421 G4cout <<
" good cross section parametrization from "
423 <<
" to " << HighestEnergyLimit/
GeV <<
" GeV for all Z." <<
G4endl;
G4double G4ParticleHPJENDLHEData::G4double result
static G4MuonPlus * MuonPlus()
std::vector< G4Element * > G4ElementVector
G4double GetKineticEnergy() const
const G4DynamicParticle * GetDynamicParticle() const
const G4String & GetName() const
G4double GetA27(G4int Z) const
~G4GammaConversionToMuons()
G4double ComputeMeanFreePath(G4double GammaEnergy, G4Material *aMaterial)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
double B(double temperature)
static constexpr double g
static const G4double PowSat
const G4ElementVector * GetElementVector() const
static G4NistManager * Instance()
static constexpr double electron_mass_c2
G4double GetZ13(G4double Z) const
const G4double * GetVecNbOfAtomsPerVolume() const
G4GLOB_DLL std::ostream G4cout
static const G4double sqrte
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep) override
G4bool IsApplicable(const G4ParticleDefinition &) override
const G4ThreeVector & GetMomentumDirection() const
void SetCrossSecFactor(G4double fac)
Hep3Vector & rotateUz(const Hep3Vector &)
virtual G4double ComputeCrossSectionPerAtom(G4double GammaEnergy, G4double AtomicZ, G4double AtomicA)
static constexpr double eV
void SetProcessSubType(G4int)
G4double GetCrossSectionPerAtom(const G4DynamicParticle *aDynamicGamma, G4Element *anElement)
void BuildPhysicsTable(const G4ParticleDefinition &) override
const G4String & GetProcessName() const
G4Material * GetMaterial() const
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
virtual void Initialize(const G4Track &)
void PrintInfoDefinition()
void SetNumberOfSecondaries(G4int totSecondaries)
void ProposeEnergy(G4double finalEnergy)
G4ParticleChange aParticleChange
static constexpr double GeV
void AddSecondary(G4Track *aSecondary)
static constexpr double elm_coupling
static G4MuonMinus * MuonMinus()
static const G4double fac
static constexpr double pi
size_t GetNumberOfElements() const
G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition) override
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4GammaConversionToMuons(const G4String &processName="GammaToMuPair", G4ProcessType type=fElectromagnetic)
void ProposeTrackStatus(G4TrackStatus status)
static constexpr double fine_structure_const
G4int GetProcessSubType() const
static constexpr double mole
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)