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