124 const std::vector<G4String> regnamesPAI = theParameters->
RegionsPAI();
125 if(regnamesPAI.size() > 0)
130 if(regnamesME.size() > 0)
134 const std::vector<G4String> regnamesMSC = theParameters->
RegionsMsc();
135 if(regnamesMSC.size() > 0)
143 void G4EmModelActivator::ActivateEmOptions()
145 const std::vector<G4String> regnamesMSC = theParameters->
RegionsMsc();
146 G4int nreg = regnamesMSC.size();
147 if(0 == nreg) {
return; }
150 G4cout <<
"### G4EmModelActivator::ActivateEmOptions for " << nreg <<
" regions"
153 const std::vector<G4String> typesMSC = theParameters->
TypesMsc();
164 for(
G4int i=0; i<nreg; ++i) {
167 G4cout << i <<
". region <" << reg <<
">; type <" << typesMSC[i] <<
"> "
171 if(baseName == typesMSC[i]) {
continue; }
173 if(
"G4EmStandard" == typesMSC[i]) {
181 }
else if(
"G4EmStandard_opt1" == typesMSC[i] ||
182 "G4EmStandard_opt2" == typesMSC[i]) {
194 }
else if(
"G4EmStandard_opt3" == typesMSC[i]) {
212 FindOrAddProcess(phot,
"Rayl");
216 }
else if(
"G4EmStandard_opt4" == typesMSC[i]) {
231 FindOrAddProcess(phot,
"Rayl");
235 }
else if(
"G4EmStandardGS" == typesMSC[i]) {
247 }
else if(
"G4EmStandardWVI" == typesMSC[i]) {
255 FindOrAddProcess(elec,
"CoulombScat");
256 FindOrAddProcess(posi,
"CoulombScat");
267 }
else if(
"G4EmStandardSS" == typesMSC[i] &&
268 baseName !=
"G4EmStandard_opt3") {
304 }
else if(
"G4EmLivermore" == typesMSC[i]) {
313 FindOrAddProcess(phot,
"Rayl");
328 }
else if(
"G4EmPenelope" == typesMSC[i]) {
336 FindOrAddProcess(phot,
"Rayl");
359 }
else if(
"G4RadioactiveDecay" == typesMSC[i]) {
371 G4cout <<
"### G4EmModelActivator::ActivateEmOptions WARNING: \n"
372 <<
" EM Physics configuration name <" << typesMSC[i]
373 <<
"> is not known - ignored" <<
G4endl;
381 void G4EmModelActivator::ActivatePAI()
383 const std::vector<G4String> regnamesPAI = theParameters->
RegionsPAI();
384 G4int nreg = regnamesPAI.size();
385 if(0 == nreg) {
return; }
388 G4cout <<
"### G4EmModelActivator::ActivatePAI for " << nreg <<
" regions"
391 const std::vector<G4String> particlesPAI = theParameters->
ParticlesPAI();
392 const std::vector<G4String> typesPAI = theParameters->
TypesPAI();
396 std::vector<G4VEnergyLossProcess*>::const_iterator itr;
405 for(
G4int i = 0; i < nreg; ++i) {
407 if(particlesPAI[i] !=
"all") {
410 G4cout <<
"### WARNING: ActivatePAI::FindParticle fails to find "
411 << particlesPAI[i] <<
G4endl;
417 G4cout <<
"### WARNING: ActivatePAI::GetRegion fails to find "
418 << regnamesPAI[i] <<
G4endl;
423 if(p == elec || p == posi)
425 else if (p == mupl || p == mumi)
428 { name =
"ionIoni"; }
430 for(itr = v.begin(); itr != v.end(); ++itr) {
437 if(name != namep) {
continue; }
439 if(namep !=
"hIoni" && namep !=
"muIoni" && namep !=
"eIoni")
444 if(typesPAI[i] ==
"PAIphoton") {
455 G4cout <<
"### G4EmModelActivator: add <" << typesPAI[i]
456 <<
"> model for " << particlesPAI[i]
457 <<
" in the " << regnamesPAI[i] <<
G4endl;
465 void G4EmModelActivator::ActivateMicroElec()
468 G4int nreg = regnamesME.size();
476 G4cout <<
"### G4EmModelActivator::ActivateMicroElec for " << nreg
488 G4bool emsc = HasMsc(eman);
521 for(
G4int i = 0; i < nreg; ++i)
525 G4cout <<
"### MicroElec models are activated for G4Region " << reg
527 <<
" Energy limits for e- elastic: " << elowest/
eV <<
" eV - "
528 << elimel/
MeV <<
" MeV"
530 <<
" Energy limits for e- inelastic: " << elowest/
eV <<
" eV - "
531 << elimin/
MeV <<
" MeV"
533 <<
" Energy limits for hadrons/ions: " << pmin/
MeV <<
" MeV - "
534 << pmax/
MeV <<
" MeV"
547 em_config->
SetExtraEmModel(
"e-",
"CoulombScat", mod, reg, 0.0, elimel);
552 "e-G4MicroElecElastic",
570 "e-G4MicroElecInelastic",
599 "p_G4MicroElecInelastic",
628 "ion_G4MicroElecInelastic",
643 for(
G4int i = 0; i < nproc; ++i)
660 for(
G4int i = 0; i<nproc; ++i) {
661 if(((*pv)[i])->GetProcessName() == name) {
return; }
663 if(name ==
"CoulombScat") {
667 }
else if(name ==
"Rayl") {
G4EmConfigurator * EmConfigurator()
void SetActivationHighEnergyLimit(G4double)
static G4MuonPlus * MuonPlus()
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4LossTableManager * Instance()
void SetDeexcitationIgnoreCut(G4bool val)
void SetAuger(G4bool val)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void SetExtraEmModel(const G4String &particleName, const G4String &processName, G4VEmModel *, const G4String ®ionName="", G4double emin=0.0, G4double emax=DBL_MAX, G4VEmFluctuationModel *fm=nullptr)
const std::vector< G4String > & ParticlesPAI() const
const std::vector< G4String > & RegionsMicroElec() const
const std::vector< G4String > & RegionsPAI() const
void SetStepLimitType(G4MscStepLimitType)
void SetDeexActiveRegion(const G4String ®ion, G4bool fdeex, G4bool fauger, G4bool fpixe)
const std::vector< G4String > & RegionsMsc() const
static const G4double reg
static constexpr double TeV
static G4RegionStore * GetInstance()
void AddEmModel(G4int, G4VEmModel *, G4VEmFluctuationModel *fluc=0, const G4Region *region=nullptr)
void SetEmModel(G4VEmModel *, G4int index=1)
G4GLOB_DLL std::ostream G4cout
void SetRangeFactor(G4double)
void SetAugerCascade(G4bool val)
static G4Proton * Proton()
static constexpr double eV
const G4String & GetProcessName() const
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
void SetActivationLowEnergyLimit(G4double)
static G4Positron * Positron()
static G4GenericIon * GenericIon()
const std::vector< G4String > & TypesMsc() const
static G4ParticleTable * GetParticleTable()
G4ProcessManager * GetProcessManager() const
static G4EmParameters * Instance()
void DefineRegParamForDeex(G4VAtomDeexcitation *) const
static constexpr double GeV
G4EmModelActivator(const G4String &emphys="")
static G4MuonMinus * MuonMinus()
static G4Electron * Electron()
static constexpr double MeV
G4VAtomDeexcitation * AtomDeexcitation()
G4int GetProcessListLength() const
static constexpr double keV
const std::vector< G4String > & TypesPAI() const
void SetPolarAngleLimit(G4double)
G4ProcessVector * GetProcessList() const
G4bool IsIonisationProcess() const