Import Geant4 10.7.2 source tree
This commit is contained in:
@@ -16,6 +16,10 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
26 May 21: D. Sawkey (xrays-V10-06-09)
|
||||
- G4Scintillation: change IsApplicable to all particles except opticalphoton
|
||||
and short-lived. Address bug 2372.
|
||||
|
||||
5 October 20: D. Sawkey (xrays-V10-06-08)
|
||||
- G4Cerenkov, G4Scintillation: apply clang-format style guidelines
|
||||
|
||||
|
||||
@@ -123,9 +123,11 @@ G4Scintillation::~G4Scintillation()
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
G4bool G4Scintillation::IsApplicable(const G4ParticleDefinition& aParticleType)
|
||||
{
|
||||
return (aParticleType.GetPDGCharge() == 0.0 || aParticleType.IsShortLived())
|
||||
? false
|
||||
: true;
|
||||
if (aParticleType.GetParticleName() == "opticalphoton")
|
||||
return false;
|
||||
if (aParticleType.IsShortLived())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user