Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:11:44

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/phys/detail/TrackingCutAction.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "celeritas/global/ActionInterface.hh"
0010 
0011 namespace celeritas
0012 {
0013 namespace detail
0014 {
0015 //---------------------------------------------------------------------------//
0016 /*!
0017  * Kill tracks and deposit energy locally.
0018  *
0019  * \sa CoreTrackView::tracking_cut_action
0020  */
0021 class TrackingCutAction final : public CoreStepActionInterface,
0022                                 public StaticConcreteAction
0023 {
0024   public:
0025     // Construct with ID
0026     explicit TrackingCutAction(ActionId);
0027 
0028     // Launch kernel with host data
0029     void step(CoreParams const&, CoreStateHost&) const final;
0030 
0031     // Launch kernel with device data
0032     void step(CoreParams const&, CoreStateDevice&) const final;
0033 
0034     //! Dependency ordering of the action
0035     StepActionOrder order() const final { return StepActionOrder::post; }
0036 };
0037 
0038 //---------------------------------------------------------------------------//
0039 }  // namespace detail
0040 }  // namespace celeritas