HepMC3 event record library
|
Stores units-related enums and conversion functions.
Manages units used by HepMC::GenEvent
#include <Units.h>
Public Types | |
enum | MomentumUnit { MEV , GEV } |
Momentum units. More... | |
enum | LengthUnit { MM , CM } |
Position units. More... | |
Static Public Member Functions | |
static MomentumUnit | momentum_unit (const std::string &name) |
Get momentum unit based on its name. | |
static LengthUnit | length_unit (const std::string &name) |
Get length unit based on its name. | |
static std::string | name (MomentumUnit u) |
Get name of momentum unit. | |
static std::string | name (LengthUnit u) |
Get name of length unit. | |
template<typename T > | |
static void | convert (T &m, MomentumUnit from, MomentumUnit to) |
Convert FourVector to different momentum unit. | |
template<typename T > | |
static void | convert (T &m, LengthUnit from, LengthUnit to) |
Convert FourVector to different length unit. | |
enum LengthUnit |
enum MomentumUnit |
|
inlinestatic |
Convert FourVector to different length unit.
|
inlinestatic |
Convert FourVector to different momentum unit.
|
inlinestatic |
Get length unit based on its name.
Definition at line 46 of file Units.h.
References HEPMC3_ERROR, and Units::name().
|
inlinestatic |
Get momentum unit based on its name.
Definition at line 36 of file Units.h.
References HEPMC3_ERROR, and Units::name().
|
inlinestatic |
|
inlinestatic |