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/PolishedRoughnessExecutor.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "celeritas/optical/CoreTrackView.hh"
0010 
0011 namespace celeritas
0012 {
0013 namespace optical
0014 {
0015 //---------------------------------------------------------------------------//
0016 /*!
0017  * Trivial executor for the polished roughness model.
0018  *
0019  * Sets the facet normal of the track to the global normal of the track.
0020  */
0021 struct PolishedRoughnessExecutor
0022 {
0023     //! Apply polished roughness executor
0024     CELER_FUNCTION void operator()(CoreTrackView& track) const
0025     {
0026         auto surface_phys = track.surface_physics();
0027         surface_phys.facet_normal(surface_phys.global_normal());
0028     }
0029 };
0030 
0031 //---------------------------------------------------------------------------//
0032 }  // namespace optical
0033 }  // namespace celeritas