New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #346 #368
Fix issue #346 #368
Conversation
…iour of geant4 10.05. IsApplicable been changed between geant4 10.05 and geant4 10.06 which made Scintillation not applicable for gamma. Because gamma has a PDGCharge of 0.0. Here we go back to previous implementation until we find another solution (ie without bypassing geant4). Code in geant4 10.05: G4bool G4Scintillation::IsApplicable(const G4ParticleDefinition& aParticleType) { if (aParticleType.GetParticleName() == "opticalphoton") return false; if (aParticleType.IsShortLived()) return false; return true; } Code in geant4 10.06: G4bool G4Scintillation::IsApplicable(const G4ParticleDefinition& aParticleType) { return (aParticleType.GetPDGCharge() == 0.0 || aParticleType.IsShortLived()) ? false : true; }
Thanks for your good advice. The scintillation process works with the combination of GATEv9.0 and Geant4.9.05.p01. Best regards, Han Gyu Kang |
thanks ! |
Hello, Then I found this issue. Isn't this fix applied for physics list builder? Thank you so much, |
Hi, thank you for the report. @wrzof can you please have a look ? Thanks! |
Hello, I am adding more details to my previous comment for easier tracking the issue.
I also attached my macro. I will try to test with GATE v9.2. I hope to get your suggestions or solutions soon. (My macro)
|
Hello, I used the macro file above to test with GATE v9.2. With this situation, I think I will go with the deprecated way in GATE v9.0. Thank you, |
Hi, I am currently using Gate v9.0 + g4.10.6.1 (and Gate v9.0 + g4.10.6.3 on another PC) with this fix for scintillation process. If someone still works on Gate v9.0, could you make a check about this? If possible, can someone suggest which GATE and Geant4 version work best for optical simulation? Thank you so much, |
Hello, About the issue, Thank you if you have spent your time for my issue. |
This pull request aims to fix issue #346.
Implementation of IsApplicable in GateScintillation to get back behaviour of geant4 10.05.
IsApplicable has been changed between geant4 10.05 and geant4 10.06 which made Scintillation not applicable for gamma. Because gamma has a PDGCharge of 0.0. Here we go back to previous implementation until we find another solution (ie without bypassing geant4).
Code in geant4 10.05:
Code in geant4 10.06: