Tests the counter map. More...
#include <map>
#include <random>
#include <iostream>
#include "boost/test/unit_test.hpp"
#include "lardata/Utilities/CountersMap.h"
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE ( CountersMap_test ) |
Functions | |
void | RunHoughTransformTreeTest () |
Tests with a vector of counter maps (Hough transfort use case) More... | |
BOOST_AUTO_TEST_CASE (RunHoughTransformTree) | |
Variables | |
constexpr unsigned int | RandomSeed = 12345 |
The seed for the default random engine. More... | |
Tests the counter map.
See http://www.boost.org/libs/test for the Boost test library home page.
Timing: version 1.0 takes about 30" on a 3 GHz machine.
Definition in file CountersMap_test.cc.
#define BOOST_TEST_MODULE ( CountersMap_test ) |
Definition at line 29 of file CountersMap_test.cc.
BOOST_AUTO_TEST_CASE | ( | RunHoughTransformTree | ) |
Definition at line 187 of file CountersMap_test.cc.
void RunHoughTransformTreeTest | ( | ) |
Tests with a vector of counter maps (Hough transfort use case)
The test consists in filling a lot of points into a 2D sparse "image" (or histogram). Two structures are maintained, one with the standard STL map, another with the CountersMap. The test fails if the two images do not match.
Definition at line 53 of file CountersMap_test.cc.
constexpr unsigned int RandomSeed = 12345 |
The seed for the default random engine.
Definition at line 37 of file CountersMap_test.cc.