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