![]() |
|
|||
File indexing completed on 2025-09-17 08:53:42
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/action/AlongStepAction.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "ActionInterface.hh" 0010 0011 namespace celeritas 0012 { 0013 namespace optical 0014 { 0015 //---------------------------------------------------------------------------// 0016 /*! 0017 * Move a track to the next boundary or interaction. 0018 */ 0019 class AlongStepAction final : public OpticalStepActionInterface, 0020 public StaticConcreteAction 0021 { 0022 public: 0023 // Construct with ID 0024 explicit AlongStepAction(ActionId); 0025 0026 // Launch kernel with host data 0027 void step(CoreParams const&, CoreStateHost&) const final; 0028 0029 // Launch kernel with device data 0030 void step(CoreParams const&, CoreStateDevice&) const final; 0031 0032 //! Dependency ordering of the action 0033 StepActionOrder order() const final { return StepActionOrder::along; } 0034 }; 0035 0036 //---------------------------------------------------------------------------// 0037 } // namespace optical 0038 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |