Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
+2 -2
View File
@@ -221,7 +221,7 @@ void G4WorkerRunManager::RunInitialization()
if(G4VScoreNtupleWriter::Instance())
{
auto hce = fSDM->PrepareNewEvent();
auto hce = (fSDM != nullptr) ? fSDM->PrepareNewEvent() : nullptr;
isScoreNtupleWriter = G4VScoreNtupleWriter::Instance()->Book(hce);
delete hce;
}
@@ -544,7 +544,7 @@ void G4WorkerRunManager::ConstructScoringWorlds()
G4ScoringManager* ScM = G4ScoringManager::GetScoringManagerIfExist();
if(ScM == nullptr)
return;
G4int nPar = ScM->GetNumberOfMesh();
G4int nPar = (G4int)ScM->GetNumberOfMesh();
if(nPar < 1)
return;