Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user