Back to home page

EIC code displayed by LXR

 
 

    


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/TrackingCutAction.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "ActionInterface.hh"
0010 
0011 namespace celeritas
0012 {
0013 namespace optical
0014 {
0015 //---------------------------------------------------------------------------//
0016 /*!
0017  * Kill misbehaving photons and deposit energy locally.
0018  */
0019 class TrackingCutAction final : public OpticalStepActionInterface,
0020                                 public StaticConcreteAction
0021 {
0022   public:
0023     // Construct with ID
0024     explicit TrackingCutAction(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::post; }
0034 };
0035 
0036 //---------------------------------------------------------------------------//
0037 }  // namespace optical
0038 }  // namespace celeritas