File indexing completed on 2025-09-17 08:59:58
0001
0002
0003
0004
0005
0006
0007 #pragma once
0008
0009 #include <memory>
0010 #include <VecGeom/base/BVH.h>
0011 #include <VecGeom/base/Config.h>
0012 #include <VecGeom/base/Cuda.h>
0013 #include <VecGeom/base/Global.h>
0014 #include <VecGeom/base/Math.h>
0015 #include <VecGeom/base/Version.h>
0016 #include <VecGeom/management/ABBoxManager.h>
0017
0018 #if VECGEOM_VERSION < 0x020000 && defined(VECGEOM_USE_SURF)
0019 # error \
0020 "Unsupported: cannot build with VecGeom surface before merge into 2.0"
0021 #endif
0022 #define VECGEOM_V2 0x020000
0023
0024 namespace celeritas
0025 {
0026 namespace detail
0027 {
0028
0029 #ifdef VECGEOM_BVH_SINGLE
0030 using BvhPrecision = float;
0031 #else
0032 using BvhPrecision = double;
0033 #endif
0034
0035 #if VECGEOM_VERSION >= VECGEOM_V2
0036 using ABBoxManager_t = vecgeom::ABBoxManager<vecgeom::Precision>;
0037 using CudaBVH_t = vecgeom::cuda::BVH<BvhPrecision>;
0038 #else
0039 using ABBoxManager_t = vecgeom::ABBoxManager;
0040 using CudaBVH_t = vecgeom::cuda::BVH;
0041 #endif
0042
0043
0044 }
0045 }