CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
ParticleProperties.hpp File Reference

Interface to particle properties. More...

#include <array>
#include <cstdint>
#include <cmath>
#include <iosfwd>
#include <string_view>
#include <type_traits>
#include <unordered_map>
#include <corsika/framework/core/PhysicalUnits.hpp>
#include <corsika/framework/core/GeneratedParticleProperties.inc>
#include <corsika/detail/framework/core/ParticleProperties.inl>
#include <corsika/framework/core/GeneratedParticleClasses.inc>
Include dependency graph for ParticleProperties.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  corsika::full_name
 tag class for get_name() More...
 

Namespaces

 corsika
 `, since they are used everywhere as integral part of the framework.
 

Functions

int16_t constexpr corsika::get_charge_number (Code const)
 electric charge in units of e
 
ElectricChargeType constexpr corsika::get_charge (Code const)
 electric charge
 
HEPMassType constexpr corsika::get_mass (Code const)
 mass
 
HEPEnergyType corsika::get_kinetic_energy_propagation_threshold (Code const)
 Get the kinetic energy propagation threshold. More...
 
void corsika::set_kinetic_energy_propagation_threshold (Code const, HEPEnergyType const)
 Set the kinetic energy propagation threshold object.
 
HEPEnergyType corsika::get_energy_production_threshold (Code const)
 Get the particle production energy threshold. More...
 
void corsika::set_energy_production_threshold (Code const, HEPEnergyType const)
 Set the particle production energy threshold in total energies.
 
PDGCode constexpr corsika::get_PDG (Code const)
 Particle code according to PDG, "Monte Carlo Particle Numbering Scheme".
 
PDGCode constexpr corsika::get_PDG (unsigned int const A, unsigned int const Z)
 
std::string_view constexpr corsika::get_name (Code const)
 name of the particle as string
 
std::string corsika::get_name (Code, full_name)
 get name of particle, including (A,Z) for nuclei
 
TimeType constexpr corsika::get_lifetime (Code const)
 lifetime
 
bool constexpr corsika::is_hadron (Code const)
 true if particle is hadron
 
bool constexpr corsika::is_em (Code const)
 true if particle is electron, positron or photon
 
bool constexpr corsika::is_muon (Code const)
 true if particle is mu+ or mu-
 
bool constexpr corsika::is_neutrino (Code const)
 true if particle is (anti-) neutrino
 
bool constexpr corsika::is_charged (Code const)
 true if particle is charged
 
Code constexpr corsika::get_nucleus_code (size_t const A, size_t const Z)
 Creates the Code for a nucleus of type 10LZZZAAAI. More...
 
bool constexpr corsika::is_nucleus (Code const)
 Checks if Code corresponds to a nucleus. More...
 
size_t constexpr corsika::get_nucleus_A (Code const)
 Get the mass number A for nucleus. More...
 
size_t constexpr corsika::get_nucleus_Z (Code const)
 Get the charge number Z for nucleus. More...
 
HEPMassType constexpr corsika::get_nucleus_mass (Code const code)
 Calculates the mass of nucleus. More...
 
HEPMassType constexpr corsika::get_nucleus_mass (unsigned int const A, unsigned int const Z)
 Calculates the mass of nucleus. More...
 
std::string corsika::get_nucleus_name (Code const code)
 Get the nucleus name. More...
 
Code corsika::convert_from_PDG (PDGCode const)
 convert PDG code to CORSIKA 8 internal code. More...
 
std::initializer_list< Code > constexpr corsika::get_all_particles ()
 Returns list of all non-nuclei particles. More...
 
std::ostream & corsika::operator<< (std::ostream &, corsika::Code)
 Code output operator. More...
 

Detailed Description

Interface to particle properties.

Definition in file ParticleProperties.hpp.