33 int main(
int argc, 
char **argv)
 
   44     JParser<> zap(
"Auxiliary program to print quantiles from ROOT histograms.");
 
   46     zap[
'f'] = 
make_field(inputFile,  
"<input file>:<object name>");
 
   52   catch(
const exception &error) {
 
   53     FATAL(error.what() << endl);
 
   59     DEBUG(
"Input: " << *input << endl);
 
   64       ERROR(
"File: " << input->getFullFilename() << 
" not opened." << endl);
 
   68     const TRegexp regexp(input->getObjectName());
 
   70     TIter iter(dir->GetListOfKeys());
 
   72     for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
 
   74       const TString tag(key->GetName());
 
   76       DEBUG(
"Key: " << tag << 
" match = " << tag.Contains(regexp) << endl);
 
   80       if (tag.Contains(regexp) && 
isTObject(key)) {
 
   82         TObject* 
object = key->ReadObj();
 
   88           TH1&    h1 = 
dynamic_cast<TH1&
>(*object);
 
   90           h1.GetQuantiles(
Q.size(), X.data(), 
Q.data());
 
   92         catch(
const exception&) {}
 
   96           TGraph& 
g1 = 
dynamic_cast<TGraph&
>(*object);
 
   98           JQuantile Q1(
"", 
true);
 
  100           for (Int_t i = 0; i != g1.GetN(); ++i) {
 
  101             Q1.put(g1.GetX()[i], g1.GetY()[i]);
 
  104           for (
size_t i = 0; i != 
Q.size(); ++i) {
 
  105             X[i] = Q1.getQuantile(
Q[i]);
 
  108         catch(
const exception&) {}
 
Utility class to parse command line options. 
 
Q(UTCMax_s-UTCMin_s)-livetime_s
 
int main(int argc, char *argv[])
 
I/O formatting auxiliaries. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Utility class to parse command line options. 
 
bool isTObject(const TKey *key)
Check if given key corresponds to a TObject. 
 
no fit printf nominal n $STRING awk v X
 
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer. 
 
#define DEBUG(A)
Message macros. 
 
Double_t g1(const Double_t x)
Function.