3#include <gtest/gtest.h>
28 void add_horizontal_plane_points(TSync& engine)
30 const auto num_of_dp = engine.get_num_of_dp();
31 const auto target_plane_id = 8;
36 engine.add_point(0., module_num);
40 TEST(TestNeulandTSyncEngine, test_horizontal_plane)
42 auto engine = TSync{};
43 auto record_type = RecordType::invalid;
45 engine.set_number_of_modules(1300);
48 EXPECT_EQ(engine.get_record_type(), RecordType::invalid);
49 add_horizontal_plane_points(engine);
50 engine.end_of_event();
51 EXPECT_EQ(engine.get_record_type(), RecordType::xy_plane);
53 EXPECT_EQ(engine.get_record_type(), RecordType::invalid);
Main interface for TSync calculation.
constexpr auto BarsPerPlane