9#include <gtest/gtest.h>
11#include <tracking/trackFindingVXD/trackSetEvaluator/OverlapMatrixCreator.h>
23 {{1, 2, 3}, {0, 5, 7}, {5}, {1, 5, 9}, {1}, {4}, {4}, {7, 8, 9}, {8}, {0, 1}};
27 {{1, 5, 7}, {0, 2, 3, 5, 9}, {1, 3}, {1, 2}, {}, {0, 1, 7, 9}, {}, {0, 5, 8, 9}, {7, 9}, {1, 5, 7, 8}};
31 {{0, 1, 2, 3}, {1, 2, 3}, {3, 4, 5, 6}, {2, 4}, {3, 5}};
34 {{}, {2, 3}, {1, 3}, {1, 2, 5}, {}, {3}, {}};
38 {{0, 1, 2, 3}, {1, 2, 3}, {3, 4, 5, 6}, {2, 3, 4}, {3, 5}};
41 {{}, {}, {3}, {2}, {}, {}, {}};
47 EXPECT_EQ(smallOverlapTestMatrix, overlapMatrixCreator.getOverlapMatrix());
50 EXPECT_EQ(allowOneOverlapTestMatrix, overlapMatrixCreator2.getOverlapMatrix(1));
53 EXPECT_EQ(allowTwoOverlapTestMatrix, overlapMatrixCreator3.getOverlapMatrix(2));
Creates a vector of vectors, that knows which track is conflicting with which other.
Test the overlap-matrix creator using known input.
vector< vector< unsigned short > > hitRelatedTracks2
Another hitRelatedTracks matrix with multiple double overlaps:
vector< vector< unsigned short > > hitRelatedTracks
A hitRelatedTracks matrix for Testing purposes:
vector< vector< unsigned short > > allowOneOverlapTestMatrix
and its overlap matrix which allows for 1 cluster overlaps
vector< vector< unsigned short > > hitRelatedTracks3
This time, we want to check for double overlaps.
vector< vector< unsigned short > > allowTwoOverlapTestMatrix
and its overlap matrix which allows for 2 cluster overlaps
vector< vector< unsigned short > > smallOverlapTestMatrix
Corresponding overlap matrix for testing purposes: [assumes sorting].
Abstract base class for different kinds of events.