67 flucModel(nullptr),anglModel(nullptr),
name(nam), lowLimit(0.1*CLHEP::
keV),
68 highLimit(100.0*CLHEP::
TeV),eMinActive(0.0),eMaxActive(
DBL_MAX),
69 polarAngleLimit(CLHEP::
pi),secondaryThreshold(
DBL_MAX),
70 theLPMflag(false),flagDeexcitation(false),flagForceBuildTable(false),
71 isMaster(true),fElementData(nullptr),pParticleChange(nullptr),
72 xSectionTable(nullptr),theDensityFactor(nullptr),theDensityIdx(nullptr),
73 lossFlucFlag(true),
inveplus(1.0/CLHEP::
eplus),fCurrentCouple(nullptr),
74 fCurrentElement(nullptr),fCurrentIsotope(nullptr),
75 fTripletModel(nullptr),nsec(5)
96 delete (*elmSelectors)[i];
179 for(
G4int i=0; i<numOfCouples; ++i) {
182 if(cuts[i] ==
DBL_MAX) {
continue; }
190 if(material == ((*
elmSelectors)[i])->GetMaterial()) { create =
false; }
191 else {
delete (*elmSelectors)[i]; }
204 ((*elmSelectors)[i])->
Initialise(part, cuts[i]);
229 for(
size_t i=0; i<
n; ++i) {
260 const G4double* theAtomNumDensityVector =
267 for (
G4int i=0; i<nelm; ++i) {
268 cross += theAtomNumDensityVector[i]*
302 for(
size_t i=0; i<
n; ++i) {
322 for(
size_t i=0; i<
nn; ++i) {
344 for(; idx<ni; ++idx) {
486 outFile <<
"The description for this model has not been written yet."
void SetCrossSectionTable(G4PhysicsTable *, G4bool isLocal)
G4double GetKineticEnergy() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual G4double GetPartialCrossSection(const G4Material *, G4int level, const G4ParticleDefinition *, G4double kineticEnergy)
virtual void SetupForMaterial(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4int SelectRandomAtomNumber(const G4Material *)
G4int NumberOfBinsPerDecade() const
G4double * GetRelativeAbundanceVector() const
G4VEmModel * fTripletModel
const G4MaterialCutsCouple * fCurrentCouple
const G4Isotope * fCurrentIsotope
static constexpr double keV
G4VEmAngularDistribution * anglModel
virtual G4double GetChargeSquareRatio(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4int SelectIsotopeNumber(const G4Element *)
G4double GetPDGCharge() const
const G4double * GetVecNbOfAtomsPerVolume() const
G4ElementData * fElementData
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
static const G4double emax
const G4ParticleDefinition * GetParticleDefinition() const
void SetCurrentCouple(const G4MaterialCutsCouple *)
virtual void DefineForRegion(const G4Region *)
void SetCurrentElement(const G4Element *)
G4double G4Log(G4double x)
G4ParticleChangeForLoss * GetParticleChangeForLoss()
static constexpr double TeV
void Register(G4VEnergyLossProcess *p)
std::vector< G4double > xsec
virtual void InitialiseForElement(const G4ParticleDefinition *, G4int Z)
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
G4VEmFluctuationModel * flucModel
virtual void CorrectionsAlongStep(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double &eloss, G4double &niel, G4double length)
virtual void StartTracking(G4Track *)
void DeRegister(G4VEnergyLossProcess *p)
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kineticEnergy)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
virtual G4double ComputeCrossSectionPerShell(const G4ParticleDefinition *, G4int Z, G4int shellIdx, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
G4Material * GetMaterial() const
size_t GetTableSize() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)=0
virtual void InitialiseForMaterial(const G4ParticleDefinition *, const G4Material *)
static G4ProductionCutsTable * GetProductionCutsTable()
virtual G4double GetParticleCharge(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
static constexpr double eplus
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
G4VParticleChange * pParticleChange
void SetParticleChange(G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
G4bool useAngularGenerator
G4LossTableManager * fEmManager
static G4LossTableManager * Instance()
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
const G4Isotope * GetIsotope(G4int iso) const
const G4Element * fCurrentElement
const G4Material * GetMaterial() const
static constexpr double pi
G4ParticleChangeForGamma * GetParticleChangeForGamma()
virtual G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double cut=0.0)
G4double GetTotNbOfAtomsPerVolume() const
virtual void ModelDescription(std::ostream &outFile) const
virtual G4double ChargeSquareRatio(const G4Track &)
G4PhysicsTable * xSectionTable
G4VEmModel(const G4String &nam)
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
const G4Element * GetElement(G4int iel) const
virtual G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *)
virtual G4double Value(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
virtual void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel)
static G4EmParameters * Instance()
size_t GetNumberOfElements() const
std::vector< G4EmElementSelector * > * elmSelectors
size_t GetNumberOfIsotopes() const