136#ifdef G4MULTITHREADED
137 G4MUTEXLOCK(&G4WentzelOKandVIxSection::WentzelOKandVIxSectionMutex);
151 for(
G4int j=2; j<100; ++j) {
158#ifdef G4MULTITHREADED
160 G4MUTEXUNLOCK(&G4WentzelOKandVIxSection::WentzelOKandVIxSectionMutex);
242 return cosTetMaxNuc2;
251 if(cosTMax >= 1.0) {
return xSection; }
261 xSection = x2*((1.0 - 1.3333333*x + 3*x2) - fb*x*(0.6666667 - x));
265 xSection = xlog - x1 - fb*(x + x1 - 2*xlog);
271 G4cout <<
"G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom"
272 <<
" scattering on e- <0"
274 G4cout <<
"cross= " << xSection
275 <<
" e(MeV)= " <<
tkin <<
" p(MeV/c)= " << sqrt(
mom2)
278 G4cout <<
" 1-costm= " << 1.0-costm <<
" screenZ= " <<
screenZ
298 y = x2*((1.0 - 1.3333333*x + 3*x2) - fb*x*(0.6666667 - x));
302 y = xlog - x1 - fb*(x + x1 - 2*xlog);
308 G4cout <<
"G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom"
309 <<
" scattering on nucleus <0"
347 if(elecRatio > 0.0) {
348 if(rndmEngineMod->
flat() <= elecRatio) {
365 fm =
G4Exp(-2*formf*z1);
379 *fm*fm/(1.0 + z1*
factD);
386 if(cost > 1.0) { cost = 1.0; }
387 else if(cost < -1.0) { cost =-1.0; }
388 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
391 temp.
set(sint*cos(phi),sint*sin(phi),cost);
406 (1.0 + 2.0*ratio*(tau + 1.0) + ratio*ratio);
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
static constexpr double twopi
static constexpr double eplus
static constexpr double MeV
#define G4MUTEX_INITIALIZER
#define G4MUTEXLOCK(mutex)
#define G4MUTEXUNLOCK(mutex)
G4GLOB_DLL std::ostream G4cout
void set(double x, double y, double z)
static G4Electron * Electron()
static G4EmParameters * Instance()
G4double ScreeningFactor() const
G4NuclearFormfactorType NuclearFormfactorType() const
G4double FactorForAngleLimit() const
G4double GetInvA23() const
G4IonisParamMat * GetIonisation() const
G4double GetA27(G4int Z) const
static G4NistManager * Instance()
G4double GetAtomicMassAmu(const G4String &symb) const
G4double GetPDGMass() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
G4double GetPDGSpin() const
static G4Positron * Positron()
static G4Pow * GetInstance()
G4double A13(G4double A) const
G4double Z13(G4int Z) const
G4double Z23(G4int Z) const
static G4Proton * Proton()
void SetupKinematic(G4double kinEnergy, G4int Z)
void Initialise(const G4ParticleDefinition *, G4double cosThetaLim)
G4double RatioMottRutherfordCosT(G4double sin2t2)
G4double SetupTarget(G4int Z, G4double cut)
void SetTargetMass(G4double value)
static G4double ScreenRSquareElec[100]
G4double ComputeSecondTransportMoment(G4double CosThetaMax)
void ComputeMaxElectronScattering(G4double cut)
virtual ~G4WentzelOKandVIxSection()
const G4ParticleDefinition * theProton
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)
G4NistManager * fNistManager
const G4ParticleDefinition * thePositron
const G4ParticleDefinition * particle
G4WentzelOKandVIxSection(G4bool comb=true)
G4double ComputeTransportCrossSectionPerAtom(G4double CosThetaMax)
void SetupParticle(const G4ParticleDefinition *)
static G4double ScreenRSquare[100]
virtual G4double SetupKinematic(G4double kinEnergy, const G4Material *mat)
G4ScreeningMottCrossSection * fMottXSection
G4NuclearFormfactorType fNucFormfactor
G4double FlatFormfactor(G4double x)
G4ThreeVector & SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio)
const G4ParticleDefinition * theElectron
static G4double FormFactor[100]
const G4Material * currentMaterial
static constexpr double electron_mass_c2
static constexpr double amu_c2
static constexpr double proton_mass_c2
static constexpr double fine_structure_const
static constexpr double twopi
static constexpr double MeV
static constexpr double classic_electr_radius
static constexpr double hbarc
static constexpr double pi
static constexpr double fermi
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments