8#include <gtest/gtest.h>
10#include <tracking/trackFindingCDC/legendre/quadtree/AxialHitQuadTreeProcessor.h>
15using namespace TrackFindingCDC;
17TEST(CosSinLookupTableTest, compute_sin_cos)
21 auto binCount = inst.getNBins();
22 float binWidth = 2 * M_PI / binCount;
25 for (
long i = 0; i <= binCount; i++) {
26 float cs_0 = inst.at(i).x();
27 EXPECT_NEAR(cos(i * binWidth - M_PI), cs_0, 0.000001);
28 float ss_0 = inst.at(i).y();
29 EXPECT_NEAR(sin(i * binWidth - M_PI), ss_0, 0.000001);
static const LookupTable< Vector2D > & getCosSinLookupTable()
Get the standard lookup table containing equally spaces unit vectors (cos, sin)
Abstract base class for different kinds of events.