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/CommonCoulombData.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Macros.hh"
0011 #include "celeritas/Types.hh"
0012 #include "celeritas/Units.hh"
0013 
0014 namespace celeritas
0015 {
0016 //---------------------------------------------------------------------------//
0017 /*!
0018  * Physics IDs for MSC.
0019  *
0020  * TODO these will probably be changed to a map over all particle IDs.
0021  */
0022 struct CoulombIds
0023 {
0024     ParticleId electron;
0025     ParticleId positron;
0026 
0027     //! Whether the IDs are assigned
0028     explicit CELER_FUNCTION operator bool() const
0029     {
0030         return electron && positron;
0031     }
0032 };
0033 
0034 }  // namespace celeritas