Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-07 10:11:39

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/optical/surface/model/PolishedRoughnessModel.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "celeritas/inp/OpticalPhysics.hh"
0010 #include "celeritas/optical/surface/SurfaceModel.hh"
0011 
0012 namespace celeritas
0013 {
0014 namespace optical
0015 {
0016 //---------------------------------------------------------------------------//
0017 /*!
0018  * Trivial roughness model for a perfectly polished surface.
0019  *
0020  * Sets the facet normal equal to the surface's global normal for each track.
0021  */
0022 class PolishedRoughnessModel : public SurfaceModel
0023 {
0024   public:
0025     //!@{
0026     //! \name Type aliases
0027     using InputT = inp::NoRoughness;
0028     //!@}
0029 
0030   public:
0031     // Construct the model from an ID and layer map
0032     PolishedRoughnessModel(SurfaceModelId,
0033                            std::map<PhysSurfaceId, InputT> const&);
0034 
0035     //! Get the list of physical surfaces this model applies to
0036     VecSurfaceLayer const& get_surfaces() const final { return surfaces_; }
0037 
0038     // Execute the model with host data
0039     void step(CoreParams const&, CoreStateHost&) const final;
0040 
0041     // Execute the model with device data
0042     void step(CoreParams const&, CoreStateDevice&) const final;
0043 
0044   private:
0045     VecSurfaceLayer surfaces_;
0046 };
0047 
0048 //---------------------------------------------------------------------------//
0049 }  // namespace optical
0050 }  // namespace celeritas