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

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

Definition at line 38 of file G4MoleculeCounter.hh.

References fPrecision.

00039     {
00040         if(fabs(a - b) < fPrecision)
00041         {
00042             return false;
00043         }
00044         else
00045         {
00046             return a < b;
00047         }
00048     }


Field Documentation

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:
Generated on Mon May 27 17:51:22 2013 for Geant4 by  doxygen 1.4.7