| Summary: | energy loss greater than initial energy when using LowEnergy package | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Robert Freudenberg <robert.freudenberg> |
| Component: | processes/electromagnetic/lowenergy | Assignee: | Maria.Grazia.Pia |
| Status: | CLOSED INVALID | ||
| Severity: | normal | CC: | Maria.Grazia.Pia |
| Priority: | P3 | ||
| Version: | 9.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Output for standard and LowEnergy librarys | ||
|
Description
Robert Freudenberg
2008-02-25 08:35:33 CET
This issue will be investigated in association with the design iteration foreseen in the energy loss domain. The approximate time scale for this activity ranks it as second topic of work, immediately after the termination of the current activities subject to external deadlines in March. Best regards, Maria Grazia Pia The wrong energy deposition with the lowenergy package is not a bug, but a matter of wrong process ordering in the user code.
The user must replace his code:
else if(particleName == "e-")
{
//electron
pMan->AddProcess(new G4MultipleScattering, -1, 1, 1);
pMan->AddProcess(new G4LowEnergyIonisation, -1, 2, 2);
pMan->AddProcess(new G4LowEnergyBremsstrahlung, -1, 3, 3);
}
with the following one:
else if(particleName == "e-")
{
//electron
pMan->AddProcess(new G4MultipleScattering, -1, 1, 1);
pMan->AddProcess(new G4LowEnergyIonisation, -1, 2, 2);
pMan->AddProcess(new G4LowEnergyBremsstrahlung, -1, -1, 3);
}
That means, the Bremsstrahlung process must NOT be activated for the along step
action, since it is automatically activated by the ionization
process (which is registered for the along step action).
Thus if one registers also Bremsstrahlung for the along step action, double
counting occurs.
Examples of proper usage can be found in Geant4 advanced examples using the lowenergy package: for instance, the PhysicsList of hadrontherapy (developed by Anton Lechner), brachytherapy, medical_linac, radioprotection etc.
Best regards,
Maria Grazia Pia
The problem has been identified in the user code, not in Geant4. |