IAP GITLAB

Skip to content
Snippets Groups Projects

Resolve "extension of particle properties to include particle lifetimes"

3 files
+ 51
13
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -26,6 +26,7 @@
#include <corsika/units/PhysicalConstants.h>
#include <corsika/units/PhysicalUnits.h>
/**
* @namespace particle
*
@@ -36,6 +37,8 @@
namespace corsika::particles {
using corsika::units::si::second;
enum class Code : int16_t;
using PDGCodeType = int16_t;
@@ -47,6 +50,7 @@ namespace corsika::particles {
corsika::units::si::MassType constexpr GetMass(Code const);
PDGCodeType constexpr GetPDG(Code const);
constexpr std::string const& GetName(Code const);
corsika::units::si::TimeType constexpr GetLifetime(Code const);
#include <corsika/particles/GeneratedParticleProperties.inc>
@@ -76,6 +80,10 @@ namespace corsika::particles {
return names[static_cast<CodeIntType const>(p)];
}
corsika::units::si::TimeType constexpr GetLifetime(Code const p) {
return lifetime[static_cast<CodeIntType const>(p)];
}
namespace io {
std::ostream& operator<<(std::ostream& stream, Code const p);
Loading