Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JScale.hh File Reference

Enumeration for scaling of quantity. More...

#include <cmath>
#include "JLang/JException.hh"

Go to the source code of this file.

Namespaces

namespace  JEEP
 General puprpose classes and methods.
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Enumerations

enum  JEEP::JScale_t {
  JEEP::femto_t = -15 , JEEP::pico_t = -12 , JEEP::nano_t = -9 , JEEP::micro_t = -6 ,
  JEEP::milli_t = -3 , JEEP::unit_t = 0 , JEEP::kilo_t = +3 , JEEP::mega_t = +6 ,
  JEEP::giga_t = +9 , JEEP::tera_t = +12 , JEEP::peta_t = +15 , JEEP::exa_t = +18
}
 Enumeration for scaling of quantity. More...
 

Functions

double JEEP::getValue (const JScale_t scale)
 Get numerical value corresponding to scale.
 
const char * JEEP::getUnit (const int scale)
 Get textual unit corresponding to scale.
 
JScale_t JEEP::getScale (const char unit)
 Get scale corresponding to textual unit.
 

Detailed Description

Enumeration for scaling of quantity.

Author
mdejong

Definition in file JScale.hh.