8#include <tracking/trackFindingCDC/testFixtures/TrackFindingCDCTestWithSimpleSimulation.h>
10#include <tracking/trackFindingCDC/legendre/quadtree/AxialHitQuadTreeProcessor.h>
11#include <tracking/trackFindingCDC/legendre/precisionFunctions/PrecisionUtil.h>
14#include <gtest/gtest.h>
17using namespace TrackFindingCDC;
23 using XYSpans = AxialHitQuadTreeProcessor::XYSpans;
27 XYSpans xySpans1({0, maxTheta}, {0., 0.15});
31 XYSpans xySpans2({0, maxTheta}, {0., 0.30});
34 using Candidate = std::vector<const CDCWireHit*>;
35 std::vector<Candidate> candidates;
37 this->loadPreparedEvent();
38 const int nMCTracks = m_mcTracks.size();
40 auto candidateReceiver = [&candidates](
const Candidate & candidate,
void*) {
41 candidates.push_back(candidate);
46 for (
const CDCWireHit* wireHit : m_axialWireHits) {
47 (*wireHit)->unsetTakenFlag();
48 (*wireHit)->unsetMaskedFlag();
52 qtProcessor1.seed(m_axialWireHits);
55 qtProcessor1.fill(candidateReceiver, 30);
58 qtProcessor2.seed(m_axialWireHits);
61 qtProcessor2.fill(candidateReceiver, 30);
66 ASSERT_EQ(nMCTracks, candidates.size());
70 EXPECT_GE(candidates[0].size(), 30);
71 EXPECT_GE(candidates[1].size(), 30);
A QuadTreeProcessor for TrackHits.
Class representing a hit wire in the central drift chamber.
static double getOriginCurvPrecision(double curv)
Function which estimates desired curvature resolution of quadtree node in the given pt region paramet...
static double getNonOriginCurvPrecision(double curv)
Function which estimates desired curvature resolution of quadtree node in the given pt region paramet...
static constexpr int getLookupGridLevel()
Returns desired deepness of the trigonometrical lookup table. Used as template parameter for the Trig...
std::function< double(double)> PrecisionFunction
Function type which is used for resolution calculations (resolution=f(curvature)) Takes a curvature v...
Class to capture the time a repeated execution took.
void printSummary() const
Print a summary of the collected time to the console.
Abstract base class for different kinds of events.