![]() |
|
|||
File indexing completed on 2025-09-18 09:08:57
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/EPlusGGData.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 namespace celeritas 0015 { 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * Device data for creating an EPlusGGInteractor. 0019 */ 0020 struct EPlusGGData 0021 { 0022 using Mass = units::MevMass; 0023 0024 //! ID of an positron 0025 ParticleId positron; 0026 //! ID of a gamma 0027 ParticleId gamma; 0028 //! Electron mass 0029 units::MevMass electron_mass; 0030 0031 //! Check whether the data is assigned 0032 explicit CELER_FUNCTION operator bool() const 0033 { 0034 return positron && gamma && electron_mass > zero_quantity(); 0035 } 0036 }; 0037 0038 using EPlusGGHostRef = EPlusGGData; 0039 using EPlusGGDeviceRef = EPlusGGData; 0040 0041 //---------------------------------------------------------------------------// 0042 } // 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 |
![]() ![]() |