Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-19 10:36:41

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/em/executor/GammaNuclearExecutor.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/Assert.hh"
0010 #include "celeritas/em/data/GammaNuclearData.hh"
0011 #include "celeritas/em/interactor/GammaNuclearInteractor.hh"
0012 #include "celeritas/em/xs/GammaNuclearMicroXsCalculator.hh"
0013 #include "celeritas/global/CoreTrackView.hh"
0014 #include "celeritas/mat/ElementView.hh"
0015 #include "celeritas/phys/Interaction.hh"
0016 #include "celeritas/random/ElementSelector.hh"
0017 
0018 namespace celeritas
0019 {
0020 //---------------------------------------------------------------------------//
0021 struct GammaNuclearExecutor
0022 {
0023     inline CELER_FUNCTION Interaction operator()(
0024         celeritas::CoreTrackView const& track);
0025 
0026     NativeCRef<GammaNuclearData> params;
0027 };
0028 
0029 //---------------------------------------------------------------------------//
0030 /*!
0031  * Apply the GammaNuclearInteractor to the current track.
0032  */
0033 CELER_FUNCTION Interaction GammaNuclearExecutor::operator()(
0034     CoreTrackView const& track)
0035 {
0036     auto particle = track.particle();
0037 
0038     // Construct the interactor
0039     GammaNuclearInteractor interact(params, particle);
0040 
0041     // Execute the interactor
0042     return interact();
0043 }
0044 
0045 //---------------------------------------------------------------------------//
0046 }  // namespace celeritas