Import Geant4 11.0.2 source tree

This commit is contained in:
Gabriele Cosmo
2022-05-25 15:50:57 +02:00
parent de4f28d823
commit b3bf75a2a1
341 changed files with 93127 additions and 39343 deletions
+3
View File
@@ -16,6 +16,9 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
- 09 February 2022 Gabriele Cosmo (particles-V10-07-11)
- Fixed compilation warnings on Intel compiler for unused variables.
- 02 November 2021 Gabriele Cosmo (particles-V10-07-10)
- Fix for potential null pointer dereference in G4ParticleTable::FindParticle().
Based on GitHub PR#30 (https://github.com/Geant4/geant4/pull/30).
@@ -142,11 +142,11 @@ G4DecayProducts* G4MuonDecayChannel::DecayIt(G4double)
// daughters'mass
G4double daughtermass[N_DAUGHTER];
G4double sumofdaughtermass = 0.0;
//G4double sumofdaughtermass = 0.0;
for (G4int index=0; index<N_DAUGHTER; ++index)
{
daughtermass[index] = G4MT_daughters[index]->GetPDGMass();
sumofdaughtermass += daughtermass[index];
//sumofdaughtermass += daughtermass[index];
}
// create parent G4DynamicParticle at rest
@@ -116,11 +116,11 @@ G4DecayProducts* G4MuonDecayChannelWithSpin::DecayIt(G4double)
//daughters'mass
G4double daughtermass[3];
G4double sumofdaughtermass = 0.0;
//G4double sumofdaughtermass = 0.0;
for (G4int index=0; index<3; ++index)
{
daughtermass[index] = G4MT_daughters[index]->GetPDGMass();
sumofdaughtermass += daughtermass[index];
//sumofdaughtermass += daughtermass[index];
}
G4double EMASS = daughtermass[0];
@@ -148,11 +148,11 @@ G4DecayProducts* G4MuonRadiativeDecayChannelWithSpin::DecayIt(G4double)
// daughters'mass
G4double daughtermass[4];
G4double sumofdaughtermass = 0.0;
//G4double sumofdaughtermass = 0.0;
for (G4int index=0; index<4; ++index)
{
daughtermass[index] = G4MT_daughters[index]->GetPDGMass();
sumofdaughtermass += daughtermass[index];
//sumofdaughtermass += daughtermass[index];
}
G4double EMASS = daughtermass[0];
@@ -173,11 +173,11 @@ G4DecayProducts* G4PionRadiativeDecayChannel::DecayIt(G4double)
// daughters'mass
const G4int N_DAUGHTER=3;
G4double daughtermass[N_DAUGHTER];
G4double sumofdaughtermass = 0.0;
//G4double sumofdaughtermass = 0.0;
for (G4int index=0; index<N_DAUGHTER; ++index)
{
daughtermass[index] = G4MT_daughters[index]->GetPDGMass();
sumofdaughtermass += daughtermass[index];
//sumofdaughtermass += daughtermass[index];
}
G4double EMASS = daughtermass[0];