Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
JPlot2D.cc
Go to the documentation of this file.
1#include <string>
2#include <iostream>
3#include <vector>
4#include <set>
5#include <cmath>
6
7#include "TROOT.h"
8#include "TFile.h"
9#include "TClass.h"
10#include "TApplication.h"
11#include "TCanvas.h"
12#include "TRootCanvas.h"
13#include "TKey.h"
14#include "TStyle.h"
15#include "TAttMarker.h"
16#include "TAttLine.h"
17#include "TH2.h"
18#include "TH3.h"
19#include "TH2D.h"
20#include "TGraph.h"
21#include "TGraphErrors.h"
22#include "TGraph2D.h"
23#include "TGraph2DErrors.h"
24#include "TEllipse.h"
25#include "TMarker.h"
26#include "TLine.h"
27#include "TF2.h"
28#include "TString.h"
29#include "TRegexp.h"
30#include "TText.h"
31
32#include "JTools/JRange.hh"
33#include "JLang/JEquals.hh"
34#include "JROOT/JStyle.hh"
35#include "JROOT/JCanvas.hh"
39#include "JGizmo/JRootObject.hh"
41
42#include "Jeep/JProperties.hh"
43#include "Jeep/JParser.hh"
44#include "Jeep/JMessage.hh"
45
46namespace {
47
48 /**
49 * Set x of object to logarithmic.
50 *
51 * \param object pointer to object
52 * \return true if set; else false
53 */
54 template<class T>
55 inline bool setLogX(TObject* object)
56 {
57 using namespace JPP;
58
59 T* p = dynamic_cast<T*>(object);
60
61 if (p != NULL) {
62
64
65 return true;
66 }
67
68 return false;
69 }
70
71 /**
72 * Set y of object to logarithmic.
73 *
74 * \param object pointer to object
75 * \return true if set; else false
76 */
77 template<class T>
78 inline bool setLogY(TObject* object)
79 {
80 using namespace JPP;
81
82 T* p = dynamic_cast<T*>(object);
83
84 if (p != NULL) {
85
87
88 return true;
89 }
90
91 return false;
92 }
93
94 const std::string MASTER = "__H__"; //!< Name of prototype
95
96 const char* const JName_t = "?"; //!< Draw histogram name as title of plot
97 const char* const JTitle_t = "%"; //!< Draw histogram title as title of plot
98
99
100 /**
101 * Auxiliary data structure for master from TH2 or TGraph.
102 */
103 struct JMaster :
104 public JLANG::JEquals<JMaster, TObject*>
105 {
106 JMaster() :
107 h2(NULL),
108 g2(NULL)
109 {}
110
111 bool equals(const JMaster& master) const
112 {
113 return (this->h2 == master.h2 &&
114 this->g2 == master.g2);
115 }
116
117 bool equals(const TObject* p) const
118 {
119 return (this->h2 == dynamic_cast<const TH2*>(p) &&
120 this->g2 == dynamic_cast<const TGraph2D*>(p));
121 }
122
123 JMaster* operator->()
124 {
125 return this;
126 }
127
128 void operator=(TObject* p)
129 {
130 h2 = dynamic_cast<TH2*> (p);
131 g2 = dynamic_cast<TGraph2D*>(p);
132 }
133
134 const char* GetName() const
135 {
136 return (h2 != NULL ? h2->GetName() :
137 g2 != NULL ? g2->GetName() :
138 NULL);
139 }
140
141 void SetTitle(const char* title)
142 {
143 if (h2 != NULL) { h2->SetTitle(title); }
144 if (g2 != NULL) { g2->SetTitle(title); }
145 }
146
147 void SetStats(const Bool_t stats)
148 {
149 if (h2 != NULL) { h2->SetStats(stats); }
150 }
151
152 void SetMaximum(Double_t maximum)
153 {
154 if (h2 != NULL) { h2->SetMaximum(maximum); }
155 if (g2 != NULL) { g2->SetMaximum(maximum); }
156 }
157
158 void SetMinimum(Double_t minimum)
159 {
160 if (h2 != NULL) { h2->SetMinimum(minimum); }
161 if (g2 != NULL) { g2->SetMinimum(minimum); }
162 }
163
164 void SetNdivisions(Int_t n, Option_t *axis)
165 {
166 if (h2 != NULL) { h2->SetNdivisions(n, axis); }
167 }
168
169 TAxis* GetXaxis()
170 {
171 return (h2 != NULL ? h2->GetXaxis() :
172 g2 != NULL ? g2->GetXaxis() :
173 NULL);
174 }
175
176 TAxis* GetYaxis()
177 {
178 return (h2 != NULL ? h2->GetYaxis() :
179 g2 != NULL ? g2->GetYaxis() :
180 NULL);
181 }
182
183 TAxis* GetZaxis()
184 {
185 return (h2 != NULL ? h2->GetZaxis() :
186 g2 != NULL ? g2->GetZaxis() :
187 NULL);
188 }
189
190 void Draw(Option_t *option="")
191 {
192 if (h2 != NULL) { h2->Draw(option); }
193 if (g2 != NULL) { g2->Draw(option); }
194 }
195
196 void setLogarithmicX()
197 {
198 if (h2 != NULL) { JGIZMO::setLogarithmicX(h2); }
199 if (g2 != NULL) { JGIZMO::setLogarithmicX(g2); }
200 }
201
202 void setLogarithmicY()
203 {
204 if (h2 != NULL) { JGIZMO::setLogarithmicY(h2); }
205 if (g2 != NULL) { JGIZMO::setLogarithmicY(g2); }
206 }
207
208 private:
209 TH2* h2;
210 TGraph2D* g2;
211 };
212
213 inline void setLogarithmicX(JMaster& master) { master.setLogarithmicX(); }
214 inline void setLogarithmicY(JMaster& master) { master.setLogarithmicY(); }
215}
216
217
218/**
219 * \file
220 * General purpose plot program for 2D ROOT objects.
221 * The option <tt>-f</tt> corresponds to <tt><file name>:<object name></tt>.
222 * \author mdejong
223 */
224int main(int argc, char **argv)
225{
226 using namespace std;
227 using namespace JPP;
228
229 typedef JRange<double> JRange_t;
230
231 vector<JRootObjectID> inputFile;
232 string outputFile;
233 JCanvas canvas;
234 JStyle::JParameters parameters;
235 int stats;
236 JRange_t X;
237 JRange_t Y;
238 JRange_t Z;
239 JCounter logx;
240 JCounter logy;
241 bool logz;
242 string project;
243 string xLabel;
244 string yLabel;
245 string zLabel;
246 JCounter drawLine;
247 int lineWidth;
248 double markerSize;
249 string option;
250 set<char> grid;
251 bool batch;
252 string title;
253 map<string, int> Ndivisions;
254 int palette;
255 int debug;
256
257 try {
258
259 JProperties properties = parameters.getProperties();
260
261 JParser<> zap("General purpose plot program for 2D ROOT objects.");
262
263 zap['f'] = make_field(inputFile, "<input file>:<object name>");
264 zap['o'] = make_field(outputFile, "graphics output") = "";
265 zap['w'] = make_field(canvas, "size of canvas <nx>x<ny> [pixels]") = JCanvas(500, 500);
266 zap['@'] = make_field(properties) = JPARSER::initialised();
267 zap['s'] = make_field(stats) = -1;
268 zap['x'] = make_field(X, "x-abscissa range") = JRange_t::DEFAULT_RANGE();
269 zap['y'] = make_field(Y, "y-abscissa range") = JRange_t::DEFAULT_RANGE();
270 zap['z'] = make_field(Z, "ordinate range") = JRange_t::DEFAULT_RANGE();
271 zap['X'] = make_field(logx, "logarithmic x-axis (-XX log10 axis)");
272 zap['Y'] = make_field(logy, "logarithmic y-axis (-YY log10 axis)");
273 zap['Z'] = make_field(logz, "logarithmic z-axis");
274 zap['P'] = make_field(project, "projection") = "", "xy", "yx", "xz", "zx", "yz", "zy";
275 zap['>'] = make_field(xLabel, "x-axis label") = "";
276 zap['<'] = make_field(yLabel, "y-axis label") = "";
277 zap['^'] = make_field(zLabel, "z-axis label") = "";
278 zap['C'] = make_field(drawLine, "draw line (-C black-and-white -CC colour)");
279 zap['l'] = make_field(lineWidth, "line width") = 2;
280 zap['S'] = make_field(markerSize, "marker size") = 1.0;
281 zap['O'] = make_field(option, "plotting option") = "";
282 zap['G'] = make_field(grid, "grid lines [X][Y]") = JPARSER::initialised();
283 zap['B'] = make_field(batch, "batch processing");
284 zap['T'] = make_field(title, "graphics title ("
285 << "\"" << JName_t << "\" -> ROOT name; "
286 << "\"" << JTitle_t << "\" -> ROOT title)") = "KM3NeT preliminary";
287 zap['N'] = make_field(Ndivisions, "axis divisioning (e.g. \"X 505\")") = JPARSER::initialised();
288 zap['p'] = make_field(palette, "palette") = -1;
289 zap['d'] = make_field(debug) = 0;
290
291 zap(argc, argv);
292 }
293 catch(const exception &error) {
294 FATAL(error.what() << endl);
295 }
296
297
298 gROOT->SetBatch(batch);
299
300 TApplication* tp = new TApplication("user", NULL, NULL);
301 TCanvas* cv = new TCanvas("c1", "c1", canvas.x, canvas.y);
302
303 if (!batch) {
304 ((TRootCanvas *) cv->GetCanvasImp())->Connect("CloseWindow()", "TApplication", tp, "Terminate()");
305 }
306
307 unique_ptr<TStyle> gStyle(new JStyle("gplot", cv->GetWw(), cv->GetWh(), parameters));
308
309 if (palette != -1) {
310 gStyle->SetPalette(palette);
311 }
312
313 gROOT->SetStyle("gplot");
314 gROOT->ForceStyle();
315
316
317 cv->SetFillStyle(4000);
318 cv->SetFillColor(kWhite);
319 cv->Divide(1,1);
320 cv->cd(1);
321
322
323 JMarkerAttributes::getInstance().setMarkerSize(markerSize);
324 JLineAttributes ::getInstance().setLineWidth (lineWidth);
325
326
327 Double_t xmin = numeric_limits<double>::max();
328 Double_t xmax = numeric_limits<double>::lowest();
329 Double_t ymin = numeric_limits<double>::max();
330 Double_t ymax = numeric_limits<double>::lowest();
331 Double_t zmin = numeric_limits<double>::max();
332 Double_t zmax = numeric_limits<double>::lowest();
333
334 vector<JRootObject> listOfObjects;
335
336 //TH2* master = NULL;
337 JMaster master;
338
339 for (vector<JRootObjectID>::const_iterator input = inputFile.begin(); input != inputFile.end(); ++input) {
340
341 DEBUG("Input: " << *input << endl);
342
343 TDirectory* dir = getDirectory(*input);
344
345 if (dir == NULL) {
346 ERROR("File: " << input->getFullFilename() << " not opened." << endl);
347 continue;
348 }
349
350 const TRegexp regexp(input->getObjectName());
351
352 TIter iter(dir->GetListOfKeys());
353
354 for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
355
356 const TString tag(key->GetName());
357
358 DEBUG("Key: " << tag << " match = " << tag.Contains(regexp) << endl);
359
360 // option match
361
362 if (tag.Contains(regexp) && isTObject(key)) {
363
364 if (title == JName_t) {
365 title = key->GetName();
366 } else if (title == JTitle_t) {
367 title = key->GetTitle();
368 }
369
370 JRootObject object(key->ReadObj());
371
372 try {
373
374 TH3& h3 = dynamic_cast<TH3&>(*object);
375
376 object = h3.Project3D(project.c_str());
377 }
378 catch(exception&) {}
379
380 try {
381
382 TH2& h2 = dynamic_cast<TH2&>(*object);
383
384 h2.SetStats(stats != -1);
385
386 xmin = min(xmin, h2.GetXaxis()->GetXmin());
387 xmax = max(xmax, h2.GetXaxis()->GetXmax());
388 ymin = min(ymin, h2.GetYaxis()->GetXmin());
389 ymax = max(ymax, h2.GetYaxis()->GetXmax());
390 zmin = min(zmin, logz ? h2.GetMinimum(0.0) : h2.GetMinimum());
391 zmax = max(zmax, h2.GetMaximum());
392 }
393 catch(exception&) {}
394
395 try {
396
397 TGraph& g1 = dynamic_cast<TGraph&>(*object);
398
399 for (Int_t i = 0; i != g1.GetN(); ++i) {
400 xmin = min(xmin, g1.GetX()[i] - numeric_limits<float>::epsilon());
401 xmax = max(xmax, g1.GetX()[i] + numeric_limits<float>::epsilon());
402 ymin = min(ymin, g1.GetY()[i] - numeric_limits<float>::epsilon());
403 ymax = max(ymax, g1.GetY()[i] + numeric_limits<float>::epsilon());
404 }
405
406 int ng = 0;
407
408 for (vector<JRootObject>::iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
409 if (dynamic_cast<TGraph*>(i->get()) != NULL) {
410 ++ng;
411 }
412 }
413
414 static_cast<TAttMarker&>(g1) = JMarkerAttributes::getInstance().get(ng);
415 }
416 catch(exception&) {}
417
418 try {
419
420 TGraph2D& g2 = dynamic_cast<TGraph2D&>(*object);
421
422 for (Int_t i = 0; i != g2.GetN(); ++i) {
423 if (!logz || g2.GetZ()[i] > 0.0) {
424 xmin = min(xmin, g2.GetX()[i]);
425 xmax = max(xmax, g2.GetX()[i]);
426 ymin = min(ymin, g2.GetY()[i]);
427 ymax = max(ymax, g2.GetY()[i]);
428 zmin = min(zmin, g2.GetZ()[i]);
429 zmax = max(zmax, g2.GetZ()[i]);
430 }
431 }
432
433 if (Z.is_valid()) {
434 g2.SetMinimum(Z.getLowerLimit());
435 g2.SetMaximum(Z.getUpperLimit());
436 }
437 }
438 catch(exception&) {}
439
440 try {
441
442 TF2& f2 = dynamic_cast<TF2&>(*object);
443
444 f2.SetLineColor(kRed);
445 f2.SetTitle((title + ";" + xLabel + ";" + yLabel + ";" + zLabel).c_str());
446
447 double __xmin;
448 double __xmax;
449 double __ymin;
450 double __ymax;
451
452 f2.GetRange(__xmin, __ymin, __xmax, __ymax);
453
454 xmin = min(xmin, __xmin);
455 xmax = max(xmax, __xmax);
456 ymin = min(ymin, __ymin);
457 ymax = max(ymax, __ymax);
458 zmin = min(zmin, f2.GetMinimum());
459 zmax = max(zmax, f2.GetMaximum());
460 }
461 catch(exception&) {}
462
463 // label
464
465 for (TString buffer[] = { object.getLabel(), input->getFilename().c_str(), "" }, *i = buffer; *i != ""; ++i) {
466
467 *i = (*i)(TRegexp("\\[.*\\]"));
468
469 if ((*i).Length() > 2) {
470 object.setLabel((*i)(1, (*i).Length() - 2));
471 }
472 }
473
474 if (dynamic_cast<TH2*> (object.get()) != NULL ||
475 dynamic_cast<TGraph2D*>(object.get()) != NULL ||
476 dynamic_cast<TF2*> (object.get()) != NULL) {
477
478 if (master == NULL) {
479 master = object.get();
480 }
481
482 } else if (dynamic_cast<TH1*> (object.get()) != NULL ||
483 dynamic_cast<TGraph*> (object.get()) != NULL) {
484
485 TAttMarker marker = *JMarkerAttributes::getInstance().next();
486 TAttLine line = JLineAttributes::getInstance().get(0);
487
488 if (drawLine == 1)
489 line = *JLineAttributes::getInstance().next();
490 else
491 line.SetLineColor(marker.GetMarkerColor());
492
493 if (dynamic_cast<TAttMarker*>(object.get()) != NULL) {
494 dynamic_cast<TAttMarker&>(*object) = marker;
495 }
496
497 if (dynamic_cast<TAttLine*> (object.get()) != NULL) {
498 dynamic_cast<TAttLine&> (*object) = line;
499 }
500
501
502 // set errors
503
504 if (drawLine) {
505
506 try {
507
508 TH1& h1 = dynamic_cast<TH1&>(*object);
509
510 for (int i = 1; i <= h1.GetNbinsX(); ++i) {
511 h1.SetBinError(i, 0.0);
512 }
513 }
514 catch(exception&) {}
515
516 try {
517
518 TGraphErrors& g1 = dynamic_cast<TGraphErrors&>(*object);
519
520 for (Int_t i = 0; i != g1.GetN(); ++i) {
521 g1.GetEX()[i] = 0.0;
522 g1.GetEY()[i] = 0.0;
523 }
524 }
525 catch(exception&) {}
526 }
527
528 } else if (dynamic_cast<TEllipse*>(object.get()) != NULL ||
529 dynamic_cast<TLine*> (object.get()) != NULL ||
530 dynamic_cast<TText*> (object.get()) != NULL) {
531
532 } else {
533
534 ERROR("For other objects than 2D histograms, use JPlot1D" << endl);
535
536 continue;
537 }
538
539 DEBUG("Add object: " << tag << " with label <" << object.getLabel() << ">" << endl);
540
541 listOfObjects.push_back(object);
542 }
543 }
544 }
545
546 if (listOfObjects.empty()) {
547 ERROR("Nothing to draw." << endl);
548 }
549
550 // plot frame
551
552 cv->cd(1);
553
554 if (option.find("COLZ") != string::npos ||
555 option.find("colz") != string::npos) {
556 gPad->SetRightMargin(0.20);
557 }
558
559 if (X.is_valid()) {
560 xmin = X.getLowerLimit();
561 xmax = X.getUpperLimit();
562 }
563
564 if (Y.is_valid()) {
565 ymin = Y.getLowerLimit();
566 ymax = Y.getUpperLimit();
567 }
568
569 if (Z.is_valid()) {
570 zmin = Z.getLowerLimit();
571 zmax = Z.getUpperLimit();
572 } else if (zmax > zmin) {
573 setRange(zmin, zmax, logz);
574 }
575
576 if (!listOfObjects.empty()) {
577
578 if (master == NULL) {
579
580 master = new TH2D(MASTER.c_str(), NULL,
581 100, xmin, xmax,
582 100, ymin, ymax);
583
584 master->SetStats(kFALSE);
585 }
586 }
587
588 if (master == NULL) {
589
590 TText* p = new TText(0.5, 0.5, "No data");
591
592 p->SetTextAlign(21);
593 p->SetTextAngle(45);
594 p->Draw();
595
596 } else {
597
598 if (logx) { gPad->SetLogx(); }
599 if (logy) { gPad->SetLogy(); }
600 if (logz) { gPad->SetLogz(); }
601
602 master->SetTitle(title.c_str());
603
604 master->GetXaxis()->SetRangeUser(xmin, xmax);
605 master->GetYaxis()->SetRangeUser(ymin, ymax);
606
607 if (logx > 1) { setLogarithmicX(master); }
608 if (logy > 1) { setLogarithmicY(master); }
609
610 if (logx > 2) { master->GetXaxis()->SetNoExponent(); }
611 if (logy > 2) { master->GetYaxis()->SetNoExponent(); }
612
613 master->SetMinimum(zmin);
614 master->SetMaximum(zmax);
615
616 if (xLabel != "") { master->GetXaxis()->SetTitle(xLabel.c_str()); master->GetXaxis()->CenterTitle(true); }
617 if (yLabel != "") { master->GetYaxis()->SetTitle(yLabel.c_str()); master->GetYaxis()->CenterTitle(true); }
618 if (zLabel != "") { master->GetZaxis()->SetTitle(zLabel.c_str()); master->GetZaxis()->CenterTitle(true); }
619
620 master->GetXaxis()->SetMoreLogLabels((logx == 1 && log10(xmax/xmin) < 2) ||
621 (logx > 1 && xmax-xmin < 2));
622 master->GetYaxis()->SetMoreLogLabels((logy == 1 && log10(ymax/ymin) < 2) ||
623 (logy > 1 && ymax-ymin < 2));
624
625 for (map<string, int>::const_iterator i = Ndivisions.begin(); i != Ndivisions.end(); ++i) {
626 master->SetNdivisions(i->second, i->first.c_str());
627 }
628
629 DEBUG("Draw " << master->GetName() << ' ' << option << endl);
630
631 master->Draw(option.c_str());
632 }
633
634 if (logx > 1 || logy > 1) {
635 for (vector<JRootObject>::iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
636 if (dynamic_cast<TH2*> (i->get()) != master &&
637 dynamic_cast<TGraph2D*>(i->get()) != master) {
638 if (logx > 1) {
639
640 if (setLogX<TH2> (i->get())) {}
641 else if (setLogX<TGraph2DErrors>(i->get())) {}
642 else if (setLogX<TGraph2D> (i->get())) {}
643 else if (setLogX<TF2> (i->get())) {}
644
645 else if (setLogX<TH1> (i->get())) {}
646 else if (setLogX<TGraphErrors> (i->get())) {}
647 else if (setLogX<TGraph> (i->get())) {}
648
649 else if (setLogX<TLine> (i->get())) {}
650 else if (setLogX<TEllipse> (i->get())) {}
651 }
652 if (logy > 1) {
653
654 if (setLogY<TH2> (i->get())) {}
655 else if (setLogY<TGraph2DErrors>(i->get())) {}
656 else if (setLogY<TGraph2D> (i->get())) {}
657 else if (setLogY<TF2> (i->get())) {}
658
659 else if (setLogY<TH1> (i->get())) {}
660 else if (setLogY<TGraphErrors> (i->get())) {}
661 else if (setLogY<TGraph> (i->get())) {}
662
663 else if (setLogY<TLine> (i->get())) {}
664 else if (setLogY<TEllipse> (i->get())) {}
665 }
666 }
667 }
668 }
669
670 if (grid.count('x') || grid.count('X')) { gPad->SetGridx(); }
671 if (grid.count('y') || grid.count('Y')) { gPad->SetGridy(); }
672
673 if (stats != -1)
674 gStyle->SetOptStat(stats);
675 else
676 gStyle->SetOptFit(kFALSE);
677
678
679 for (vector<JRootObject>::iterator i = listOfObjects.begin(); i != listOfObjects.end(); ++i) {
680
681 if (i->get() != master) {
682
683 DEBUG("Draw " << (*i)->GetName() << ' ' << (*i)->GetTitle() << endl);
684
685 string buffer(option);
686
687 buffer += "SAME";
688
689 try {
690
691 TH2& h2 = dynamic_cast<TH2&>(*(*i));
692
693 h2.SetMinimum(zmin);
694 h2.SetMaximum(zmax);
695 }
696 catch(exception&) {}
697
698 try {
699
700 TGraph& g1 = dynamic_cast<TGraph&>(*(*i));
701
702 buffer = "P";
703 }
704 catch(exception&) {}
705
706 try {
707
708 TGraph2D& g2 = dynamic_cast<TGraph2D&>(*(*i));
709
710 g2.SetMinimum(zmin);
711 g2.SetMaximum(zmax);
712 }
713 catch(exception&) {}
714
715 try {
716
717 TF2& f2 = dynamic_cast<TF2&>(*(*i));
718
719 f2.SetNpx(1000);
720 f2.SetNpy(1000);
721 /*
722 f2.SetRange(xmin, ymin, zmin,
723 xmax, ymax, zmax);
724 */
725 }
726 catch(exception&) {}
727
728 (*i)->Draw(buffer.c_str());
729 }
730 }
731
732 //gPad->RedrawAxis();
733
734 cv->Update();
735
736 if (outputFile != "") {
737 cv->SaveAs(outputFile.c_str());
738 }
739
740 if (!batch) {
741 tp->Run();
742 }
743
744 return (master != NULL ? 0 : 1);
745}
string outputFile
General purpose messaging.
#define DEBUG(A)
Message macros.
Definition JMessage.hh:62
#define ERROR(A)
Definition JMessage.hh:66
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:74
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
int main(int argc, char **argv)
Definition JPlot2D.cc:224
Utility class to parse parameter values.
Double_t g1(const Double_t x)
Function.
Definition JQuantiles.cc:25
Auxiliary class to define a range between two values.
Utility class to parse parameter values.
Auxiliary data structure for TObject with a user defined label.
Auxiliary class to handle multiple boolean-like I/O.
Definition JParser.hh:423
Utility class to parse command line options.
Definition JParser.hh:1698
Data structure for size of TCanvas.
Definition JCanvas.hh:26
int y
number of pixels in Y
Definition JCanvas.hh:99
int x
number of pixels in X
Definition JCanvas.hh:98
Wrapper class around ROOT TStyle.
Definition JStyle.hh:24
Range of values.
Definition JRange.hh:42
void setLogarithmicX(TList *list)
Make x-axis of objects in list logarithmic (e.g. after using log10()).
void setLogarithmicY(TList *list)
Make y-axis of objects in list logarithmic (e.g. after using log10()).
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template definition of auxiliary base class for comparison of data structures.
Definition JEquals.hh:84
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Definition JParser.hh:68
JProperties getProperties()
Get properties of this class.
Definition JStyle.hh:46