Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Garfield::ComponentComsol::nodeCmp Struct Reference

#include <ComponentComsol.hh>

Public Member Functions

bool operator() (const ComponentFieldMap::Node &lhs, const ComponentFieldMap::Node &rhs) const
 

Detailed Description

Definition at line 45 of file ComponentComsol.hh.

Member Function Documentation

◆ operator()()

bool Garfield::ComponentComsol::nodeCmp::operator() ( const ComponentFieldMap::Node lhs,
const ComponentFieldMap::Node rhs 
) const
inline

Definition at line 46 of file ComponentComsol.hh.

47 {
48 double dx = round(lhs.x * 1e6) - round(rhs.x * 1e6);
49 double dy = round(lhs.y * 1e6) - round(rhs.y * 1e6);
50 double dz = round(lhs.z * 1e6) - round(rhs.z * 1e6);
51 return dx < 0 || (dx == 0 && (dy < 0 || (dy == 0 && dz < 0)));
52 }

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