#include <G4WeightCutOffConfigurator.hh>
Inheritance diagram for G4WeightCutOffConfigurator:
Public Member Functions | |
G4WeightCutOffConfigurator (G4VPhysicalVolume *worldvolume, const G4String &particlename, G4double wsurvival, G4double wlimit, G4double isource, G4VIStore *istore, G4bool paraflag) | |
virtual | ~G4WeightCutOffConfigurator () |
virtual void | Configure (G4VSamplerConfigurator *preConf) |
virtual const G4VTrackTerminator * | GetTrackTerminator () const |
Definition at line 51 of file G4WeightCutOffConfigurator.hh.
G4WeightCutOffConfigurator::G4WeightCutOffConfigurator | ( | G4VPhysicalVolume * | worldvolume, | |
const G4String & | particlename, | |||
G4double | wsurvival, | |||
G4double | wlimit, | |||
G4double | isource, | |||
G4VIStore * | istore, | |||
G4bool | paraflag | |||
) |
Definition at line 39 of file G4WeightCutOffConfigurator.cc.
References FatalException, and G4Exception().
00047 : fWorld(worldvolume), 00048 fPlacer(particlename), 00049 fPlaced(false), 00050 paraflag(para) 00051 { 00052 fWeightCutOffProcess = 00053 new G4WeightCutOffProcess(wsurvival,wlimit,isource,istore,"WeightCutOffProcess",paraflag); 00054 // new G4WeightCutOffProcess(wsurvival,wlimit,isource,istore,aGCellfinder,"WeightCutOffProcess",paraflag); 00055 if (!fWeightCutOffProcess) 00056 { 00057 G4Exception("G4WeightCutOffConfigurator::G4WeightCutOffConfigurator()", 00058 "FatalError", FatalException, 00059 "Failed to allocate G4WeightCutOffProcess !"); 00060 } 00061 }
G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator | ( | ) | [virtual] |
Definition at line 63 of file G4WeightCutOffConfigurator.cc.
References G4ProcessPlacer::RemoveProcess().
00064 { 00065 if (fPlaced) 00066 { 00067 fPlacer.RemoveProcess(fWeightCutOffProcess); 00068 delete fWeightCutOffProcess; 00069 } 00070 }
void G4WeightCutOffConfigurator::Configure | ( | G4VSamplerConfigurator * | preConf | ) | [virtual] |
Implements G4VSamplerConfigurator.
Definition at line 72 of file G4WeightCutOffConfigurator.cc.
References G4ProcessPlacer::AddProcessAsLastDoIt(), G4cout, G4endl, and G4WeightCutOffProcess::SetParallelWorld().
Referenced by G4GeometrySampler::Configure().
00073 { 00074 G4cout << " entering new weight window configure " << G4endl; 00075 00076 if(paraflag) fWeightCutOffProcess->SetParallelWorld(fWorld); 00077 00078 fPlacer.AddProcessAsLastDoIt(fWeightCutOffProcess); 00079 fPlaced = true; 00080 }
const G4VTrackTerminator * G4WeightCutOffConfigurator::GetTrackTerminator | ( | ) | const [virtual] |