|
|
|||
File indexing completed on 2026-11-07 10:11:38
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/optical/gen/PrimaryGeneratorData.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/Macros.hh" 0010 #include "corecel/Types.hh" 0011 0012 namespace celeritas 0013 { 0014 namespace optical 0015 { 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * Data for sampling optical photons from user-configurable distributions. 0019 */ 0020 struct PrimaryDistributionData 0021 { 0022 size_type num_photons{}; 0023 OnedDistributionId energy; 0024 ThreedDistributionId angle; 0025 ThreedDistributionId shape; 0026 0027 //! Check whether the data are assigned 0028 explicit CELER_FUNCTION operator bool() const 0029 { 0030 return num_photons > 0 && energy && angle && shape; 0031 } 0032 }; 0033 0034 //---------------------------------------------------------------------------// 0035 } // namespace optical 0036 } // 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 |
|