24int main(
int argc, 
char **argv)
 
   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());