Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
compDoubleWithPrecision Struct Reference

#include <G4MoleculeCounter.hh>

Public Member Functions

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

Static Public Attributes

static double fPrecision = 5e-13
 

Detailed Description

Definition at line 36 of file G4MoleculeCounter.hh.

Member Function Documentation

◆ operator()()

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

Definition at line 38 of file G4MoleculeCounter.hh.

39 {
40 if(fabs(a - b) < fPrecision)
41 {
42 return false;
43 }
44 else
45 {
46 return a < b;
47 }
48 }

Member Data Documentation

◆ fPrecision

double compDoubleWithPrecision::fPrecision = 5e-13
static

Definition at line 50 of file G4MoleculeCounter.hh.

Referenced by operator()(), and G4MoleculeCounter::RemoveAMoleculeAtTime().


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