Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -6,6 +6,11 @@ It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 2024-07-18 Gabriele Cosmo (phys-ctor-limiters-V11-02-00)
|
||||
- Fixed reported Coverity defect in G4FastSimulationPhysics, to use
|
||||
'const G4String&' for avoiding implicit copies; in G4GenericBiasingPhysics
|
||||
to use std::move().
|
||||
|
||||
## 2023-08-29 Ben Morgan (phys-ctor-limiters-V11-01-00)
|
||||
- Fix Coverity unreachable code warning
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ void G4FastSimulationPhysics::ConstructProcess()
|
||||
if ( itr != fParticlesUnderFastSimulation.end() )
|
||||
{
|
||||
std::size_t ipos = itr - fParticlesUnderFastSimulation.begin();
|
||||
G4String geometry = fGeometries[ipos];
|
||||
const G4String& geometry = fGeometries[ipos];
|
||||
if ( geometry == "" ) G4FastSimulationHelper::ActivateFastSimulation(pmanager);
|
||||
else G4FastSimulationHelper::ActivateFastSimulation(pmanager, geometry);
|
||||
}
|
||||
|
||||
@@ -76,8 +76,7 @@ G4GenericBiasingPhysics::~G4GenericBiasingPhysics()
|
||||
void G4GenericBiasingPhysics::PhysicsBias(const G4String& particleName)
|
||||
{
|
||||
fBiasedParticles.push_back(particleName);
|
||||
std::vector< G4String > dummy;
|
||||
fBiasedProcesses.push_back(dummy);
|
||||
fBiasedProcesses.emplace_back();
|
||||
fBiasAllProcesses.push_back(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user