12 #ifndef HAMMER_MATH_UNITS
13 #define HAMMER_MATH_UNITS
19 static const double eV = 1.e-9;
21 static const double keV = 1.e-6;
23 static constexpr
double MeV = 1.e-3;
25 static constexpr
double GeV = 1.;
27 static const double TeV = 1.e3;
static constexpr double MeV
void init()
initializes the units map
Hammer class for dealing with units.
static Units * getUnitsInstance()
static constexpr double GeV
static constexpr double GeV2
static constexpr double MeV2
Units & operator=(const Units &)=delete
static Units & instance()
std::map< std::string, double > _unitfactors
double getUnitsRescalingToMC(std::string mcunits, std::string localunits) const