13 #define PRINT(out, scale) {\
14 out << setw(8) << left << #scale << ' ' \
15 << scientific << setprecision(0) << getValue(scale) << ' ' \
26 int main(
int argc,
char* argv[])
42 catch(
const exception &error) {
43 FATAL(error.what() << endl);
49 cout <<
"unit [" << unit <<
"] " << scientific << setprecision(0) <<
getValue(
getScale(unit)) << endl;
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char *argv[])
#define PRINT(out, scale)
Enumeration for scaling of quantity.
Utility class to parse command line options.
JScale_t getScale(const char unit)
Get scale corresponding to textual unit.
double getValue(const JScale_t scale)
Get numerical value corresponding to scale.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).