Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrintDataDirectory.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PrintDataDirectory.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 // This is an example on how to access data from the test data directory.
10 // It is not really an integration test, but since it does not use the
11 // unit test framework, placing it into the integration tests directory
12 // is the least awkward place.
13 
15 
16 #include <cstddef>
17 #include <iostream>
18 
19 int main(void) {
20  std::cout << Acts::Test::getDataPath("") << std::endl;
21  std::cout << Acts::Test::getDataPath("missing-dir/does_not_exists.txt")
22  << std::endl;
23  return EXIT_SUCCESS;
24 }