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