|
|
|||
File indexing completed on 2025-12-16 10:11:31
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/data/CoulombScatteringData.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/Macros.hh" 0010 #include "corecel/Types.hh" 0011 #include "celeritas/Quantities.hh" 0012 #include "celeritas/Types.hh" 0013 0014 #include "CommonCoulombData.hh" 0015 0016 namespace celeritas 0017 { 0018 //---------------------------------------------------------------------------// 0019 /*! 0020 * Constant shared data used by the CoulombScatteringModel. 0021 */ 0022 struct CoulombScatteringData 0023 { 0024 // Particle IDs 0025 CoulombIds ids; 0026 0027 //! Cosine of the maximum scattering polar angle 0028 static CELER_CONSTEXPR_FUNCTION real_type cos_thetamax() { return -1; } 0029 0030 // Check if the data is initialized 0031 explicit CELER_FUNCTION operator bool() const 0032 { 0033 return static_cast<bool>(ids); 0034 } 0035 }; 0036 0037 //---------------------------------------------------------------------------// 0038 } // namespace celeritas
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|