G4WeightCutOffConfigurator Class Reference

#include <G4WeightCutOffConfigurator.hh>

Inheritance diagram for G4WeightCutOffConfigurator:

G4VSamplerConfigurator

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

Detailed Description

Definition at line 51 of file G4WeightCutOffConfigurator.hh.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

Implements G4VSamplerConfigurator.

Definition at line 83 of file G4WeightCutOffConfigurator.cc.

00084 {
00085   return 0;
00086 }


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