Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JPlot1D.cc File Reference

General purpose plot program for 1D ROOT objects. More...

#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include <set>
#include <cmath>
#include "TROOT.h"
#include "TFile.h"
#include "TClass.h"
#include "TApplication.h"
#include "TCanvas.h"
#include "TKey.h"
#include "TStyle.h"
#include "TAttMarker.h"
#include "TAttLine.h"
#include "TH1.h"
#include "TH2.h"
#include "TF1.h"
#include "THStack.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TMultiGraph.h"
#include "TProfile.h"
#include "TLegend.h"
#include "TString.h"
#include "TRegexp.h"
#include "TText.h"
#include "JTools/JRange.hh"
#include "JLang/JSinglePointer.hh"
#include "JROOT/JStyle.hh"
#include "JROOT/JCanvas.hh"
#include "JROOT/JMarkerAttributes.hh"
#include "JROOT/JLineAttributes.hh"
#include "JROOT/JLegend.hh"
#include "JGizmo/JRootObjectID.hh"
#include "JGizmo/JRootObject.hh"
#include "JGizmo/JGizmoToolkit.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

General purpose plot program for 1D ROOT objects.

The option -f corresponds to <file name>:<object name>.

Author
mdejong

Definition in file JPlot1D.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 58 of file JPlot1D.cc.

