Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeometryHierarchyMapTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Geometry/GeometryHierarchyMap.hpp"
#include "Acts/Geometry/GeometryIdentifier.hpp"
#include <iterator>
#include <stdexcept>
#include <utility>
#include <vector>
+ Include dependency graph for GeometryHierarchyMapTests.cpp:

Go to the source code of this file.

Macros

#define CHECK_ENTRY(container, query, compare)
 

Functions

 BOOST_AUTO_TEST_CASE (ConstructDefault)
 
 BOOST_AUTO_TEST_CASE (ConstructNonUnique)
 
 BOOST_AUTO_TEST_CASE (ConstructInitializerList)
 
 BOOST_AUTO_TEST_CASE (IndexBasedAccess)
 
 BOOST_AUTO_TEST_CASE (Find)
 
 BOOST_AUTO_TEST_CASE (FindWithGlobalDefault)
 

Macro Definition Documentation

#define CHECK_ENTRY (   container,
  query,
  compare 
)
Value:
do { \
auto ret = container.find(query); \
BOOST_CHECK_NE(ret, container.end()); \
if (ret != container.end()) { \
auto idx = std::distance(container.begin(), ret); \
BOOST_CHECK_EQUAL(container.idAt(idx), compare); \
} \
} while (false)

Definition at line 39 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 39 of file GeometryHierarchyMapTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

Function Documentation

BOOST_AUTO_TEST_CASE ( ConstructDefault  )

Definition at line 54 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 54 of file GeometryHierarchyMapTests.cpp

References Acts::PhysicalConstants::c, and physmon_ckf_tracking::u.

BOOST_AUTO_TEST_CASE ( ConstructNonUnique  )

Definition at line 61 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 61 of file GeometryHierarchyMapTests.cpp

References testing::internal::move().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ConstructInitializerList  )

Definition at line 79 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 79 of file GeometryHierarchyMapTests.cpp

References Acts::PhysicalConstants::c, CHECK_ENTRY, next, and physmon_ckf_tracking::u.

BOOST_AUTO_TEST_CASE ( IndexBasedAccess  )

Definition at line 95 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 95 of file GeometryHierarchyMapTests.cpp

References Acts::PhysicalConstants::c, i, and physmon_ckf_tracking::u.

BOOST_AUTO_TEST_CASE ( Find  )

Definition at line 118 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 118 of file GeometryHierarchyMapTests.cpp

References Acts::PhysicalConstants::c, CHECK_ENTRY, next, and physmon_ckf_tracking::u.

BOOST_AUTO_TEST_CASE ( FindWithGlobalDefault  )

Definition at line 164 of file GeometryHierarchyMapTests.cpp.

View newest version in sPHENIX GitHub at line 164 of file GeometryHierarchyMapTests.cpp

References Acts::PhysicalConstants::c, CHECK_ENTRY, next, and physmon_ckf_tracking::u.