Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TGeoPrimitivesHelperTests.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TGeoPrimitivesHelperTests.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/data/test_case.hpp>
10
#include <boost/test/unit_test.hpp>
11
12
#include "
Acts/Plugins/TGeo/TGeoPrimitivesHelper.hpp
"
13
14
#include <string>
15
#include <vector>
16
17
namespace
bdata =
boost::unit_test::data
;
18
namespace
tt = boost::test_tools;
19
20
namespace
Acts {
21
22
namespace
Test {
23
25
BOOST_AUTO_TEST_CASE
(TGeoPrimitivesHelper_match) {
26
BOOST_CHECK(
TGeoPrimitivesHelper::match
(
"Pixel*Barrel"
,
"PixelLBarrel"
));
27
BOOST_CHECK(!
TGeoPrimitivesHelper::match
(
"Pixel*Barrel"
,
"Strips"
));
28
29
std::vector<std::string> candidates = {
"Pixel"
,
"Barrel*"
,
"*P*pe"
};
30
BOOST_CHECK(
TGeoPrimitivesHelper::match
(candidates,
"BarrelStrips"
));
31
BOOST_CHECK(
TGeoPrimitivesHelper::match
(candidates,
"BeamPipe"
));
32
}
33
34
}
// namespace Test
35
}
// namespace Acts
acts
blob
sPHENIX
Tests
UnitTests
Plugins
TGeo
TGeoPrimitivesHelperTests.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:46
using
1.8.2 with
sPHENIX GitHub integration