26 int main(
int argc,
char **argv)
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)));
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int main(int argc, char **argv)
I/O formatting auxiliaries.
Utility class to parse command line options.
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
T & getInstance(const T &object)
Get static instance from temporary object.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for sequence of same character.
Auxiliary data structure for floating point format specification.
Auxiliary class to handle particle name, codes and mass.
std::string name
name of particle
Auxiliary data structure for alignment of data.