31int main(
int argc,
char **argv)
43 JParser<> zap(
"Auxiliary program to rebin ROOT histograms.");
45 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
52 catch(
const exception &error) {
70 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
80 const TString tag(key->GetName());
86 if (tag.Contains(
regexp) && isTObject(key)) {
88 TObject*
object = key->ReadObj();
92 TH1D& h0 =
dynamic_cast<TH1D&
>(*object);
94 TH1D h1(h0.GetName(),
NULL, X.size() - 1, X.data());
98 const Double_t xmin = h0.GetXaxis()->FindBin(h1.GetXaxis()->GetBinLowEdge(
ix));
99 const Double_t xmax = h0.GetXaxis()->FindBin(h1.GetXaxis()->GetBinUpEdge (
ix));
112 const Double_t y = h0.GetBinContent(i);
113 const Double_t z = h0.GetBinWidth (i);
114 const Double_t w = h0.GetBinError (i);
124 h1.SetBinContent(
ix, Y);
125 h1.SetBinError (
ix, W);
133 out.WriteTObject(&h1);
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.
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).
Auxiliary data structure for floating point format specification.