Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4WeightWindowConfigurator Class Reference

#include <G4WeightWindowConfigurator.hh>

+ Inheritance diagram for G4WeightWindowConfigurator:

Public Member Functions

 G4WeightWindowConfigurator (const 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
 
- Public Member Functions inherited from G4VSamplerConfigurator
 G4VSamplerConfigurator ()
 
virtual ~G4VSamplerConfigurator ()
 

Detailed Description

Definition at line 50 of file G4WeightWindowConfigurator.hh.

Constructor & Destructor Documentation

◆ G4WeightWindowConfigurator()

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) ),
48 fWWalgorithm(( (fDeleteWWalg) ?
49 new G4WeightWindowAlgorithm(5,3,5) : wwAlg)),
50 fWeightWindowProcess(0),
51 fPlaceOfAction(placeOfAction)
52{
53 paraflag = para;
54}

◆ ~G4WeightWindowConfigurator()

G4WeightWindowConfigurator::~G4WeightWindowConfigurator ( )
virtual

Definition at line 56 of file G4WeightWindowConfigurator.cc.

57{
58 if (fWeightWindowProcess)
59 {
60 fPlacer.RemoveProcess(fWeightWindowProcess);
61 delete fWeightWindowProcess;
62 }
63 if (fDeleteWWalg)
64 {
65 delete fWWalgorithm;
66 }
67}
virtual void RemoveProcess(G4VProcess *process)

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
79 fWeightWindowProcess =
80 new G4WeightWindowProcess(*fWWalgorithm,
81 fWeightWindowStore,
82 terminator,
83 fPlaceOfAction,"WeightWindowProcess",paraflag);
84
85 if(paraflag) fWeightWindowProcess->SetParallelWorld(fWorld->GetName());
86
87 fPlacer.AddProcessAsSecondDoIt(fWeightWindowProcess);
88}
#define G4endl
Definition G4ios.hh:67
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)

◆ GetTrackTerminator()

const G4VTrackTerminator * G4WeightWindowConfigurator::GetTrackTerminator ( ) const
virtual

Implements G4VSamplerConfigurator.

Definition at line 91 of file G4WeightWindowConfigurator.cc.

92{
93 return fWeightWindowProcess;
94}

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