#include <G4WeightWindowConfigurator.hh>
Inheritance diagram for G4WeightWindowConfigurator:
Public Member Functions | |
G4WeightWindowConfigurator (G4VPhysicalVolume *worldvolume, const G4String &particlename, G4VWeightWindowStore &wwstore, const G4VWeightWindowAlgorithm *wwAlg, G4PlaceOfAction placeOfAction, G4bool paraflag) | |
virtual | ~G4WeightWindowConfigurator () |
virtual void | Configure (G4VSamplerConfigurator *preConf) |
virtual const G4VTrackTerminator * | GetTrackTerminator () const |
Definition at line 51 of file G4WeightWindowConfigurator.hh.
G4WeightWindowConfigurator::G4WeightWindowConfigurator | ( | G4VPhysicalVolume * | worldvolume, | |
const G4String & | particlename, | |||
G4VWeightWindowStore & | wwstore, | |||
const G4VWeightWindowAlgorithm * | wwAlg, | |||
G4PlaceOfAction | placeOfAction, | |||
G4bool | paraflag | |||
) |
Definition at line 40 of file G4WeightWindowConfigurator.cc.
00045 : fWorld(worldvolume), 00046 fPlacer(particlename), 00047 fWeightWindowStore(wwstore), 00048 fDeleteWWalg( ( ! wwAlg) ), 00049 fWWalgorithm(( (fDeleteWWalg) ? 00050 new G4WeightWindowAlgorithm(5,3,5) : wwAlg)), 00051 fWeightWindowProcess(0), 00052 fPlaceOfAction(placeOfAction) 00053 { 00054 paraflag = para; 00055 }
G4WeightWindowConfigurator::~G4WeightWindowConfigurator | ( | ) | [virtual] |
Definition at line 57 of file G4WeightWindowConfigurator.cc.
References G4ProcessPlacer::RemoveProcess().
00058 { 00059 if (fWeightWindowProcess) 00060 { 00061 fPlacer.RemoveProcess(fWeightWindowProcess); 00062 delete fWeightWindowProcess; 00063 } 00064 if (fDeleteWWalg) 00065 { 00066 delete fWWalgorithm; 00067 } 00068 }
void G4WeightWindowConfigurator::Configure | ( | G4VSamplerConfigurator * | preConf | ) | [virtual] |
Implements G4VSamplerConfigurator.
Definition at line 71 of file G4WeightWindowConfigurator.cc.
References G4ProcessPlacer::AddProcessAsSecondDoIt(), G4cout, G4endl, G4VSamplerConfigurator::GetTrackTerminator(), and G4WeightWindowProcess::SetParallelWorld().
00072 { 00073 G4cout << " entering weight window configure " << G4endl; 00074 const G4VTrackTerminator *terminator = 0; 00075 if (preConf) 00076 { 00077 terminator = preConf->GetTrackTerminator(); 00078 }; 00079 00080 fWeightWindowProcess = 00081 new G4WeightWindowProcess(*fWWalgorithm, 00082 fWeightWindowStore, 00083 terminator, 00084 fPlaceOfAction,"WeightWindowProcess",paraflag); 00085 00086 if(paraflag) fWeightWindowProcess->SetParallelWorld(fWorld); 00087 00088 fPlacer.AddProcessAsSecondDoIt(fWeightWindowProcess); 00089 }
const G4VTrackTerminator * G4WeightWindowConfigurator::GetTrackTerminator | ( | ) | const [virtual] |