Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:09:17

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/Quantities.hh
0006 //! \brief Derivative unit classes and annotated Quantity values
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Macros.hh"
0011 #include "corecel/math/Quantity.hh"  // IWYU pragma: export
0012 
0013 #include "UnitTypes.hh"  // IWYU pragma: export
0014 
0015 namespace celeritas
0016 {
0017 namespace units
0018 {
0019 //---------------------------------------------------------------------------//
0020 //!@{
0021 //! \name Quantities for atomic scale/natural units
0022 using ElementaryCharge = RealQuantity<EElectron>;
0023 using MevEnergy = RealQuantity<Mev>;
0024 using MevMass = RealQuantity<MevPerCsq>;
0025 using MevMomentum = RealQuantity<MevPerC>;
0026 using MevMomentumSq = RealQuantity<UnitProduct<MevPerC, MevPerC>>;
0027 using LightSpeed = RealQuantity<CLight>;
0028 using AmuMass = RealQuantity<Amu>;
0029 //!@}
0030 
0031 //! Special faux quantity for overloading cross section calculation
0032 using LogMevEnergy = RealQuantity<LogMev>;
0033 
0034 //---------------------------------------------------------------------------//
0035 //!@{
0036 //! \name Quantities for manual input and/or test harnesses
0037 using BarnXs = RealQuantity<Barn>;
0038 using CmLength = RealQuantity<Centimeter>;
0039 using InvCmXs = RealQuantity<UnitInverse<Centimeter>>;
0040 using InvCcDensity = RealQuantity<InvCentimeterCubed>;
0041 using MolCcDensity = RealQuantity<MolPerCentimeterCubed>;
0042 using GramCcDensity = RealQuantity<GramPerCentimeterCubed>;
0043 using FieldTesla = RealQuantity<Tesla>;
0044 //!@}
0045 //---------------------------------------------------------------------------//
0046 }  // namespace units
0047 }  // namespace celeritas