Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4WeightWindowConfigurator Class Reference

#include <G4WeightWindowConfigurator.hh>

Inheritance diagram for G4WeightWindowConfigurator:
G4VSamplerConfigurator

Public Member Functions

virtual void Configure (G4VSamplerConfigurator *preConf)
 
 G4WeightWindowConfigurator (const G4VPhysicalVolume *worldvolume, const G4String &particlename, G4VWeightWindowStore &wwstore, const G4VWeightWindowAlgorithm *wwAlg, G4PlaceOfAction placeOfAction, G4bool paraflag)
 
virtual const G4VTrackTerminatorGetTrackTerminator () const
 
virtual ~G4WeightWindowConfigurator ()
 

Private Member Functions

 G4WeightWindowConfigurator (const G4WeightWindowConfigurator &)
 
G4WeightWindowConfiguratoroperator= (const G4WeightWindowConfigurator &)
 

Private Attributes

G4bool fDeleteWWalg
 
G4PlaceOfAction fPlaceOfAction
 
G4ProcessPlacer fPlacer
 
G4WeightWindowProcessfWeightWindowProcess
 
G4VWeightWindowStorefWeightWindowStore
 
const G4VPhysicalVolumefWorld
 
const G4VWeightWindowAlgorithmfWWalgorithm
 
G4bool paraflag
 

Detailed Description

Definition at line 50 of file G4WeightWindowConfigurator.hh.

Constructor & Destructor Documentation

◆ G4WeightWindowConfigurator() [1/2]

G4WeightWindowConfigurator::G4WeightWindowConfigurator ( const G4VPhysicalVolume worldvolume,
const G4String particlename,
G4VWeightWindowStore wwstore,
const G4VWeightWindowAlgorithm wwAlg,
G4PlaceOfAction  placeOfAction,
G4bool  paraflag 
)

Definition at line 38 of file G4WeightWindowConfigurator.cc.

44 : fWorld(worldvolume),
45 fPlacer(particlename),
46 fWeightWindowStore(wwstore),
47 fDeleteWWalg( ( ! wwAlg) ),
49 new G4WeightWindowAlgorithm(5,3,5) : wwAlg)),
51 fPlaceOfAction(placeOfAction)
52{
53 paraflag = para;
54}
const G4VWeightWindowAlgorithm * fWWalgorithm
G4VWeightWindowStore & fWeightWindowStore
const G4VPhysicalVolume * fWorld
G4WeightWindowProcess * fWeightWindowProcess

References paraflag.

◆ ~G4WeightWindowConfigurator()

G4WeightWindowConfigurator::~G4WeightWindowConfigurator ( )
virtual

Definition at line 56 of file G4WeightWindowConfigurator.cc.

57{
59 {
62 }
63 if (fDeleteWWalg)
64 {
65 delete fWWalgorithm;
66 }
67}
virtual void RemoveProcess(G4VProcess *process)

References fDeleteWWalg, fPlacer, fWeightWindowProcess, fWWalgorithm, and G4ProcessPlacer::RemoveProcess().

◆ G4WeightWindowConfigurator() [2/2]

G4WeightWindowConfigurator::G4WeightWindowConfigurator ( const G4WeightWindowConfigurator )
private

Member Function Documentation

◆ Configure()

void G4WeightWindowConfigurator::Configure ( G4VSamplerConfigurator preConf)
virtual

Implements G4VSamplerConfigurator.

Definition at line 70 of file G4WeightWindowConfigurator.cc.

71{
72 G4cout << " entering weight window configure " << G4endl;
73 const G4VTrackTerminator *terminator = 0;
74 if (preConf)
75 {
76 terminator = preConf->GetTrackTerminator();
77 };
78
82 terminator,
83 fPlaceOfAction,"WeightWindowProcess",paraflag);
84
86
88}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
virtual void AddProcessAsSecondDoIt(G4VProcess *process)
const G4String & GetName() const
virtual const G4VTrackTerminator * GetTrackTerminator() const =0
void SetParallelWorld(const G4String &parallelWorldName)

References G4ProcessPlacer::AddProcessAsSecondDoIt(), fPlaceOfAction, fPlacer, fWeightWindowProcess, fWeightWindowStore, fWorld, fWWalgorithm, G4cout, G4endl, G4VPhysicalVolume::GetName(), G4VSamplerConfigurator::GetTrackTerminator(), paraflag, and G4WeightWindowProcess::SetParallelWorld().

◆ GetTrackTerminator()

const G4VTrackTerminator * G4WeightWindowConfigurator::GetTrackTerminator ( ) const
virtual

Implements G4VSamplerConfigurator.

Definition at line 91 of file G4WeightWindowConfigurator.cc.

92{
94}

References fWeightWindowProcess.

◆ operator=()

G4WeightWindowConfigurator & G4WeightWindowConfigurator::operator= ( const G4WeightWindowConfigurator )
private

Field Documentation

◆ fDeleteWWalg

G4bool G4WeightWindowConfigurator::fDeleteWWalg
private

Definition at line 75 of file G4WeightWindowConfigurator.hh.

Referenced by ~G4WeightWindowConfigurator().

◆ fPlaceOfAction

G4PlaceOfAction G4WeightWindowConfigurator::fPlaceOfAction
private

Definition at line 78 of file G4WeightWindowConfigurator.hh.

Referenced by Configure().

◆ fPlacer

G4ProcessPlacer G4WeightWindowConfigurator::fPlacer
private

Definition at line 73 of file G4WeightWindowConfigurator.hh.

Referenced by Configure(), and ~G4WeightWindowConfigurator().

◆ fWeightWindowProcess

G4WeightWindowProcess* G4WeightWindowConfigurator::fWeightWindowProcess
private

◆ fWeightWindowStore

G4VWeightWindowStore& G4WeightWindowConfigurator::fWeightWindowStore
private

Definition at line 74 of file G4WeightWindowConfigurator.hh.

Referenced by Configure().

◆ fWorld

const G4VPhysicalVolume* G4WeightWindowConfigurator::fWorld
private

Definition at line 72 of file G4WeightWindowConfigurator.hh.

Referenced by Configure().

◆ fWWalgorithm

const G4VWeightWindowAlgorithm* G4WeightWindowConfigurator::fWWalgorithm
private

Definition at line 76 of file G4WeightWindowConfigurator.hh.

Referenced by Configure(), and ~G4WeightWindowConfigurator().

◆ paraflag

G4bool G4WeightWindowConfigurator::paraflag
private

Definition at line 81 of file G4WeightWindowConfigurator.hh.

Referenced by Configure(), and G4WeightWindowConfigurator().


The documentation for this class was generated from the following files: