![]() |
|
|||
File indexing completed on 2025-09-14 08:50:37
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/io/ImportParticle.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <string> 0010 0011 namespace celeritas 0012 { 0013 //---------------------------------------------------------------------------// 0014 /*! 0015 * Store particle data. 0016 */ 0017 struct ImportParticle 0018 { 0019 //!@{ 0020 //! \name Type aliases 0021 using PdgInt = int; 0022 //!@} 0023 0024 std::string name; 0025 PdgInt pdg{0}; 0026 double mass{0}; //!< [MeV] 0027 double charge{0}; //!< [Multiple of electron charge value] 0028 double spin{0}; //!< [Multiple of hbar] 0029 double lifetime{0}; //!< [time] 0030 bool is_stable{false}; 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 |
![]() ![]() |