![]() |
|
|||
File indexing completed on 2025-09-16 08:52:16
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/em/data/MuBremsstrahlungData.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/Macros.hh" 0010 #include "corecel/Types.hh" 0011 #include "celeritas/Quantities.hh" 0012 #include "celeritas/Types.hh" 0013 0014 namespace celeritas 0015 { 0016 //---------------------------------------------------------------------------// 0017 /*! 0018 * Device data for creating an interactor. 0019 */ 0020 struct MuBremsstrahlungData 0021 { 0022 //! Particle IDs 0023 ParticleId gamma; 0024 ParticleId mu_minus; 0025 ParticleId mu_plus; 0026 0027 //! Electron mass [MeV / c^2] 0028 units::MevMass electron_mass; 0029 0030 //! Whether all data are assigned and valid 0031 explicit CELER_FUNCTION operator bool() const 0032 { 0033 return gamma && mu_minus && mu_plus && electron_mass > zero_quantity(); 0034 } 0035 }; 0036 0037 //---------------------------------------------------------------------------// 0038 } // 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 |
![]() ![]() |