Geant4  10.02.p03
compDoubleWithPrecision Struct Reference

#include <G4MoleculeCounter.hh>

Collaboration diagram for compDoubleWithPrecision:

Public Member Functions

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

Static Public Attributes

static G4ThreadLocal double fPrecision = 0
 

Detailed Description

Definition at line 59 of file G4MoleculeCounter.hh.

Member Function Documentation

◆ operator()()

bool compDoubleWithPrecision::operator() ( const double &  a,
const double &  b 
) const
inline

Definition at line 61 of file G4MoleculeCounter.hh.

62  {
63  if (std::fabs(a - b) < fPrecision)
64  {
65  return false;
66  }
67  else
68  {
69  return a < b;
70  }
71  }
static G4ThreadLocal double fPrecision

Member Data Documentation

◆ fPrecision

G4ThreadLocal double compDoubleWithPrecision::fPrecision = 0
static

Definition at line 73 of file G4MoleculeCounter.hh.


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