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()) {
74 DEBUG(setw(6) <<
' ' <<
' ' <<
FILL(WIDTH,
' '));
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));
109 NOTICE(
' ' << setw(WIDTH) << left << particle.
name);
111 catch(
const exception& error) {
113 NOTICE(
' ' << setw(WIDTH) << left <<
"unknown");
117 NOTICE(noshowpos <<
' ' <<
FIXED(12,6) << (
combine ? (*h1)->GetBinContent(i0) + (*h1)->GetBinContent(i1) : (*h1)->GetBinContent(i0)));
Auxiliary data structure for alignment of data.
Utility class to parse command line options.
std::string name
name of particle
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
then for HISTOGRAM in h0 h1
Auxiliary data structure for floating point format specification.
T & getInstance(const T &object)
Get static instance from temporary object.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary data structure for sequence of same character.
Auxiliary class to handle particle name, codes and mass.
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
#define DEBUG(A)
Message macros.