![]() |
|
|||
File indexing completed on 2025-09-17 08:53:32
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/CommonCoulombData.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/Macros.hh" 0010 #include "celeritas/Types.hh" 0011 #include "celeritas/Units.hh" 0012 0013 namespace celeritas 0014 { 0015 //! Opaque index to MSC-applicable particles 0016 using MscParticleId = OpaqueId<struct MscParticle_>; 0017 0018 //---------------------------------------------------------------------------// 0019 /*! 0020 * Physics IDs for MSC. 0021 */ 0022 struct CoulombIds 0023 { 0024 ParticleId electron; 0025 ParticleId positron; 0026 0027 //! Whether the IDs are assigned 0028 explicit CELER_FUNCTION operator bool() const 0029 { 0030 return electron && positron; 0031 } 0032 }; 0033 0034 } // 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 |
![]() ![]() |