30 #define G4MergeMode_h 1
51 namespace G4Accumulables {
58 switch ( mergeMode ) {
59 case G4MergeMode::kAddition:
61 return [](
const T&
x,
const T&
y) {
return x +
y; };
63 case G4MergeMode::kMultiplication:
64 return [](
const T&
x,
const T&
y) {
return x *
y; };
66 case G4MergeMode::kMaximum:
70 case G4MergeMode::kMinimum:
75 return [](
const T&,
const T&) {
return 0.0; };
82 switch ( mergeMode ) {
83 case G4MergeMode::kAddition:
84 case G4MergeMode::kMaximum:
88 case G4MergeMode::kMultiplication:
89 case G4MergeMode::kMinimum: