Celeritas 0.7.0-3+develop.835656ac1
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
VecgeomTypes.hh File Reference
#include <type_traits>
#include <VecGeom/base/Cuda.h>
#include <VecGeom/base/Global.h>
#include <VecGeom/base/Version.h>
#include <VecGeom/navigation/NavStateFwd.h>
#include <VecGeom/volumes/PlacedVolume.h>
#include "corecel/OpaqueId.hh"
#include "corecel/Types.hh"

Macros

#define CELER_VGNAV_TUPLE   1
 
#define CELER_VGNAV_INDEX   2
 
#define CELER_VGNAV_PATH   3
 
#define CELER_VGNAV   CELER_VGNAV_PATH
 

Typedefs

using celeritas::VgPlacedVolumeInt = int
 
using celeritas::vg_real_type = ::Precision
 
using celeritas::vgbvh_real_type = float
 
using celeritas::VgVolumeInstanceId = OpaqueId< struct VecgeomPlacedVolume_, std::make_unsigned_t< VgPlacedVolumeInt > >
 VecGeom::VPlacedVolume::id is unsigned int.
 
template<MemSpace M>
using celeritas::VgLogicalVolume = MemSpaceCond_t< M, vecgeom::cxx::LogicalVolume, vecgeom::cuda::LogicalVolume >
 
template<MemSpace M>
using celeritas::VgPlacedVolume = MemSpaceCond_t< M, vecgeom::cxx::VPlacedVolume, vecgeom::cuda::VPlacedVolume >
 
template<class T , MemSpace M>
using celeritas::VgVector3 = MemSpaceCond_t< M, vecgeom::cxx::Vector3D< T >, vecgeom::cuda::Vector3D< T > >
 
using celeritas::VgReal3 = VgVector3< vg_real_type, MemSpace::native >
 
using celeritas::VgNavIndex = ::NavIndex_t
 
using celeritas::VgNavState = vecgeom::NavigationState
 VecGeom navigation state.
 

Functions

 vecgeom::VECGEOM_HOST_FORWARD_DECLARE (class LogicalVolume;)
 
 vecgeom::VECGEOM_DEVICE_FORWARD_DECLARE (class LogicalVolume;)
 
 vecgeom::VECGEOM_HOST_FORWARD_DECLARE (class VPlacedVolume;)
 
 vecgeom::VECGEOM_DEVICE_FORWARD_DECLARE (class VPlacedVolume;)
 
 vecgeom::VECGEOM_HOST_FORWARD_DECLARE (template< class T > class Vector3D;)
 
 vecgeom::VECGEOM_DEVICE_FORWARD_DECLARE (template< class T > class Vector3D;)
 
template<class T >
auto celeritas::to_vgvector (Array< T, 3 > const &a) -> VgVector3< T, MemSpace::native >
 Create a Vector3D from a length-3 array.
 
template<class T >
auto celeritas::to_array (vecgeom::Vector3D< T > const &vgv) -> Array< T, 3 >
 Create a length-3 array from a VecGeom vector.
 

Typedef Documentation

◆ VgNavState

using celeritas::VgNavState = typedef vecgeom::NavigationState

VecGeom navigation state.

This is NavStateTuple or NavStateIndex (VecGeom 2) or NavStateIndex or NavStatePath (VecGeom 1). The index and tuple states are stored directly in Celeritas state collections and include the boundary flag and last-exited state.