Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MergeMode.hh File Reference
#include "globals.hh"
#include "G4Exception.hh"
#include <functional>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  G4Accumulables
 

Typedefs

template<typename T >
using G4MergeFunction = std::function< T(const T &, const T &)>
 

Enumerations

enum class  G4MergeMode { kAddition , kMultiplication , kMaximum , kMinimum }
 

Functions

G4MergeMode G4Accumulables::GetMergeMode (const G4String &mergeModeName)
 
template<typename T >
G4MergeFunction< T > G4Accumulables::GetMergeFunction (G4MergeMode mergeMode)
 
template<G4bool >
G4MergeFunction< G4boolG4Accumulables::GetMergeFunction (G4MergeMode mergeMode)
 

Typedef Documentation

◆ G4MergeFunction

template<typename T >
using G4MergeFunction = std::function<T(const T&, const T&)>

Definition at line 49 of file G4MergeMode.hh.

Enumeration Type Documentation

◆ G4MergeMode

enum class G4MergeMode
strong
Enumerator
kAddition 
kMultiplication 
kMaximum 
kMinimum 

Definition at line 40 of file G4MergeMode.hh.

40 {
41 kAddition, // "Or" if boolean type
42 kMultiplication, // "And" if boolean type
43 kMaximum, // "Or" if boolean type
44 kMinimum // "And" if boolean type
45};