Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:31:15

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 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/MuHadIonizationData.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Types.hh"
0011 #include "celeritas/Quantities.hh"
0012 #include "celeritas/Types.hh"
0013 
0014 namespace celeritas
0015 {
0016 //---------------------------------------------------------------------------//
0017 /*!
0018  * Data for muon and hadron ionization.
0019  *
0020  * This data is used for the Bragg, ICRU73QO, Bethe-Bloch, and muon Bethe-Bloch
0021  * models and can be reused for different incident particle types.
0022  */
0023 struct MuHadIonizationData
0024 {
0025     //! Secondary particle ID
0026     ParticleId electron;
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 electron && electron_mass > zero_quantity();
0034     }
0035 };
0036 
0037 //---------------------------------------------------------------------------//
0038 }  // namespace celeritas