#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.
◆ main()
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);
53 JManager_t zmap(
new TH2D(
"H2[%]", NULL, 10, -1.0, +1.0, 10, -1.0, +1.0), wildcard, format);
55 for (
int i = 0; i != 10; ++i) {
56 zmap[i]->Fill(0.0, 0.0, 1.0);
62 JManager_t test(zmap);
64 ASSERT(zmap.size() != 0 && test.size() == 0);
70 ASSERT(zmap.size() == test.size());
79 JManager_t test = JManager_t::Read(in, zmap->GetName(), zmap.wc);
81 ASSERT(zmap.size() == test.size());