Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2022-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/ElectronBremsData.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Macros.hh"
0011 #include "celeritas/Types.hh"
0012 
0013 namespace celeritas
0014 {
0015 //---------------------------------------------------------------------------//
0016 //! IDs used by brems
0017 struct ElectronBremIds
0018 {
0019     //! ID of a gamma
0020     ParticleId gamma;
0021     //! ID of an electron
0022     ParticleId electron;
0023     //! ID of an positron
0024     ParticleId positron;
0025 
0026     //! Whether the IDs are assigned
0027     explicit CELER_FUNCTION operator bool() const
0028     {
0029         return gamma && electron && positron;
0030     }
0031 };
0032 
0033 //---------------------------------------------------------------------------//
0034 }  // namespace celeritas