From 0923a571d8c5e951f64eafe6ba706e939dc84ec2 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Fri, 7 Sep 2018 12:55:45 +0200 Subject: [PATCH] removed unused dir --- .../ParticleProperties/ParticleProperties.hpp | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 Framework/ParticleProperties/ParticleProperties.hpp diff --git a/Framework/ParticleProperties/ParticleProperties.hpp b/Framework/ParticleProperties/ParticleProperties.hpp deleted file mode 100644 index f62796691..000000000 --- a/Framework/ParticleProperties/ParticleProperties.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef PARTICLEPROPERTIES_HPP -#define PARTICLEPROPERTIES_HPP -#include <array> -#include <cstdint> -#include <iostream> - -namespace ParticleProperties { - -typedef int16_t PDGCode; - -#include "generated_particle_properties.inc" - -auto constexpr getMass(InternalParticleCode const p) -{ - return masses[static_cast<uint8_t const>(p)]; -} - -auto constexpr getPDG(InternalParticleCode const p) -{ - return pdg_codes[static_cast<uint8_t const>(p)]; -} - -auto constexpr getElectricChargeQN(InternalParticleCode const p) -{ - return electric_charge[static_cast<uint8_t const>(p)]; -} - -auto constexpr getElectricCharge(InternalParticleCode const p) -{ - return getElectricChargeQN(p) * (phys::units::e / 3.); -} - -auto const getName(InternalParticleCode const p) -{ - return names[static_cast<uint8_t const>(p)]; -} - -std::ostream& operator<< (std::ostream& stream, InternalParticleCode const p) -{ - stream << getName(p); - return stream; -} - -} -#endif -- GitLab