59 {
60  using namespace std;
61  using namespace JPP;
62 
63  typedef JRange<double> JRange_t;
64 
65  vector<JRootObjectID> inputFile;
66  string outputFile;
67  JCanvas canvas;
68  int stats;
69  string legend;
70  JRange_t X;
71  JRange_t Y;
72  JRange_t Z;
73  JCounter logx;
74  bool logy;
75  bool logz;
76  char project;
77  string xLabel;
78  string yLabel;
79  JCounter drawLine;
80  bool fillArea;
81  int lineWidth;
82  double markerSize;
83  string option;
84  set<char> grid;
85  bool batch;
86  string title;
87  pair<string, int> Ndivisions;
88  int group;
89  int debug;
90  string xTimeFormat;
91 
92  try {
93 
94  JParser<> zap("General purpose plot program for 1D ROOT objects.");
95 
96  zap['f'] = make_field(inputFile, "<input file>:<object name>");
97  zap['o'] = make_field(outputFile, "graphics output") = "";
98  zap['w'] = make_field(canvas, "size of canvas <nx>x<ny> [pixels]") = JCanvas(500, 500);
99  zap['s'] = make_field(stats) = -1;
100  zap['L'] = make_field(legend, "position legend e.g. TR") = "";
101  zap['x'] = make_field(X, "abscissa range") = JRange_t();
102  zap['y'] = make_field(Y, "ordinate range") = JRange_t();
103  zap['z'] = make_field(Z, "ordinate range of projection)") = JRange_t();
104  zap['X'] = make_field(logx, "logarithmic x-axis (-XX log10 axis)");
105  zap['Y'] = make_field(logy, "logarithmic y-axis");
106  zap['Z'] = make_field(logz, "logarithmic y-axis; after projection");
107  zap['P'] = make_field(project, "projection") = '\0', 'x', 'X', 'y', 'Y';
108  zap['>'] = make_field(xLabel, "x-axis label") = "";
109  zap['^'] = make_field(yLabel, "y-axis label") = "";
110  zap['C'] = make_field(drawLine);
111  zap['F'] = make_field(fillArea);
112  zap['l'] = make_field(lineWidth, "line width") = 2;
113  zap['S'] = make_field(markerSize, "marker size") = 1.0;
114  zap['O'] = make_field(option, "plotting option") = "";
115  zap['G'] = make_field(grid, "grid lines [X][Y]") = JPARSER::initialised();
116  zap['B'] = make_field(batch, "batch processing");
117  zap['T'] = make_field(title, "title") = "KM3NeT preliminary";
118  zap['N'] = make_field(Ndivisions, "axis divisioning (e.g. \"X 505\")") = JPARSER::initialised();
119  zap['g'] = make_field(group, "group colour codes of objects") = 1;
120  zap['t'] = make_field(xTimeFormat, "set time format for x-axis, e.g. \%d\\/\%m\\/\\%y%F1970-01-01 00:00:00") = "";
121  zap['d'] = make_field(debug) = 0;
122 
123  zap(argc, argv);
124  }
125  catch(const exception &error) {
126  FATAL(error.what() << endl);
127  }
128 
129 
130  gROOT->SetBatch(batch);
131 
132  TApplication* tp = new TApplication("user", NULL, NULL);
133  TCanvas* cv = new TCanvas("c1", "c1", canvas.x, canvas.y);
134 
135  JSinglePointer<TStyle> gStyle(new JStyle("gplot", cv->GetWw(), cv->GetWh()));
136 
137  gROOT->SetStyle("gplot");
138  gROOT->ForceStyle();
139 
140 
141  cv->SetFillStyle(4000);
142  cv->SetFillColor(kWhite);
143  cv->Divide(1,1);
144  cv->cd(1);
145 
146 
147  JMarkerAttributes::getInstance().setMarkerSize(markerSize);
148  JLineAttributes ::getInstance().setLineWidth (lineWidth);
149 
150 
151  Double_t xmin = numeric_limits<double>::max();
152  Double_t xmax = numeric_limits<double>::lowest();
153 
154  Double_t ymin = numeric_limits<double>::max();
155  Double_t ymax = numeric_limits<double>::lowest();
156 
157 
158  vector<JRootObject> listOfObjects;
159 
160  const bool px = (project == 'x' || project == 'X'); // projection on x-axis
161  const bool py = (project == 'y' || project == 'Y'); // projection on y-axis
162 
163  logy = (logy || logz);
164 
165  if (px) {
166  swap(Y, Z); // Y becomes range in TH2::ProjectionX() and Z becomes y-axis range
167  }
168 
169  if (py) {
170  swap(X, Z); // X becomes range in TH2::ProjectionY()
171  swap(Y, X); // Y becomes x-axis range and Z becomes y-axis range
172  }
173 
174  TH1* master = NULL;
175 
176  for (vector<JRootObjectID>::const_iterator input = inputFile.begin(); input != inputFile.end(); ++input) {
177 
178  DEBUG("Input: " << *input << endl);
179 
180  TDirectory* dir = getDirectory(*input);
181 
182  if (dir == NULL) {
183  ERROR("File: " << input->getFullFilename() << " not opened." << endl);
184  continue;
185  }
186 
187  const TRegexp regexp(input->getObjectName());
188 
189  TIter iter(dir->GetListOfKeys());
190 
191  for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
192 
193  const TString tag(key->GetName());
194 
195  DEBUG("Key: " << tag << " match = " << tag.Contains(regexp) << endl);
196 
197  // option match
198 
199  if (tag.Contains(regexp)) {
200 
201  if (title == JName_t) {
202  title = key->GetName();
203  } else if (title == JTitle_t) {
204  title = key->GetTitle();
205  }
206 
207  JRootObject object(key->ReadObj());
208 
209  TAttMarker marker = JMarkerAttributes::getInstance().get(0);
210  TAttLine line = JLineAttributes ::getInstance().get(0);
211 
212  if (group > 1)
213  marker.SetMarkerColor(JMarkerAttributes::getInstance().get(listOfObjects.size()/group).GetMarkerColor());
214  else
215  marker = JMarkerAttributes::getInstance().get(listOfObjects.size());
216 
217  if (drawLine == 1)
218  line = JLineAttributes::getInstance().get(listOfObjects.size());
219  else
220  line.SetLineColor(marker.GetMarkerColor());
221 
222  try {
223 
224  TProfile& h1 = dynamic_cast<TProfile&>(*object);
225 
226  object = h1.ProjectionX();
227  }
228  catch(exception&) {}
229 
230  try {
231 
232  TH2& h2 = dynamic_cast<TH2&>(*object);
233 
234  if (px) {
235 
236  if (Z != JRange_t())
237  object = h2.ProjectionX(MAKE_CSTRING(h2.GetName() << "_px" << LABEL_TERMINATOR << listOfObjects.size()),
238  h2.GetYaxis()->FindBin(Z.getLowerLimit()),
239  h2.GetYaxis()->FindBin(Z.getUpperLimit()) - 1);
240  else
241  object = h2.ProjectionX(MAKE_CSTRING(h2.GetName() << "_px" << LABEL_TERMINATOR << listOfObjects.size()),
242  1,
243  h2.GetYaxis()->GetNbins());
244 
245  } else if (py) {
246 
247  if (Z != JRange_t())
248  object = h2.ProjectionY(MAKE_CSTRING(h2.GetName() << "_py" << LABEL_TERMINATOR << listOfObjects.size()),
249  h2.GetXaxis()->FindBin(Z.getLowerLimit()),
250  h2.GetXaxis()->FindBin(Z.getUpperLimit()) - 1);
251  else
252  object = h2.ProjectionY(MAKE_CSTRING(h2.GetName() << "_py" << LABEL_TERMINATOR << listOfObjects.size()),
253  1,
254  h2.GetXaxis()->GetNbins());
255 
256  } else {
257 
258  ERROR("For 2D histograms, use option option -P for projections or use JPlot2D" << endl);
259 
260  continue;
261  }
262  }
263  catch(exception&) {}
264 
265  try {
266 
267  dynamic_cast<TAttMarker&>(*object) = marker;
268  }
269  catch(exception&) {}
270 
271  try {
272 
273  dynamic_cast<TAttLine&> (*object) = line;
274  }
275  catch(exception&) {}
276 
277  try {
278 
279  TH1& h1 = dynamic_cast<TH1&>(*object);
280 
281  h1.SetStats(stats != -1);
282 
283  xmin = min(xmin, h1.GetXaxis()->GetXmin());
284  xmax = max(xmax, h1.GetXaxis()->GetXmax());
285  ymin = min(ymin, logy ? h1.GetMinimum(0.0) : h1.GetMinimum());
286  ymax = max(ymax, h1.GetMaximum());
287 
288  if (drawLine) {
289  for (int i = 1; i <= h1.GetNbinsX(); ++i) {
290  h1.SetBinError(i, 0.0);
291  }
292  }
293  }
294  catch(exception&) {}
295 
296  if (fillArea) {
297 
298  try {
299 
300  TAttFill& fill = dynamic_cast<TAttFill&>(*object);
301 
302  fill.SetFillColor(marker.GetMarkerColor());
303  }
304  catch(exception&) {}
305  }
306 
307  try {
308 
309  TGraph& g1 = dynamic_cast<TGraph&>(*object);
310 
311  for (Int_t i = 0; i != g1.GetN(); ++i) {
312 
313  xmin = min(xmin, g1.GetX()[i]);
314  xmax = max(xmax, g1.GetX()[i]);
315 
316  if (!logy || g1.GetY()[i] > 0.0) {
317  ymin = min(ymin, g1.GetY()[i]);
318  ymax = max(ymax, g1.GetY()[i]);
319  }
320  }
321  }
322  catch(exception&) {}
323 
324  try {
325 
326  TGraphErrors& g1 = dynamic_cast<TGraphErrors&>(*object);
327 
328  if (drawLine) {
329  for (Int_t i = 0; i != g1.GetN(); ++i) {
330  g1.GetEX()[i] = 0.0;
331  g1.GetEY()[i] = 0.0;
332  }
333  } else {
334  for (Int_t i = 0; i != g1.GetN(); ++i) {
335  if (!logy || g1.GetY()[i] - g1.GetEY()[i] > 0.0) { ymin = min(ymin, g1.GetY()[i] - g1.GetEY()[i]); }
336  if (!logy || g1.GetY()[i] + g1.GetEY()[i] > 0.0) { ymax = max(ymax, g1.GetY()[i] + g1.GetEY()[i]); }
337  }
338  }
339  }
340  catch(exception&) {}
341 
342  try {
343 
344  TMultiGraph& m1 = dynamic_cast<TMultiGraph&>(*object);
345 
346  for (TIter i1(m1.GetListOfGraphs()); TGraph* g1 = dynamic_cast<TGraph*>(i1()); ) {
347 
348  for (Int_t i = 0; i != g1->GetN(); ++i) {
349 
350  xmin = min(xmin, g1->GetX()[i]);
351  xmax = max(xmax, g1->GetX()[i]);
352 
353  if (!logy || g1->GetY()[i] > 0.0) {
354  ymin = min(ymin, g1->GetY()[i]);
355  ymax = max(ymax, g1->GetY()[i]);
356  }
357  }
358  }
359  }
360  catch(exception&) {}
361 
362  try {
363 
364  TF1& f1 = dynamic_cast<TF1&>(*object);
365 
366  double __xmin;
367  double __xmax;
368 
369  f1.GetRange(__xmin, __xmax);
370 
371  xmin = min(xmin, __xmin);
372  xmax = max(xmax, __xmax);
373  ymin = min(ymin, f1.GetMinimum());
374  ymax = max(ymax, f1.GetMaximum());
375  }
376  catch(exception&) {}
377 
378 
379  try {
380 
381  THStack& hs = dynamic_cast<THStack&>(*object);
382 
383  NOTICE("THStack" << endl);
384 
385  TIterator* iterator = hs.GetHists()->MakeIterator();
386 
387  for (size_t index = 1; TObject* i = iterator->Next(); ++index) {
388 
389  TH1& h1 = dynamic_cast<TH1&>(*i);
390 
391  NOTICE("TH1[" << index << "] " << h1.GetName() << endl);
392 
393  xmin = min(xmin, h1.GetXaxis()->GetXmin());
394  xmax = max(xmax, h1.GetXaxis()->GetXmax());
395 
396  ymin = min(ymin, logy ? h1.GetMinimum(0.0) : h1.GetMinimum());
397  ymax = max(ymax, h1.GetMaximum());
398 
399  h1.SetLineWidth(1);
400  h1.SetLineColor(kBlack);
401 
402  h1.SetFillColor(JMarkerAttributes::getInstance().get(index).GetMarkerColor());
403  }
404  }
405  catch(exception&) {}
406 
407  for (TString buffer[] = { object.getLabel(), input->getFilename().c_str(), "" }, *i = buffer; *i != ""; ++i) {
408 
409  *i = (*i)(TRegexp("\\[.*\\]"));
410 
411  DEBUG("Label: <" << *i << ">" << endl);
412 
413  if (i->Length() > 2) {
414  object.setLabel((*i)(1, i->Length() - 2));
415  }
416  }
417 
418  DEBUG("Add object: " << tag << " with label " << object.getLabel() << endl);
419 
420  if (master == NULL) {
421  master = dynamic_cast<TH1*>(object.get());
422  }
423 
424  listOfObjects.push_back(object);
425  }
426  }
427  }
428 
429  if (listOfObjects.empty()) {
430  ERROR("Nothing to draw." << endl);
431  }
432 
433  for (vector<JRootObject>::iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
434 
435  TH1* h1 = dynamic_cast<TH1*> (i->get());
436  TGraph* g1 = dynamic_cast<TGraph*> (i->get());
437  TMultiGraph* m1 = dynamic_cast<TMultiGraph*>(i->get());
438  TAttLine* ls = dynamic_cast<TAttLine*> (i->get());
439 
440  TList list;
441  TIterator* iterator = NULL;
442 
443  if (h1 != NULL) {
444 
445  iterator = h1->GetListOfFunctions()->MakeIterator();
446 
447  } else if (g1 != NULL) {
448 
449  iterator = g1->GetListOfFunctions()->MakeIterator();
450 
451  } else if (m1 != NULL) {
452 
453  for (TIter i1(m1->GetListOfGraphs()); TGraph* gi = dynamic_cast<TGraph*>(i1()); ) {
454  for (TIter i2(gi->GetListOfFunctions()); TF1* fi = dynamic_cast<TF1*>(i2()); ) {
455  list.Add(fi);
456  }
457  }
458 
459  iterator = list.MakeIterator();
460  }
461 
462  if (iterator != NULL) {
463 
464  Double_t x1 = numeric_limits<Double_t>::max();
465  Double_t x2 = numeric_limits<Double_t>::lowest();
466 
467  for (int ns = 0, nc = 1; TF1* f1 = (TF1*) iterator->Next(); ) {
468 
469  Double_t __x1;
470  Double_t __x2;
471 
472  f1->GetRange(__x1, __x2);
473  f1->SetNpx(1000);
474 
475  dynamic_cast<TAttLine&>(*f1) = JLineAttributes::getInstance().get(0);
476 
477  if (listOfObjects.size() == 1) {
478 
479  f1->SetLineStyle(JLineAttributes::getInstance().get(ns).GetLineStyle());
480 
481  if (x1 != numeric_limits<Double_t>::max() &&
482  x2 != numeric_limits<Double_t>::lowest()) {
483 
484  if (x1 == __x1 &&
485  x2 == __x2)
486  ++nc; // follow colour style
487  else
488  ++ns; // follow line style
489  }
490 
491  f1->SetLineColor(JMarkerAttributes::getInstance().get(nc).GetMarkerColor());
492 
493  } else {
494 
495  // keep colour of base object and accordingly modify line style.
496 
497  f1->SetLineColor(ls->GetLineColor());
498  f1->SetLineStyle(JLineAttributes::getInstance().get(ns++).GetLineStyle());
499  }
500 
501  double __xmin;
502  double __xmax;
503 
504  f1->GetRange(__xmin, __xmax);
505 
506  ymin = min(ymin, f1->GetMinimum(__xmin, __xmax));
507  ymax = max(ymax, f1->GetMaximum(__xmin, __xmax));
508 
509  x1 = __x1;
510  x2 = __x2;
511  }
512  }
513  }
514 
515  // plot frame
516 
517  if (X != JRange_t()) {
518  xmin = X.getLowerLimit();
519  xmax = X.getUpperLimit();
520  }
521 
522  if (Y != JRange_t()) {
523  ymin = Y.getLowerLimit();
524  ymax = Y.getUpperLimit();
525  } else {
526  setRange(ymin, ymax, logy);
527  }
528 
529  cv->cd(1);
530 
531  if (!listOfObjects.empty() && master == NULL) {
532 
533  if (X != JRange_t()) {
534 
535  master = new TH1D("__H__", NULL, 100, X.getLowerLimit(), X.getUpperLimit());
536 
537  master->SetStats(kFALSE);
538 
539  } else if (xmin < xmax) {
540 
541  master = new TH1D("__H__", NULL, 100, xmin, xmax);
542 
543  master->SetStats(kFALSE);
544  }
545  }
546 
547  if (master == NULL) {
548 
549  TText* p = new TText(0.5, 0.5, MAKE_CSTRING("No data"));
550 
551  p->SetTextAlign(21);
552  p->SetTextAngle(45);
553  p->Draw();
554 
555  } else {
556 
557  if (logx) { gPad->SetLogx(); }
558  if (logy) { gPad->SetLogy(); }
559 
560  master->GetXaxis()->SetRangeUser(xmin, xmax);
561 
562  if (logx > 1) {
564  }
565 
566  master->SetTitle(title.c_str());
567 
568  master->SetMinimum(ymin);
569  master->SetMaximum(ymax);
570 
571  if (xLabel != "") { master->GetXaxis()->SetTitle(xLabel.c_str()); master->GetXaxis()->CenterTitle(true); }
572  if (yLabel != "") { master->GetYaxis()->SetTitle(yLabel.c_str()); master->GetYaxis()->CenterTitle(true); }
573 
574  master->GetXaxis()->SetMoreLogLabels((logx == 1 && log10(xmax/xmin) < 2) ||
575  (logx > 1 && (xmax-xmin) < 2));
576 
577  master->GetYaxis()->SetMoreLogLabels( logy && log10(ymax/ymin) < 2);
578  master->GetYaxis()->SetNoExponent ( logy && log10(ymax/ymin) < 2);
579 
580  if (Ndivisions.first != "") {
581  master->SetNdivisions(Ndivisions.second, Ndivisions.first.c_str());
582  }
583 
584  if (xTimeFormat != "") {
585  master->GetXaxis()->SetTimeDisplay(1);
586  master->GetXaxis()->SetTimeFormat(xTimeFormat.c_str());
587  }
588 
589  master->Draw(option.c_str());
590  }
591 
592  if (logx > 1) {
593  for (vector<JRootObject>::iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
594  if (dynamic_cast<TH1*>(i->get()) != master) {
595  setLogarithmicX(dynamic_cast<TH1*> (i->get()));
596  setLogarithmicX(dynamic_cast<TGraph*> (i->get()));
597  setLogarithmicX(dynamic_cast<TMultiGraph*>(i->get()));
598  setLogarithmicX(dynamic_cast<TF1*> (i->get()));
599  }
600  }
601  }
602 
603  if (grid.count('x') || grid.count('X')) { gPad->SetGridx(); }
604  if (grid.count('y') || grid.count('Y')) { gPad->SetGridy(); }
605 
606  if (stats != -1)
607  gStyle->SetOptStat(stats);
608  else
609  gStyle->SetOptFit(kFALSE);
610 
611 
612  for (vector<JRootObject>::const_iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
613 
614  DEBUG("Draw " << (*i)->GetName() << ' ' << (*i)->GetTitle() << endl);
615 
616  string buffer(option);
617 
618  //if (!dynamic_cast<THStack*>(i->get())) {
619  // buffer += "SAMES";
620  //}
621 
622  buffer += "SAME";
623 
624  TF1* f1 = dynamic_cast<TF1*> (i->get());
625  TGraph* g1 = dynamic_cast<TGraph*> (i->get());
626  TMultiGraph* q1 = dynamic_cast<TMultiGraph*>(i->get());
627 
628  if (f1 != NULL) {
629  f1->SetNpx(1000);
630  }
631 
632  if (g1 != NULL) {
633  if (g1->GetN() > 1 && drawLine)
634  buffer += "L"; // drawing cut line
635  else
636  buffer += "P"; // drawing point(s)
637  }
638 
639  if (q1 != NULL) {
640 
641  for (TIter i1(q1->GetListOfGraphs()); TGraph* gi = dynamic_cast<TGraph*>(i1()); ) {
642 
643  string zbuf = buffer;
644 
645  if (gi->GetN() > 1 && drawLine)
646  zbuf += "L"; // drawing cut line
647  else
648  zbuf += "P"; // drawing point(s)
649 
650  gi->Draw(zbuf.c_str());
651  }
652 
653  } else {
654 
655  (*i).Draw(buffer.c_str());
656  }
657  }
658 
659  //gPad->RedrawAxis();
660 
661  if (legend != "") {
662 
663  Ssiz_t height = listOfObjects.size();
664  Ssiz_t width = 1;
665 
666  for (vector<JRootObject>::const_iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
667  width = max(width, i->getLabel().Length());
668  }
669 
670  TLegend* lg = getLegend(width, height, legend);
671 
672  for (vector<JRootObject>::const_iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
673  lg->AddEntry(*i, " " + i->getLabel(), isTAttLine(*i) ? "L" : "LPF");
674  }
675 
676  lg->Draw();
677  }
678 
679  cv->Update();
680 
681  if (outputFile != "") {
682  cv->SaveAs(outputFile.c_str());
683  }
684 
685  if (!batch) {
686  tp->Run();
687  }
688 }
Utility class to parse command line options.
Definition: JParser.hh:1500
void setLogarithmicX(TF1 *f1)
Make parameter x of function logarithmic (e.g. after filling with log10()).
std::string getLabel(const JLocation &location)
Get module label for monitoring and other applications.
Definition: JLocation.hh:246
then echo Test string reversed by master(hit< return > to continue)." JProcess -c "JEcho" -rC fi if (( 1 ))
Definition: JRoot.hh:19
#define MAKE_CSTRING(A)
Make C-string.
Definition: JPrint.hh:151
then for HISTOGRAM in h0 h1
Definition: JMatrixNZ.sh:69
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition: JParser.hh:66
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTORXY_TXT $WORKDIR $DETECTORXY_TXT tail read X Y CHI2 RMS printf optimum n $X $Y $CHI2 $RMS awk v Y
string outputFile
bool isTAttLine(const TObject *object)
Get drawing option of TH1.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1961
#define NOTICE(A)
Definition: JMessage.hh:64
#define ERROR(A)
Definition: JMessage.hh:66
int debug
debug level
Definition: JSirene.cc:63
static const char LABEL_TERMINATOR
label terminator
Definition: JRootObject.hh:23
#define FATAL(A)
Definition: JMessage.hh:67
void setRange(double &xmin, double &xmax, const bool logx)
Set axis range.
TLegend * getLegend(const Int_t width, const Int_t height, const std::string option="TR")
Get legend.
Definition: JLegend.hh:28
Auxiliary class to handle multiple boolean-like I/O.
Definition: JParser.hh:221
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer.
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62
Double_t g1(const Double_t x)
Function.
Definition: JQuantiles.cc:25