28{
31
33
37 JRange_t z;
38 JRange_t c;
40
41 try {
42
43 JParser<> zap(
"Auxiliary program to print the ranges of x, y, z and c values of 3D ROOT objects.");
44
45 zap[
'f'] =
make_field(inputFile,
"<input file>:<object name>");
51
53 }
54 catch(const exception &error) {
56 }
57
58
59 JRange_t X = JRange_t::DEFAULT_RANGE();
60 JRange_t Y = JRange_t::DEFAULT_RANGE();
61 JRange_t Z = JRange_t::DEFAULT_RANGE();
62 JRange_t C = JRange_t::DEFAULT_RANGE();
63
65
67
69
71 ERROR(
"File: " << input->getFullFilename() <<
" not opened." <<
endl);
72 continue;
73 }
74
76
78
80
81 const TString tag(
key->GetName());
82
84
85
86
88
90
91 try {
92
93 TH3&
h3 =
dynamic_cast<TH3&
>(*object);
94
95 X.combine(
x.join(JRange_t(
h3.GetXaxis()->GetXmin(),
h3.GetXaxis()->GetXmax())));
96 Y.combine(
y.join(JRange_t(
h3.GetYaxis()->GetXmin(),
h3.GetYaxis()->GetXmax())));
97 Z.combine(z.join(JRange_t(
h3.GetZaxis()->GetXmin(),
h3.GetZaxis()->GetXmax())));
98 C.combine(c.join(JRange_t(
h3.GetMinimum(),
h3.GetMaximum())));
99 }
100 catch(exception&) {}
101 }
102 }
103 }
104
105
107 <<
SCIENTIFIC(15,5) << Y.getLowerLimit() <<
' '
108 <<
SCIENTIFIC(15,5) << Z.getLowerLimit() <<
' '
109 <<
SCIENTIFIC(15,5) << C.getLowerLimit() <<
' '
110 <<
SCIENTIFIC(15,5) << X.getUpperLimit() <<
' '
111 <<
SCIENTIFIC(15,5) << Y.getUpperLimit() <<
' '
112 <<
SCIENTIFIC(15,5) << Z.getUpperLimit() <<
' '
114}
#define DEBUG(A)
Message macros.
#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.
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer.
bool isTObject(const TKey *key)
Check if given key corresponds to a TObject.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.