67 G4int G4VAtomDeexcitation::pixeIDg = -1;
68 G4int G4VAtomDeexcitation::pixeIDe = -1;
72 : lowestKinEnergy(
keV), verbose(1),
name(modname), namePIXE(pname),
73 nameElectronPIXE(
""), isActive(false), flagAuger(false), flagPIXE(false)
98 if(0 == numOfCouples) { numOfCouples = 1; }
100 activeDeexcitationMedia.resize(numOfCouples,
false);
101 activeAugerMedia.resize(numOfCouples,
false);
102 activePIXEMedia.resize(numOfCouples,
false);
103 activeZ.resize(93,
false);
106 if( !isActive ) {
return; }
109 size_t nRegions = deRegions.size();
118 G4cout <<
"### === Deexcitation model " <<
name
119 <<
" is activated for " << nRegions;
126 for(
size_t j=0; j<nRegions; ++j) {
133 for(
size_t i=0; i<numOfCouples; ++i) {
137 activeDeexcitationMedia[i] = deRegions[j];
138 activeAugerMedia[i] = AugerRegions[j];
139 activePIXEMedia[i] = PIXERegions[j];
145 for(
G4int k=0; k<nelm; ++k) {
147 if(Z > 5 && Z < 93) {
160 if(0 < verbose && flagPIXE) {
161 G4cout <<
"### === PIXE model for hadrons: " << namePIXE
164 G4cout <<
"### === PIXE model for e+-: " << nameElectronPIXE
182 if(ss ==
"world" || ss ==
"World" || ss ==
"WORLD") {
183 ss =
"DefaultRegionForTheWorld";
185 size_t n = deRegions.size();
187 for(
size_t i=0; i<
n; ++i) {
190 if(ss == activeRegions[i]) {
191 deRegions[i] = valDeexcitation;
192 AugerRegions[i] = valAuger;
193 PIXERegions[i] = valPIXE;
199 activeRegions.push_back(ss);
200 deRegions.push_back(valDeexcitation);
201 AugerRegions.push_back(valAuger);
202 PIXERegions.push_back(valPIXE);
214 if(!flagPIXE && !activePIXEMedia[coupleIndex]) {
return; }
215 if(eLossMax <= 0.0 || truelength <= 0.0) {
return; }
241 const G4double* theAtomNumDensityVector =
246 for(
G4int i=0; i<nelm; ++i) {
248 if(activeZ[Z] && Z < 93) {
250 std::min(9,(*theElementVector)[i]->GetNbOfAtomicShells());
251 G4double rho = truelength*theAtomNumDensityVector[i];
253 for(
G4int ii=0; ii<nshells; ++ii) {
258 if(gCut > bindingEnergy) {
break; }
260 if(eLossMax > bindingEnergy) {
272 if( stot > 1.0 || eLossMax < bindingEnergy) {
break; }
276 G4int nsec = vdyn.size();
280 for(
G4int j=0; j<nsec; ++j) {
302 }
while (stot < 1.0);
G4ParticleDefinition * GetDefinition() const
G4ProductionCuts * GetProductionCuts() const
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
const std::vector< G4double > * GetEnergyCutsVector(size_t pcIdx) const
void InitialiseAtomicDeexcitation()
void AlongStepDeexcitation(std::vector< G4Track * > &tracks, const G4Step &step, G4double &eLoss, G4int coupleIndex)
std::vector< G4Element * > G4ElementVector
G4double GetKineticEnergy() const
G4double GetStepLength() const
G4bool IsPIXEActive() const
G4Material * GetMaterial() const
virtual G4double GetShellIonisationCrossSectionPerAtom(const G4ParticleDefinition *, G4int Z, G4AtomicShellEnumerator shell, G4double kinE, const G4Material *mat=0)=0
void SetDeexcitationActiveRegion(const G4String &rname, G4bool valDeexcitation, G4bool valAuger, G4bool valPIXE)
G4ParticleDefinition * GetDefinition() const
G4double BindingEnergy() const
const G4ElementVector * GetElementVector() const
void SetCreatorModelIndex(G4int idx)
static G4RegionStore * GetInstance()
G4StepPoint * GetPreStepPoint() const
virtual const G4AtomicShell * GetAtomicShell(G4int Z, G4AtomicShellEnumerator shell)=0
const G4double * GetVecNbOfAtomsPerVolume() const
G4GLOB_DLL std::ostream G4cout
size_t GetTableSize() const
const G4ThreeVector & GetPosition() const
G4VAtomDeexcitation(const G4String &modname="Deexcitation", const G4String &pixename="")
static G4ProductionCutsTable * GetProductionCutsTable()
G4bool CheckAugerActiveRegion(G4int coupleIndex)
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
G4StepPoint * GetPostStepPoint() const
virtual ~G4VAtomDeexcitation()
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
virtual void InitialiseForNewRun()=0
G4double GetGlobalTime() const
size_t GetNumberOfElements() const
static G4int Register(G4String &)
G4double GetKineticEnergy() const
void GenerateParticles(std::vector< G4DynamicParticle * > *secVect, const G4AtomicShell *, G4int Z, G4int coupleIndex)
G4Track * GetTrack() const
G4double bindingEnergy(G4int A, G4int Z)
G4ProductionCuts * GetProductionCuts() const
const G4Material * GetMaterial() const