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/FresnelReflectivityModel.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 reflectivity model.
0019  *
0020  * All tracks at a surface crossing will undergo the surface interaction.
0021  *
0022  * \todo Should the interaction "absorption vs reflection" calculation be
0023  * performed here instead?
0024  */
0025 class FresnelReflectivityModel : public SurfaceModel
0026 {
0027   public:
0028     //!@{
0029     //! \name Type aliases
0030     using InputT = inp::FresnelReflection;
0031     //!@}
0032 
0033   public:
0034     //! Construct the model from an ID and layer map
0035     FresnelReflectivityModel(SurfaceModelId,
0036                              std::map<PhysSurfaceId, InputT> const&);
0037 
0038     //! Get the list of physical surfaces this model applies to
0039     VecSurfaceLayer const& get_surfaces() const final { return surfaces_; }
0040 
0041     // Execute the model with host data
0042     void step(CoreParams const&, CoreStateHost&) const final;
0043 
0044     // Execute the model with device data
0045     void step(CoreParams const&, CoreStateDevice&) const final;
0046 
0047   private:
0048     VecSurfaceLayer surfaces_;
0049 };
0050 
0051 //---------------------------------------------------------------------------//
0052 }  // namespace optical
0053 }  // namespace celeritas