#include <string>
#include <iostream>
#include <iomanip>
#include <map>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "JAAnet/JAAnetToolkit.hh"
#include "JAAnet/JPDB.hh"
#include "Jeep/JeepToolkit.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Auxiliary program to print JDomino.cc statistics.
- Author
- mdejong
Definition in file JPrintDomino.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 26 of file JPrintDomino.cc.
36 JParser<> zap(
"Auxiliary program to print JDomino statistics.");
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
54 TFile* in = TFile::Open(file_name->c_str(),
"exist");
56 if (in == NULL || !in->IsOpen()) {
57 FATAL(
"File: " << *file_name <<
" not opened." << endl);
60 TH1D* job = dynamic_cast<TH1D*>(in->Get(
"job"));
63 FATAL(
"No job statistics.");
66 buffer.push_back(job);
70 if (!buffer.empty()) {
83 for (
int i0 = 1; i0 <= h0->GetNbinsX(); ++i0) {
85 const Double_t x = h0->GetBinCenter(i0);
86 const int type = (int) x;
87 const Int_t i1 = h0->FindBin(-x);
98 W += (
combine ? (*h1)->GetBinContent(i0) + (*h1)->GetBinContent(i1) : (*h1)->GetBinContent(i0));
111 catch(
const exception& error) {
117 NOTICE(noshowpos <<
' ' <<
FIXED(12,6) << (
combine ? (*h1)->GetBinContent(i0) + (*h1)->GetBinContent(i1) : (*h1)->GetBinContent(i0)));
Auxiliary class to handle particle name, codes and mass.