Example program to test JEEP::JScale_t enumeration.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "Jeep/JScale.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char *argv[]) | 
|   | 
Example program to test JEEP::JScale_t enumeration. 
- Author
 - mdejong 
 
Definition in file JScale.cc.
 
◆ PRINT
      
        
          | #define PRINT | 
          ( | 
           |           out,  | 
        
        
           | 
           | 
           |           scale ) | 
        
      
 
Value:    {                                         \
    out << setw(8) << left << #
scale << 
' '                         \
 
        << scientific << setprecision(0) << getValue(
scale) << 
' '  \
 
        << endl;                                                    \
  }
void scale(vector< double > &v, double c)
scale vector content
 
 
Definition at line 13 of file JScale.cc.
   13#define PRINT(out, scale) {                                         \
   14    out << setw(8) << left << #scale << ' '                         \
   15        << scientific << setprecision(0) << getValue(scale) << ' '  \
   16        << getUnit(scale)                                           \
   17        << endl;                                                    \
   18  }
 
 
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char * |           argv[] ) | 
        
      
 
Definition at line 26 of file JScale.cc.
   27{
   29 
   30  char    unit;
   32 
   33  try {
   34 
   36 
   39 
   40    zap(argc, argv);
   41  }
   42  catch(const exception &error) {
   43    FATAL(error.what() << endl);
 
   44  }
   45 
   46 
   48 
   49  cout << 
"unit [" << unit << 
"] " << scientific << setprecision(0) << 
getValue(
getScale(unit)) << endl;
 
   50  
   62}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
#define PRINT(out, scale)
 
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).