27 static const char*
const first_t =
"first";
44int main(
int argc,
char **argv)
61 JParser<> zap(
"Auxiliary program to histogram bin-by-bin deviations of a set of 2D histograms.");
63 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
67 zap[
'F'] =
make_field(formula,
"ROOT TFormula (may contain method names of object)") =
"0";
73 catch(
const exception &error) {
82 TH2* h2 =
dynamic_cast<TH2*
>(getObject(*input));
105 X.getNumberOfBins(), X.getLowerLimit(), X.getUpperLimit());
113 const double y1 = getResult(formula, h2);
115 DEBUG(h2->GetName() <<
' ' << formula <<
' ' << y1 <<
endl);
122 h0->Fill(reverse ? y1 -
yp :
yp - y1);
133 const double y1 = h2->GetBinContent(
ix,
iy);
139 h0->Fill(reverse ? y1 -
yp :
yp - y1);
146 const double y1 = getResult(formula);
155 h0->Fill(reverse ? y1 -
yp :
yp - y1);
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)
Auxiliary class to handle file name, ROOT directory and object name.
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).