Import Geant4 11.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2024-12-06 11:11:40 +01:00
parent e58e650b32
commit 32390e802b
1984 changed files with 98713 additions and 83996 deletions
@@ -6,6 +6,10 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2024-11-20 Gabriele Cosmo (exampleRE07-V11-02-01)
- In TrackingManagerHelper, fixed compilation warning on clang-19 for unused
variable. Fixed use of G4 types.
## 2024-05-02 Gabriele Cosmo (exampleRE07-V11-02-00)
- Fixed compilation warnings for potentially initialised local variable
in EmStandardPhysicsTrackingManager::PostStepDoIt().
@@ -127,7 +127,7 @@ void TrackingManagerHelper::TrackParticle(
G4double physicalStep = physics.GetPhysicalInteractionLength(*aTrack);
G4double geometryStep = navigation.MakeStep(*aTrack, step, physicalStep);
bool geometryLimitedStep = geometryStep < physicalStep;
G4bool geometryLimitedStep = geometryStep < physicalStep;
G4double finalStep = geometryLimitedStep ? geometryStep : physicalStep;
step.SetStepLength(finalStep);
@@ -248,10 +248,10 @@ void TrackingManagerHelper::TrackChargedParticle(G4Track* aTrack, PhysicsImpl& p
G4ThreeVector dir = track.GetMomentumDirection();
G4StepPoint& postStepPoint = *step.GetPostStepPoint();
bool fieldExertsForce = false;
G4bool fieldExertsForce = false;
if (auto* fieldMgr = fFieldPropagator->FindAndSetFieldManager(track.GetVolume())) {
fieldMgr->ConfigureForTrack(&track);
if (const G4Field* ptrField = fieldMgr->GetDetectorField()) {
if (fieldMgr->GetDetectorField() != nullptr) {
fieldExertsForce = true;
}
}
@@ -334,8 +334,8 @@ void TrackingManagerHelper::TrackChargedParticle(G4Track* aTrack, PhysicsImpl& p
}
// Update global, local, and proper time.
double velocity = track.GetVelocity();
double deltaTime = 0;
G4double velocity = track.GetVelocity();
G4double deltaTime = 0;
if (velocity > 0) {
deltaTime = physicalStep / velocity;
}
@@ -343,8 +343,8 @@ void TrackingManagerHelper::TrackChargedParticle(G4Track* aTrack, PhysicsImpl& p
postStepPoint.AddGlobalTime(deltaTime);
postStepPoint.AddLocalTime(deltaTime);
double restMass = track.GetDynamicParticle()->GetMass();
double deltaProperTime = deltaTime * (restMass / track.GetTotalEnergy());
G4double restMass = track.GetDynamicParticle()->GetMass();
G4double deltaProperTime = deltaTime * (restMass / track.GetTotalEnergy());
postStepPoint.AddProperTime(deltaProperTime);
// Compute safety, including the call to safetyHelper, but don't set the
@@ -457,16 +457,16 @@ void TrackingManagerHelper::TrackNeutralParticle(G4Track* aTrack, PhysicsImpl& p
postStepPoint.SetPosition(pos);
// Update global, local, and proper time.
double velocity = track.GetVelocity();
double deltaTime = 0;
G4double velocity = track.GetVelocity();
G4double deltaTime = 0;
if (velocity > 0) {
deltaTime = physicalStep / velocity;
}
postStepPoint.AddGlobalTime(deltaTime);
postStepPoint.AddLocalTime(deltaTime);
double restMass = track.GetDynamicParticle()->GetMass();
double deltaProperTime = deltaTime * (restMass / track.GetTotalEnergy());
G4double restMass = track.GetDynamicParticle()->GetMass();
G4double deltaProperTime = deltaTime * (restMass / track.GetTotalEnergy());
postStepPoint.AddProperTime(deltaProperTime);
// Compute safety, but don't set the safety in the post-step point to
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-02-ref-06 (28-June-2024)
Geant4 version Name: geant4-11-03-ref-00 (6-December-2024)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -29,7 +29,7 @@ Command is ignored.
G4_lAr: 5.7 mm
-------------------------------------------------------------
Material: G4_Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: G4_Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 21.800 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -64,15 +64,15 @@ Command is ignored.
------------------------------------------------------------
material Edep RMS sqrt(E0(GeV))*rmsE/Emean total tracklen
G4_Pb: 775.35 MeV : 16.44 MeV 2.12 +- 0.06706 % 54.7 cm +- 1.26 cm
G4_lAr: 215.06 MeV : 15.96 MeV 7.421 +- 0.2347 % 1.06 m +- 8.16 cm
G4_Pb: 775 MeV : 17.05 MeV 2.2 +- 0.06956 % 54.7 cm +- 1.31 cm
G4_lAr: 214.65 MeV : 15.29 MeV 7.124 +- 0.2253 % 1.06 m +- 7.8 cm
------------------------------------------------------------
Beam particle e- E = 1 GeV
Mean number of gamma 509
Mean number of e- 873
Mean number of e+ 53.7
Mean number of charged steps 3681.48
Mean number of neutral steps 3694.58
Mean number of e- 870
Mean number of e+ 53.6
Mean number of charged steps 3662.46
Mean number of neutral steps 3688.48
------------------------------------------------------------
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-02-ref-06 (28-June-2024)
Geant4 version Name: geant4-11-03-ref-00 (6-December-2024)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -29,7 +29,7 @@ Command is ignored.
G4_lAr: 5.7 mm
-------------------------------------------------------------
Material: G4_Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: G4_Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 21.800 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -64,15 +64,15 @@ Command is ignored.
------------------------------------------------------------
material Edep RMS sqrt(E0(GeV))*rmsE/Emean total tracklen
G4_Pb: 774.27 MeV : 18.12 MeV 2.341 +- 0.07402 % 54.7 cm +- 1.41 cm
G4_lAr: 214.58 MeV : 15.86 MeV 7.393 +- 0.2338 % 1.06 m +- 8.05 cm
G4_Pb: 774.38 MeV : 19.27 MeV 2.488 +- 0.07867 % 54.7 cm +- 1.45 cm
G4_lAr: 214.28 MeV : 16.04 MeV 7.487 +- 0.2367 % 1.05 m +- 8.21 cm
------------------------------------------------------------
Beam particle e- E = 1 GeV
Mean number of gamma 508
Mean number of e- 871
Mean number of e- 870
Mean number of e+ 53.4
Mean number of charged steps 3668.58
Mean number of neutral steps 3701.69
Mean number of charged steps 3664.61
Mean number of neutral steps 3681.54
------------------------------------------------------------
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-02-ref-06 (28-June-2024)
Geant4 version Name: geant4-11-03-ref-00 (6-December-2024)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -29,7 +29,7 @@ Command is ignored.
G4_lAr: 5.7 mm
-------------------------------------------------------------
Material: G4_Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 113427284.261 pc
Material: G4_Galactic density: 0.000 mg/cm3 RadL: 204310098.490 pc Nucl.Int.Length: 3240.779 pc
Imean: 21.800 eV temperature: 2.73 K pressure: 0.00 atm
---> Element: H (H) Z = 1.0 N = 1 A = 1.008 g/mole
@@ -64,15 +64,15 @@ Command is ignored.
------------------------------------------------------------
material Edep RMS sqrt(E0(GeV))*rmsE/Emean total tracklen
G4_Pb: 774.9 MeV : 15.93 MeV 2.055 +- 0.065 % 54.7 cm +- 1.25 cm
G4_lAr: 214.84 MeV : 15.06 MeV 7.01 +- 0.2217 % 1.06 m +- 7.69 cm
G4_Pb: 775.87 MeV : 16.5 MeV 2.127 +- 0.06726 % 54.8 cm +- 1.32 cm
G4_lAr: 214.2 MeV : 15.68 MeV 7.322 +- 0.2315 % 1.05 m +- 8.01 cm
------------------------------------------------------------
Beam particle e- E = 1 GeV
Mean number of gamma 510
Mean number of e- 873
Mean number of e+ 53.6
Mean number of charged steps 3673.44
Mean number of neutral steps 3700.06
Mean number of gamma 509
Mean number of e- 872
Mean number of e+ 53.8
Mean number of charged steps 3671.33
Mean number of neutral steps 3703.84
------------------------------------------------------------