36int main(
int argc,
char **argv)
48 JParser<> zap(
"Auxiliary program to convert 1D histograms to PDFs.");
50 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
57 catch(
const exception &error) {
71 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
81 const TString tag(key->GetName());
87 if (tag.Contains(
regexp) && isTObject(key)) {
89 TObject*
object = key->ReadObj();
91 TH1* h1 =
dynamic_cast<TH1*
>(object);
93 try { h1 =
dynamic_cast<TProfile&
>(*object).ProjectionX(); }
catch(exception&) {}
98 ERROR(
"Incompatible object " << object->GetName() <<
endl);
108 convertToPDF(**h1, 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).