29int main(
int argc,
char **argv)
39 JParser<> zap(
"Auxiliary program to print (x) of the maximum of 1D 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();
83 TH1& h1 =
dynamic_cast<TH1&
>(*object);
87 double y = h1.GetBinContent(
ix);
91 x = h1.GetXaxis()->GetBinCenter(
ix);
103 double y = h1.GetBinContent(
ix);
107 x = h1.GetXaxis()->GetBinCenter(
ix);
115 TGraph&
g1 =
dynamic_cast<TGraph&
>(*object);
117 for (
Int_t i = 0; i !=
g1.GetN(); ++i) {
118 if (
g1.GetY()[i] >
ymax) {
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.
Double_t g1(const Double_t x)
Function.
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.