42 G4int maxNumberOfSplits) :
43 fUpperLimitFaktor(upperLimitFaktor),
44 fSurvivalFaktor(survivalFaktor),
45 fMaxNumberOfSplits(maxNumberOfSplits)
57 G4double survivalWeight = lowerWeightBound * fSurvivalFaktor;
58 G4double upperWeight = lowerWeightBound * fUpperLimitFaktor;
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;
virtual G4Nsplit_Weight Calculate(G4double init_w, G4double lowerWeightBound) const
virtual ~G4WeightWindowAlgorithm()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4WeightWindowAlgorithm(G4double upperLimitFaktor=5, G4double survivalFaktor=3, G4int maxNumberOfSplits=5)