|
MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
Stores units-related enums and conversion functions. More...
#include <Units.h>
Public Types | |
| enum | LengthUnit { MM , CM } |
| Position units. More... | |
| enum | MomentumUnit { MEV , GEV } |
| Momentum units. More... | |
Static Public Member Functions | |
| template<typename T> | |
| static void | convert (T &m, LengthUnit from, LengthUnit to) |
| Convert FourVector to different length unit. | |
| template<typename T> | |
| static void | convert (T &m, MomentumUnit from, MomentumUnit to) |
| Convert FourVector to different momentum unit. | |
| static LengthUnit | length_unit (const std::string &name) |
| Get length unit based on its name. | |
| static MomentumUnit | momentum_unit (const std::string &name) |
| Get momentum unit based on its name. | |
| static std::string | name (LengthUnit u) |
| Get name of length unit. | |
| static std::string | name (MomentumUnit u) |
| Get name of momentum unit. | |
Stores units-related enums and conversion functions.
Manages units used by HepMC::GenEvent
|
inlinestatic |
Convert FourVector to different length unit.
Definition at line 96 of file Units.h.
|
inlinestatic |
Convert FourVector to different momentum unit.
Definition at line 81 of file Units.h.
Referenced by HepMC3::GenEvent::set_units().
|
inlinestatic |
Get length unit based on its name.
Definition at line 46 of file Units.h.
References name().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Get name of momentum unit.
Definition at line 56 of file Units.h.
Referenced by length_unit(), HepMC3::Print::listing(), momentum_unit(), and HepMC3::WriterAscii::write_event().