Example program to test JTOOLS::JQuantile calculation.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "TRandom.h"
#include "JTools/JQuantile.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 JTOOLS::JQuantile calculation. 
- Author
 - mdejong 
 
Definition in file JQuantile.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 20 of file JQuantile.cc.
   32     JParser<> zap(
"Example program to test quantile calculation.");
 
   42   catch(
const exception &error) {
 
   43     FATAL(error.what() << endl);
 
   46   if (numberOfEvents < 2) {
 
   47     FATAL(
"Fatal error: number of events " << numberOfEvents << endl);
 
   50   gRandom->SetSeed(seed);
 
   56   for (
int i = 0; i != numberOfEvents; ++i) {
 
   57     quantile.
put(gRandom->Gaus(x, sigma));
 
   61   NOTICE(
"quantity  " <<                     
"calculated"                    << 
" | " <<   
"   true   "    << endl);
 
   62   NOTICE(
"mean      " << fixed << showpos << setw(10) << quantile.getMean()  << 
" | " << setw(10) << x     << endl);
 
   63   NOTICE(
"RMS       " << fixed << showpos << setw(10) << quantile.getSTDev() << 
" | " << setw(10) << sigma << endl);
 
Utility class to parse command line options. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object