9 #include <gtest/gtest.h>
11 #include <tracking/trackFindingVXD/trackSetEvaluator/OverlapMatrixCreator.h>
21 vector<vector <unsigned short> > hitRelatedTracks =
23 {{1, 2, 3}, {0, 5, 7}, {5}, {1, 5, 9}, {1}, {4}, {4}, {7, 8, 9}, {8}, {0, 1}};
25 vector<vector <unsigned short> > smallOverlapTestMatrix =
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}};
30 vector<vector <unsigned short> > hitRelatedTracks2 =
31 {{0, 1, 2, 3}, {1, 2, 3}, {3, 4, 5, 6}, {2, 4}, {3, 5}};
33 vector<vector <unsigned short> > allowOneOverlapTestMatrix =
34 {{}, {2, 3}, {1, 3}, {1, 2, 5}, {}, {3}, {}};
37 vector<vector <unsigned short> > hitRelatedTracks3 =
38 {{0, 1, 2, 3}, {1, 2, 3}, {3, 4, 5, 6}, {2, 3, 4}, {3, 5}};
40 vector<vector <unsigned short> > allowTwoOverlapTestMatrix =
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.
TEST_F(GlobalLabelTest, LargeNumberOfTimeDependentParameters)
Test large number of time-dep params for registration and retrieval.
Abstract base class for different kinds of events.