Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:11:31

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/MuHadIonizationData.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/Types.hh"
0010 #include "celeritas/Quantities.hh"
0011 #include "celeritas/Types.hh"
0012 
0013 namespace celeritas
0014 {
0015 //---------------------------------------------------------------------------//
0016 /*!
0017  * Data for muon and hadron ionization.
0018  *
0019  * This data is used for the Bragg, ICRU73QO, Bethe-Bloch, and muon Bethe-Bloch
0020  * models and can be reused for different incident particle types.
0021  */
0022 struct MuHadIonizationData
0023 {
0024     //! Secondary particle ID
0025     ParticleId electron;
0026     //! Electron mass [MeV / c^2]
0027     units::MevMass electron_mass;
0028 
0029     //! Whether all data are assigned and valid
0030     explicit CELER_FUNCTION operator bool() const
0031     {
0032         return electron && electron_mass > zero_quantity();
0033     }
0034 };
0035 
0036 //---------------------------------------------------------------------------//
0037 }  // namespace celeritas