![]() |
|
|||
File indexing completed on 2025-02-22 10:31:30
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/phys/Secondary.hh 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "corecel/Types.hh" 0011 0012 #include "ParticleData.hh" 0013 0014 namespace celeritas 0015 { 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * New particle created via an Interaction. 0019 * 0020 * It will be converted into a "track initializer" using the parent track's 0021 * information. 0022 */ 0023 struct Secondary 0024 { 0025 ParticleId particle_id; //!< New particle type 0026 units::MevEnergy energy; //!< New kinetic energy 0027 Real3 direction; //!< New direction 0028 0029 //! Whether the secondary survived cutoffs 0030 explicit CELER_FUNCTION operator bool() const 0031 { 0032 return static_cast<bool>(this->particle_id); 0033 } 0034 }; 0035 0036 //---------------------------------------------------------------------------// 0037 } // 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 |
![]() ![]() |