Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-27 10:26:20

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/alongstep/detail/LinearTrackPropagator.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "celeritas/field/LinearPropagator.hh"
0010 #include "celeritas/global/CoreTrackView.hh"
0011 
0012 namespace celeritas
0013 {
0014 namespace detail
0015 {
0016 //---------------------------------------------------------------------------//
0017 /*!
0018  * Create a propagator for neutral particles or no fields.
0019  */
0020 struct LinearTrackPropagator
0021 {
0022     CELER_FUNCTION Propagation operator()(CoreTrackView const& track) const
0023     {
0024         return LinearPropagator{track.geometry()}(track.sim().step_length());
0025     }
0026 };
0027 
0028 //---------------------------------------------------------------------------//
0029 }  // namespace detail
0030 }  // namespace celeritas