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