Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
@@ -53,7 +53,9 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
B03PhysicsList::B03PhysicsList(): G4VUserPhysicsList()
B03PhysicsList::B03PhysicsList(G4String parallelname):
G4VUserPhysicsList(),
fBiasWorldName(parallelname)
{
fParaWorldName.clear();
SetVerboseLevel(1);
@@ -661,25 +663,26 @@ void B03PhysicsList::AddScoringProcess(){
#include "G4IStore.hh"
void B03PhysicsList::AddBiasingProcess(){
G4cout << " Preparing Importance Sampling with GhostWorld "
<< fBiasWorldName << G4endl;
fGeomSampler->SetParallel(true); // parallelworld
G4IStore* iStore = G4IStore::GetInstance(fBiasWorldName);
fGeomSampler->SetWorld(iStore->GetParallelWorldVolumePointer());
G4GeometrySampler fGeomSampler(fBiasWorldName,"neutron");
fGeomSampler.SetParallel(true); // parallelworld
// fGeomSampler.SetWorld(iStore->GetParallelWorldVolumePointer());
// fGeomSampler->PrepareImportanceSampling(G4IStore::
// GetInstance(fBiasWorldName), 0);
static G4bool first = true;
if(first) {
fGeomSampler->PrepareImportanceSampling(iStore, 0);
fGeomSampler.PrepareImportanceSampling(iStore, 0);
fGeomSampler->Configure();
fGeomSampler.Configure();
G4cout << " GeomSampler Configured!!! " << G4endl;
first = false;
}
#ifdef G4MULTITHREADED
fGeomSampler->AddProcess();
if(!G4Threading::IsMasterThread()) fGeomSampler.AddProcess();
#else
G4cout << " Running in singlethreaded mode!!! " << G4endl;
#endif