Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:31:28

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file celeritas/phys/detail/TrackingCutAction.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "celeritas/global/ActionInterface.hh"
0011 
0012 namespace celeritas
0013 {
0014 namespace detail
0015 {
0016 //---------------------------------------------------------------------------//
0017 /*!
0018  * Kill tracks and deposit energy locally.
0019  *
0020  * \sa CoreTrackView::tracking_cut_action
0021  */
0022 class TrackingCutAction final : public CoreStepActionInterface,
0023                                 public StaticConcreteAction
0024 {
0025   public:
0026     // Construct with ID
0027     explicit TrackingCutAction(ActionId);
0028 
0029     // Launch kernel with host data
0030     void step(CoreParams const&, CoreStateHost&) const final;
0031 
0032     // Launch kernel with device data
0033     void step(CoreParams const&, CoreStateDevice&) const final;
0034 
0035     //! Dependency ordering of the action
0036     StepActionOrder order() const final { return StepActionOrder::post; }
0037 };
0038 
0039 //---------------------------------------------------------------------------//
0040 }  // namespace detail
0041 }  // namespace celeritas