12#include "TProfile3D.h"
29int main(
int argc,
char **argv)
41 JParser<> zap(
"Auxiliary program to project 3D histograms.");
43 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
44 zap[
'P'] =
make_field(project,
"projection") =
' ',
'x',
'X',
'y',
'Y',
'z',
'Z';
50 catch(
const exception &error) {
54 const bool px = (project ==
'x' || project ==
'X');
55 const bool py = (project ==
'y' || project ==
'Y');
56 const bool pz = (project ==
'z' || project ==
'Z');
61 FATAL(
"Invalid operation: "
62 << (px ?
"" :
"no") <<
" X projection " <<
" and "
63 << (
py ?
"" :
"no") <<
" Y projection " <<
" and "
64 << (
pz ?
"" :
"no") <<
" Z projection " <<
endl);
76 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
86 const TString tag(key->GetName());
92 if (tag.Contains(
regexp) && isTObject(key)) {
94 TH3*
h3 =
dynamic_cast<TH3*
>(key->ReadObj());
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
I/O formatting auxiliaries.
#define MAKE_CSTRING(A)
Make C-string.
int main(int argc, char **argv)
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).