13#include "TProfile2D.h"
29int main(
int argc,
char **argv)
39 JParser<> zap(
"Auxiliary program to print (x,y) of the maximum of 2D ROOT objects.");
41 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
46 catch(
const exception &error) {
58 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
68 const TString tag(key->GetName());
74 if (tag.Contains(
regexp) && isTObject(key)) {
76 TObject*
object = key->ReadObj();
84 TH2& h2 =
dynamic_cast<TH2&
>(*object);
89 double z = h2.GetBinContent(
ix,
iy);
93 x = h2.GetXaxis()->GetBinCenter(
ix);
94 y = h2.GetYaxis()->GetBinCenter(
iy);
108 double z = h2.GetBinContent(
ix,
iy);
112 x = h2.GetXaxis()->GetBinCenter(
ix);
113 y = h2.GetYaxis()->GetBinCenter(
iy);
122 TGraph2D& g2 =
dynamic_cast<TGraph2D&
>(*object);
124 for (
Int_t i = 0; i != g2.GetN(); ++i) {
125 if (g2.GetZ()[i] > zmax) {
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)
I/O formatting auxiliaries.
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.