G4WeightWindowConfigurator Class Reference

#include <G4WeightWindowConfigurator.hh>

Inheritance diagram for G4WeightWindowConfigurator:

G4VSamplerConfigurator

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 G4VTrackTerminatorGetTrackTerminator () const

Detailed Description

Definition at line 51 of file G4WeightWindowConfigurator.hh.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

Implements G4VSamplerConfigurator.

Definition at line 92 of file G4WeightWindowConfigurator.cc.

00093 {
00094   return fWeightWindowProcess;
00095 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:58 2013 for Geant4 by  doxygen 1.4.7