9#include <tracking/trackFindingCDC/testFixtures/TrackFindingCDCTestWithTopology.h>
11#include <tracking/trackFindingCDC/topology/CDCWireTopology.h>
12#include <tracking/trackFindingCDC/topology/CDCGeometryLoader.h>
40 bool xNear = std::fabs(expected.
x() - actual.
x()) < tolerance;
41 bool yNear = std::fabs(expected.
y() - actual.
y()) < tolerance;
42 bool zNear = std::fabs(expected.
z() - actual.
z()) < tolerance;
43 return xNear and yNear and zNear;
static void closeDatabase()
Helper function to close and reset the database - only for tests offside the standard event processin...
static void loadDatabase()
Helper function to open the database - only for tests offside the standard event processing.
static CDCWireTopology & getInstance()
Getter for the singleton instance of the wire topology.
static void SetUpTestCase()
Implementation of hook method to setup the environment for all tests in this test case Unpacks the wi...
static void TearDownTestCase()
Implementation of hook method to clean up the environment for all tests in this test case.
A three dimensional vector.
double x() const
Getter for the x coordinate.
double y() const
Getter for the y coordinate.
double z() const
Getter for the z coordinate.
bool allNear< TrackFindingCDC::Vector3D >(const TrackFindingCDC::Vector3D &expected, const TrackFindingCDC::Vector3D &actual, double tolerance)
Predicate checking that all three components of Vector3D are close by a maximal error of tolerance.
Abstract base class for different kinds of events.