9 #include "HepMC/Units.h"
16 std::string name(MomentumUnit m) {
18 case MEV :
return "MEV";
19 case GEV :
return "GEV";
20 default :
return "badValue";
24 std::string name(LengthUnit l) {
26 case MM :
return "MM";
27 case CM :
return "CM";
28 default :
return "badValue";
32 double conversion_factor(MomentumUnit from, MomentumUnit to)
36 else if ( from == MEV && to == GEV )
42 double conversion_factor(LengthUnit from, LengthUnit to)
46 else if ( from == MM && to == CM )
53 LengthUnit default_length_unit() {
58 MomentumUnit default_momentum_unit() {