Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4::MoleculeCounter::TimePrecision Struct Reference

#include <G4MoleculeCounter.hh>

Public Member Functions

bool operator() (const double &a, const double &b) const
 

Static Public Attributes

static G4ThreadLocal double fPrecision = 0.5 * picosecond
 

Detailed Description

Definition at line 57 of file G4MoleculeCounter.hh.

Member Function Documentation

◆ operator()()

bool G4::MoleculeCounter::TimePrecision::operator() ( const double &  a,
const double &  b 
) const

Definition at line 43 of file G4MoleculeCounter.cc.

44{
45 if (std::fabs(a - b) < fPrecision)
46 {
47 return false;
48 }
49 else
50 {
51 return a < b;
52 }
53}
static G4ThreadLocal double fPrecision

Member Data Documentation

◆ fPrecision

G4ThreadLocal double G4::MoleculeCounter::TimePrecision::fPrecision = 0.5 * picosecond
static

The documentation for this struct was generated from the following files: