Celeritas  0.5.0-86+4a8eea4
Classes | Namespaces | Macros | Functions
PDGNumber.hh File Reference
#include <cstddef>
#include <functional>
#include "corecel/Assert.hh"

Classes

class  celeritas::PDGNumber
 Type-safe particle identifier. More...
 

Namespaces

 celeritas::pdg
 Unique standard model particle identifiers by the Particle Data Group.
 

Macros

#define CELER_DEFINE_PDGNUMBER(NAME, VALUE)
 

Functions

constexpr bool celeritas::operator== (PDGNumber lhs, PDGNumber rhs)
 Test equality.
 
constexpr bool celeritas::operator!= (PDGNumber lhs, PDGNumber rhs)
 Test inequality.
 
constexpr bool celeritas::operator< (PDGNumber lhs, PDGNumber rhs)
 Allow less-than comparison for sorting.
 
constexpr PDGNumber celeritas::pdg::electron ()
 
constexpr PDGNumber celeritas::pdg::positron ()
 
constexpr PDGNumber celeritas::pdg::mu_minus ()
 
constexpr PDGNumber celeritas::pdg::mu_plus ()
 
constexpr PDGNumber celeritas::pdg::gamma ()
 
constexpr PDGNumber celeritas::pdg::ion ()
 
constexpr PDGNumber celeritas::pdg::pi_plus ()
 
constexpr PDGNumber celeritas::pdg::pi_minus ()
 
constexpr PDGNumber celeritas::pdg::kaon_plus ()
 
constexpr PDGNumber celeritas::pdg::kaon_minus ()
 
constexpr PDGNumber celeritas::pdg::proton ()
 
constexpr PDGNumber celeritas::pdg::anti_proton ()
 
constexpr PDGNumber celeritas::pdg::neutron ()
 
constexpr PDGNumber celeritas::pdg::anti_neutron ()
 
constexpr PDGNumber celeritas::pdg::he3 ()
 
constexpr PDGNumber celeritas::pdg::anti_he3 ()
 
constexpr PDGNumber celeritas::pdg::alpha ()
 
constexpr PDGNumber celeritas::pdg::anti_alpha ()
 
constexpr PDGNumber celeritas::pdg::deuteron ()
 
constexpr PDGNumber celeritas::pdg::anti_deuteron ()
 
constexpr PDGNumber celeritas::pdg::triton ()
 
constexpr PDGNumber celeritas::pdg::anti_triton ()
 

Macro Definition Documentation

◆ CELER_DEFINE_PDGNUMBER

#define CELER_DEFINE_PDGNUMBER (   NAME,
  VALUE 
)
Value:
inline constexpr PDGNumber NAME() \
{ \
return PDGNumber{VALUE}; \
}