| Summary: | PAI model does not respect SetLowEnergyLimit() method for a Region | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | alexander.howard |
| Component: | processes/electromagnetic/standard | Assignee: | Vladimir.Ivantchenko |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | Alberto.Ribon |
| Priority: | P4 | ||
| Version: | 10.4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
alexander.howard
2018-04-05 11:47:31 CEST
The following code works if added to G4EmModelActivator::ActivatePAI() at the end of the "for(itr = v.begin(); itr != v.end(); ++itr) {" loop:
if(namep == "eIoni") {
G4MollerBhabhaModel * mod = new G4MollerBhabhaModel();
G4UniversalFluctuation* uf = new G4UniversalFluctuation();
mod->SetLowEnergyLimit(0*eV);
mod->SetHighEnergyLimit(70*eV);
proc->AddEmModel(0, mod, uf, r);
} else if(namep == "hIoni" || namep != "muIoni") {
G4BraggModel * mod = new G4BraggModel();
G4UniversalFluctuation* uf = new G4UniversalFluctuation();
mod->SetLowEnergyLimit(0*eV);
mod->SetHighEnergyLimit(70*eV);
proc->AddEmModel(0, mod, uf, r);
}
Hi Alex, the issue is fixed and the fix will be in the next reference tag. Vladimir |