|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4WeightWindowAlgorithm is a concrete implementation of a weight window algorithm. More...
#include <G4WeightWindowAlgorithm.hh>
Public Member Functions | |
| G4WeightWindowAlgorithm (G4double upperLimitFactor=5, G4double survivalFactor=3, G4int maxNumberOfSplits=5) | |
| ~G4WeightWindowAlgorithm () override=default | |
| G4Nsplit_Weight | Calculate (G4double init_w, G4double lowerWeightBound) const override |
| Public Member Functions inherited from G4VWeightWindowAlgorithm | |
| G4VWeightWindowAlgorithm ()=default | |
| virtual | ~G4VWeightWindowAlgorithm ()=default |
G4WeightWindowAlgorithm is a concrete implementation of a weight window algorithm.
Definition at line 58 of file G4WeightWindowAlgorithm.hh.
| G4WeightWindowAlgorithm::G4WeightWindowAlgorithm | ( | G4double | upperLimitFactor = 5, |
| G4double | survivalFactor = 3, | ||
| G4int | maxNumberOfSplits = 5 ) |
Constructor. The arguments configure the algorithm. In case of upperLimitFactor=survivalFactor=1 the algorithm becomes the expected weight algorithm of the importance sampling technique.
| [in] | upperLimitFactor | The factor defining the upper weight limit W_u = upperLimitFactor * W_l (W_l lower weight bound). |
| [in] | survivalFactor | uUsed in calculating the survival weight W_s = survivalFactor * W_l. |
| [in] | maxNumberOfSplits | The maximal number of splits allowed to be created in one go, and the reciprocal of the minimal survival probability in case of Russian roulette. |
Definition at line 33 of file G4WeightWindowAlgorithm.cc.
|
overridedefault |
Default Destructor.
|
overridevirtual |
Calculates the number of tracks and their weight according to the initial track weight and the lower energy bound.
Implements G4VWeightWindowAlgorithm.
Definition at line 44 of file G4WeightWindowAlgorithm.cc.