Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compDoubleWithPrecision 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
 

Detailed Description

Definition at line 56 of file G4MoleculeCounter.hh.

Member Function Documentation

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

Definition at line 57 of file G4MoleculeCounter.hh.

57  {
58  if (std::fabs(a - b) < fPrecision){
59  return false;
60  }
61  else{
62  return a < b;
63  }
64  }
static G4ThreadLocal double fPrecision

Member Data Documentation

G4ThreadLocal double compDoubleWithPrecision::fPrecision = 0
static

Definition at line 66 of file G4MoleculeCounter.hh.


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