| Summary: | Particle polarization lost in G4PropagatorInField | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Michal Koval <michal.koval> |
| Component: | geometry/navigation | Assignee: | John Apostolakis <John.Apostolakis> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | normal | ||
| Priority: | P4 | ||
| Version: | 10.3 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Michal Koval
2017-05-04 18:10:17 CEST
In my initial assessment, your proposed change would work only if the polarization is NOT integrated by the equation of motion. Could you confirm that indeed, you are not using an equation of motion that integrate the polarization ? Best regards, John Apostolakis Yes, you are right, we are not using the equation of motion. The proposed patch we used is OK in our specific case since the effect of the magnetic field on the polarization is small in our setup; but in general the equation of motion should be used. Your proposed patch will break those cases which do use the propagation of the polarisation in the magnetic field. So we will need to figure out a different way to correct the behaviour in your use case - wanting to have the polarisation propagated, but not integrated. It is a use case which we did not consider. I will create a trial fix that allows the user to toggle a flag and request this behaviour. Though it cannot be a default it should be possible for an application to obtain it: have the polarisation state copied from the input to the output state. As it will be additional code, it may become an installation option - after verification. This would allow you to use the code with subsequent versions of Geant4 without disturbing other users. However in case this is no longer needed, please let us know. Dear John, thank you for the response. In the meantime we have included the magnetic field integration (equation of motion solving) in our simulation. Therefore, the proposed change is not necessary for us anymore. I think the bug can be closed if there are no other users that require the special option. Thank you for your response! We will close this report / request. |