EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TestSpacePoint.cpp File Reference
#include "TestSpacePoint.hpp"
#include <cmath>
#include <iostream>
#include <limits>
+ Include dependency graph for TestSpacePoint.cpp:

Go to the source code of this file.

Functions

bool operator== (const TestSpacePoint &a, const TestSpacePoint &b)
 Helper operator for comparing the test spacepoints.
 
std::ostream & operator<< (std::ostream &out, const TestSpacePoint &sp)
 Output / print operator for TestSpacePoint.
 

Variables

static constexpr float allowedDiff = std::numeric_limits<float>::epsilon() * 4
 Difference allowed on floating point numbers to still be treated equal.
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const TestSpacePoint sp 
)

Output / print operator for TestSpacePoint.

Definition at line 26 of file TestSpacePoint.cpp.

View newest version in sPHENIX GitHub at line 26 of file TestSpacePoint.cpp

References TestSpacePoint::m_surface, TestSpacePoint::m_x, TestSpacePoint::m_y, and TestSpacePoint::m_z.

bool operator== ( const TestSpacePoint a,
const TestSpacePoint b 
)

Helper operator for comparing the test spacepoints.

Definition at line 20 of file TestSpacePoint.cpp.

View newest version in sPHENIX GitHub at line 20 of file TestSpacePoint.cpp

References kdfinder::abs(), allowedDiff, TestSpacePoint::m_x, TestSpacePoint::m_y, and TestSpacePoint::m_z.

+ Here is the call graph for this function:

Variable Documentation

constexpr float allowedDiff = std::numeric_limits<float>::epsilon() * 4
static

Difference allowed on floating point numbers to still be treated equal.

Definition at line 18 of file TestSpacePoint.cpp.

View newest version in sPHENIX GitHub at line 18 of file TestSpacePoint.cpp

Referenced by operator==().