11#include "TProfile2D.h"
44int main(
int argc,
char **argv)
56 JParser<> zap(
"Auxiliary program to convert 2D histograms to PDFs.");
58 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
65 catch(
const exception &error) {
79 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
89 const TString tag(key->GetName());
95 if (tag.Contains(
regexp) && isTObject(key)) {
97 TObject*
object = key->ReadObj();
99 TH2* h2 =
dynamic_cast<TH2*
>(object);
101 try { h2 =
dynamic_cast<TProfile2D&
>(*object).ProjectionXY(); }
catch(exception&) {}
106 ERROR(
"Incompatible object " << object->GetName() <<
endl);
116 convertToPDF(**h2, option);
int main(int argc, char **argv)
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
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).