Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-10 10:05:50

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/phys/SurfacePhysicsMapBuilder.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <set>
0010 
0011 #include "corecel/Types.hh"
0012 
0013 #include "SurfacePhysicsMapData.hh"
0014 
0015 namespace celeritas
0016 {
0017 class SurfaceParams;
0018 //---------------------------------------------------------------------------//
0019 /*!
0020  * Create host data for a surface physics map.
0021  */
0022 class SurfacePhysicsMapBuilder
0023 {
0024   public:
0025     //!@{
0026     //! \name Type aliases
0027     using HostData = HostVal<SurfacePhysicsMapData>;
0028     //!@}
0029 
0030   public:
0031     // Construct with surface data and result to modify
0032     SurfacePhysicsMapBuilder(SurfaceParams const& surfaces, HostData& data);
0033 
0034     // Add and index from a surface model
0035     void operator()(SurfaceModel const& model);
0036 
0037   private:
0038     SurfaceParams const& surfaces_;
0039     HostData& data_;
0040     std::set<ActionId> actions_;
0041 };
0042 
0043 //---------------------------------------------------------------------------//
0044 }  // namespace celeritas