59 Rc(elm_coupling/Mmuon),
60 LowestEnergyLimit (4*Mmuon),
61 HighestEnergyLimit(1e21*
eV),
126 G4double AtomicZ = (*theElementVector)[i]->GetZ();
128 SIGMA += NbOfAtomsPerVolume[i] *
165 G4double PowThres,Ecor,
B,Dn,Zthird,Winfty,WMedAppr,
176 Zthird=1./nist->
GetZ13(Z);
177 Winfty=B*Zthird*
Mmuon/(Dn*electron_mass_c2);
179 Wsatur=Winfty/WMedAppr;
180 sigfac=4.*fine_structure_const*Z*Z*
Rc*
Rc;
181 PowThres=1.479+0.00799*Dn;
182 Ecor=-18.+4347./(B*Zthird);
189 CrossSection=7./9.*sigfac*
G4Log(1.+WMedAppr*CorFuc*Eg);
200 G4cout <<
"The cross section for GammaConversionToMuons is artificially "
247 G4double sqrtx=sqrt(.25-GammaMuonInv);
255 /(1.+2.*sBZ*
Mmuon*GammaMuonInv));
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);
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 "
static G4MuonPlus * MuonPlus()
G4bool IsApplicable(const G4ParticleDefinition &)
std::vector< G4Element * > G4ElementVector
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
const G4DynamicParticle * GetDynamicParticle() const
const G4String & GetName() const
~G4GammaConversionToMuons()
G4double GetZ13(G4double Z)
G4double ComputeMeanFreePath(G4double GammaEnergy, G4Material *aMaterial)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
double B(double temperature)
static const G4double PowSat
const G4ElementVector * GetElementVector() const
static G4NistManager * Instance()
void BuildPhysicsTable(const G4ParticleDefinition &)
const G4double * GetVecNbOfAtomsPerVolume() const
G4GLOB_DLL std::ostream G4cout
static const G4double sqrte
const G4ThreeVector & GetMomentumDirection() const
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
void SetCrossSecFactor(G4double fac)
virtual G4double ComputeCrossSectionPerAtom(G4double GammaEnergy, G4double AtomicZ, G4double AtomicA)
void SetProcessSubType(G4int)
G4double GetCrossSectionPerAtom(const G4DynamicParticle *aDynamicGamma, G4Element *anElement)
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()
G4double HighestEnergyLimit
void SetNumberOfSecondaries(G4int totSecondaries)
G4double LowestEnergyLimit
void ProposeEnergy(G4double finalEnergy)
G4ParticleChange aParticleChange
void AddSecondary(G4Track *aSecondary)
static G4MuonMinus * MuonMinus()
static const G4double fac
size_t GetNumberOfElements() const
G4Element * SelectRandomAtom(const G4DynamicParticle *aDynamicGamma, G4Material *aMaterial)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4GammaConversionToMuons(const G4String &processName="GammaToMuPair", G4ProcessType type=fElectromagnetic)
void ProposeTrackStatus(G4TrackStatus status)
G4ThreeVector G4ParticleMomentum
G4int GetProcessSubType() const
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)