Skip to content
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

Merged

Commits on Oct 21, 2020

  1. Implementation of IsApplicable in GateScintillation to get back behav…

    …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;
     }
    m-dupont committed Oct 21, 2020
    Copy the full SHA
    54d7a70 View commit details
    Browse the repository at this point in the history