Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2023-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/em/data/CoulombScatteringData.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Macros.hh"
0011 #include "corecel/Types.hh"
0012 #include "celeritas/Quantities.hh"
0013 #include "celeritas/Types.hh"
0014 
0015 #include "CommonCoulombData.hh"
0016 
0017 namespace celeritas
0018 {
0019 //---------------------------------------------------------------------------//
0020 /*!
0021  * Constant shared data used by the CoulombScatteringModel.
0022  */
0023 struct CoulombScatteringData
0024 {
0025     // Particle IDs
0026     CoulombIds ids;
0027 
0028     //! Cosine of the maximum scattering polar angle
0029     static CELER_CONSTEXPR_FUNCTION real_type cos_thetamax() { return -1; }
0030 
0031     // Check if the data is initialized
0032     explicit CELER_FUNCTION operator bool() const
0033     {
0034         return static_cast<bool>(ids);
0035     }
0036 };
0037 
0038 //---------------------------------------------------------------------------//
0039 }  // namespace celeritas