EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EventDataView3DTests.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EventDataView3DTests.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
11 
15 
16 #include <fstream>
17 #include <iostream>
18 
19 #include "EventDataView3DBase.hpp"
21 
22 namespace Acts {
23 
24 namespace Test {
25 
26 BOOST_AUTO_TEST_SUITE(Visualization)
27 
28 BOOST_AUTO_TEST_CASE(BoundTrackParametersVisualizationObj) {
31  auto objErrors = testObjString(objTest);
32  BOOST_CHECK(objErrors.size() == 0);
33  for (auto objerr : objErrors) {
34  std::cout << objerr << std::endl;
35  }
36 }
37 
38 BOOST_AUTO_TEST_CASE(BoundTrackParametersVisualizationPly) {
41  auto plyErrors = testPlyString(plyTest);
42  BOOST_CHECK(plyErrors.size() == 0);
43  for (auto plyerr : plyErrors) {
44  std::cout << plyerr << std::endl;
45  }
46 }
47 
48 BOOST_AUTO_TEST_CASE(MultiTrajectoryVisualizationObj) {
50  auto objTest = EventDataView3DTest::testMultiTrajectory(obj);
51  auto objErrors = testObjString(objTest);
52  BOOST_CHECK(objErrors.size() == 0);
53  for (auto objerr : objErrors) {
54  std::cout << objerr << std::endl;
55  }
56 }
57 
58 BOOST_AUTO_TEST_CASE(MultiTrajectoryVisualizationPly) {
60  auto plyTest = EventDataView3DTest::testMultiTrajectory(ply);
61  auto plyErrors = testPlyString(plyTest);
62  BOOST_CHECK(plyErrors.size() == 0);
63  for (auto plyerr : plyErrors) {
64  std::cout << plyerr << std::endl;
65  }
66 }
67 
68 BOOST_AUTO_TEST_SUITE_END()
69 
70 } // namespace Test
71 } // namespace Acts