80 singleScatteringMode(false)
145 G4Exception(
"G4WentzelVIModel::ComputeCrossSectionPerAtom",
"em0011",
180 G4double tlimit = currentMinimalStep;
248 if(rcut > rlimit) { rlimit =
std::min(rlimit, rcut*sqrt(rlimit/rcut)); }
250 if(rlimit < tlimit) { tlimit = rlimit; }
328 static const G4double singleScatLimit = 1.0e-7;
376 }
else if(
xtsec > 0.0) {
443 if(z0 > zzmin) { zzz =
G4Exp(-1.0/z0); }
505 for (; i<nelm; ++i) {
if(
xsecn[i] >= qsec) {
break; } }
532 if(cost > 1.0) { cost = 1.0; }
533 else if(cost < -1.0) { cost =-1.0; }
534 sint = sqrt((1.0 - cost)*(1.0 + cost));
557 temp.set(vx1,vy1,cost);
561 }
while (0 < nMscSteps);
563 dir.rotateUz(oldDirection);
594 const G4double* theAtomNumDensityVector =
612 for (
G4int i=0; i<nelm; ++i) {
628 if(nucsec > 0.0) { esec /= nucsec; }
virtual ~G4WentzelVIModel()
ThreeVector shoot(const G4int Ap, const G4int Af)
G4WentzelOKandVIxSection * wokvi
std::vector< G4double > prob
static G4LossTableManager * Instance()
G4WentzelVIModel(const G4String &nam="WentzelVIUni")
std::vector< G4Element * > G4ElementVector
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
const G4DynamicParticle * GetDynamicParticle() const
G4ThreeVector SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio=0.0)
G4double GetProductionCut(G4int index) const
G4bool singleScatteringMode
G4StepStatus GetStepStatus() const
virtual G4ThreeVector & SampleScattering(const G4ThreeVector &, G4double safety)
void DefineMaterial(const G4MaterialCutsCouple *)
G4double ConvertTrueToGeom(G4double &tLength, G4double &gLength)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
const G4MaterialCutsCouple * currentCouple
G4ParticleChangeForMSC * fParticleChange
G4ParticleDefinition * GetDefinition() const
const G4Material * currentMaterial
const G4Step * GetStep() const
const G4ElementVector * GetElementVector() const
G4double SetupTarget(G4int Z, G4double cut=DBL_MAX)
virtual G4double ComputeTruePathLengthLimit(const G4Track &track, G4double ¤tMinimalStep)
G4StepPoint * GetPreStepPoint() const
G4double GetEnergy(const G4ParticleDefinition *part, G4double range, const G4MaterialCutsCouple *couple)
G4double ComputeTransportCrossSectionPerAtom(G4double CosThetaMax)
std::vector< G4double > xsecn
const G4double * GetVecNbOfAtomsPerVolume() const
const G4MaterialCutsCouple * CurrentCouple() const
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double KineticEnergy, G4double AtomicNumber, G4double AtomicWeight=0., G4double cut=DBL_MAX, G4double emax=DBL_MAX)
const G4ThreeVector & GetPosition() const
G4double GetRange(const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
G4ParticleChangeForMSC * GetParticleChangeForMSC(const G4ParticleDefinition *p=0)
G4double SetupKinematic(G4double kinEnergy, const G4Material *mat)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
G4double ComputeXSectionPerVolume()
G4double ComputeGeomLimit(const G4Track &, G4double &presafety, G4double limit)
G4ThreeVector fDisplacement
G4double GetTransportMeanFreePath(const G4ParticleDefinition *part, G4double kinEnergy)
G4double GetRadlen() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double ComputeSafety(const G4ThreeVector &position, G4double limit)
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
void ProposeMomentumDirection(const G4ThreeVector &Pfinal)
G4double ComputeElectronCrossSection(G4double CosThetaMin, G4double CosThetaMax)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void SetupParticle(const G4ParticleDefinition *)
const G4DataVector * currentCuts
void StartTracking(G4Track *)
G4double ComputeNuclearCrossSection(G4double CosThetaMin, G4double CosThetaMax)
G4double PolarAngleLimit() const
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
const G4ParticleDefinition * particle
G4double GetSafety() const
G4MscStepLimitType steppingAlgorithm
size_t GetNumberOfElements() const
virtual G4double ComputeTrueStepLength(G4double geomStepLength)
G4ProductionCuts * GetProductionCuts() const
G4int currentMaterialIndex
G4LossTableManager * theManager
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)
virtual G4double ComputeGeomPathLength(G4double truePathLength)