42 G4int maxNumberOfSplits) :
43 fUpperLimitFaktor(upperLimitFaktor),
44 fSurvivalFaktor(survivalFaktor),
45 fMaxNumberOfSplits(maxNumberOfSplits)
65 if (init_w > upperWeight) {
70 G4double temp_wi_ws = init_w/upperWeight;
71 G4int split_i =
static_cast<int>(temp_wi_ws);
72 if(split_i != temp_wi_ws) split_i++;
102 }
else if (init_w < lowerWeightBound) {
104 G4double wi_ws = init_w/survivalWeight;
G4double fUpperLimitFaktor
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual G4Nsplit_Weight Calculate(G4double init_w, G4double lowerWeightBound) const
G4WeightWindowAlgorithm(G4double upperLimitFaktor=5, G4double survivalFaktor=3, G4int maxNumberOfSplits=5)
virtual ~G4WeightWindowAlgorithm()