Example program to test JGIZMO::JManager class.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include "TROOT.h"
#include "TFile.h"
#include "TH2D.h"
#include "JGizmo/JManager.hh"
#include "JLang/JException.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 JGIZMO::JManager class. 
- Author
 - mdejong 
 
Definition in file JManager.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 24 of file JManager.cc.
   33     JParser<> zap(
"Example program to test histogram manager.");
 
   40   catch(
const exception &error) {
 
   41     FATAL(error.what() << endl);
 
   48   const char          wildcard = 
'%';
 
   49   const ios::fmtflags format(ios::showpos);
 
   52   typedef JManager<int, TH2D>  JManager_t;
 
   54   JManager_t zmap(
new TH2D(
"H2[%]",  NULL, 10, -1.0, +1.0, 10, -1.0, +1.0), wildcard, format);
 
   56   const double x_val = 0.5;
 
   58   for (
int i = 0; i != 10; ++i) {
 
   59     zmap[i]->Fill(x_val, 0.0, 1.0);
 
   65     JManager_t test(zmap);
 
   67     ASSERT(zmap.size() != 0 && test.size() == 0);
 
   73     ASSERT(zmap.size() == test.size());
 
   75     ASSERT(zmap[0]->GetMean() == test[0]->GetMean());
 
   84     JManager_t test = JManager_t::Read(
in, zmap->GetName(), zmap.wc);
 
   86     ASSERT(zmap.size() == test.size());
 
   88     ASSERT(zmap[0]->GetMean() == test[0]->GetMean());
 
Utility class to parse command line options. 
 
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
 
#define ASSERT(A,...)
Assert macro. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object