Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:58

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file orange/OrangeGeoTraits.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "geocel/GeoTraits.hh"
0011 
0012 namespace celeritas
0013 {
0014 //---------------------------------------------------------------------------//
0015 class OrangeParams;
0016 class OrangeTrackView;
0017 template<Ownership W, MemSpace M>
0018 struct OrangeParamsData;
0019 template<Ownership W, MemSpace M>
0020 struct OrangeStateData;
0021 
0022 //---------------------------------------------------------------------------//
0023 /*!
0024  * Traits specialization for ORANGE geometry.
0025  */
0026 template<>
0027 struct GeoTraits<OrangeParams>
0028 {
0029     //! Params data used during runtime
0030     template<Ownership W, MemSpace M>
0031     using ParamsData = OrangeParamsData<W, M>;
0032 
0033     //! State data used during runtime
0034     template<Ownership W, MemSpace M>
0035     using StateData = OrangeStateData<W, M>;
0036 
0037     //! Geometry track view
0038     using TrackView = OrangeTrackView;
0039 
0040     //! Descriptive name for the geometry
0041     static constexpr inline char const* name = "ORANGE";
0042 
0043     //! TO BE REMOVED: "native" file extension for this geometry
0044     static constexpr inline char const* ext = ".org.json";
0045 };
0046 
0047 //---------------------------------------------------------------------------//
0048 }  // namespace celeritas