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;
281 G4double thetaPlus,thetaMinus,phiHalf;
293 f1=(1.-2.*xPM+4.*xPM*t*(1.-t)) / (1.+C1/(t*t));
294 if(f1<0 || f1> f1_max)
296 G4cout <<
"G4GammaConversionToMuons::PostStepDoIt WARNING:"
297 <<
"outside allowed range f1=" << f1 <<
" is set to zero"
304 G4double f2_max=1.-2.*xPM*(1.-4.*t*(1.-t));
312 f2=1.-2.*xPM+4.*xPM*t*(1.-t)*(1.+cos(2.*psi));
313 if(f2<0 || f2> f2_max)
315 G4cout <<
"G4GammaConversionToMuons::PostStepDoIt WARNING:"
316 <<
"outside allowed range f2=" << f2 <<
" is set to zero"
324 G4double C2Term1=GammaMuonInv/(2.*xPM*t);
325 G4double C2=4./sqrt(xPM)*pow(C2Term1*C2Term1+C2Term2*C2Term2,2.);
333 phiHalf=0.5*rho/u*sin(psi);
335 thetaPlus =GammaMuonInv*(u+xiHalf)/xPlus;
336 thetaMinus=GammaMuonInv*(u-xiHalf)/xMinus;
340 if(std::abs(thetaPlus)>
pi) { thetaPlus = 0.0; }
341 if(std::abs(thetaMinus)>
pi) { thetaMinus = 0.0; }
344 }
while ( std::abs(thetaPlus)>
pi || std::abs(thetaMinus) >
pi);
353 G4ThreeVector MuPlusDirection ( sin(thetaPlus) *cos(phi0+phiHalf),
354 sin(thetaPlus) *sin(phi0+phiHalf), cos(thetaPlus) );
355 G4ThreeVector MuMinusDirection (-sin(thetaMinus)*cos(phi0-phiHalf),
356 -sin(thetaMinus) *sin(phi0-phiHalf), cos(thetaMinus) );
358 MuPlusDirection.rotateUz(GammaDirection);
359 MuMinusDirection.rotateUz(GammaDirection);
389 if (NumberOfElements == 1)
return (*theElementVector)[0];
397 for (
G4int i=0 ; i < NumberOfElements ; ++i)
398 { PartialSumSigma += NbOfAtomsPerVolume[i] *
400 if (rval <= PartialSumSigma)
return ((*theElementVector)[i]);
402 G4cout <<
" WARNING !!! - The Material '"<< aMaterial->
GetName()
403 <<
"' has no elements, NULL pointer returned." <<
G4endl;
411 G4String comments =
"gamma->mu+mu- Bethe Heitler process, SubType= ";
414 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
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)