Jpp
17.2.1-pre0
the software that should make you happy
|
Auxiliary applications for use of ROOT and more. More...
Classes | |
struct | JOpera |
Auxiliary data structure for JOpera1D.cc and JOpera2D.cc applications. More... | |
class | JRootObject |
Auxiliary data structure for TObject with a user defined label. More... | |
class | JRootObjectID |
Auxiliary class to handle file name, ROOT directory and object name. More... | |
Functions | |
TFile * | getFile (const std::string &file_name, const std::string &option="exist") |
Get TFile pointer corresponding to give file name. More... | |
TDirectory * | getDirectory (const JRootObjectID &id) |
Get TDirectory pointer. More... | |
TObject * | getObject (const JRootObjectID &id) |
Get first TObject with given identifier. More... | |
bool | isTAttLine (const TObject *object) |
Get drawing option of TH1. More... | |
Double_t | getResult (const TString &text, TObject *object=NULL) |
Get result of given textual formula. More... | |
Double_t | getResult (const std::string &text, TObject *object=NULL) |
Get result of given textual formula. More... | |
int | getParameter (const std::string &text) |
Get parameter number from text string. More... | |
Double_t | getValue (const std::string &text, TObject *object=NULL) |
Get parameter value from text string. More... | |
Double_t | getValue (const std::string &text, const int index) |
Get parameter value from text string. More... | |
void | setLogarithmic (TAxis *axis) |
Make histogram axis logarithmic (e.g. after using log10() ). More... | |
TString | getLogarithmic (const TString &formula, const char parameter) |
Make given parameter in formula logarithmic (e.g. after using log10() ). More... | |
void | copy (const TF1 &from, TF1 &to) |
Copy function parameters. More... | |
void | copy (const TF2 &from, TF2 &to) |
Copy function parameters. More... | |
template<class T > | |
void | setLogarithmicX (TList *list) |
Make x-axis of objects in list logarithmic (e.g. after using log10() ). More... | |
template<class T > | |
void | setLogarithmicY (TList *list) |
Make y-axis of objects in list logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TF1 *f1) |
Make x-axis of given function logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TF1 *f1) |
Make y-axis of given function logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TF2 *f2) |
Make x-axis of given function logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TF2 *f2) |
Make y-axis of given function logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TH1 *h1) |
Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TH2 *h2) |
Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TH2 *h2) |
Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TGraph *g1) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TGraph *g1) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TGraphErrors *g1) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TGraphErrors *g1) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TGraph2D *g2) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TGraph2D *g2) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TGraph2DErrors *g2) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TGraph2DErrors *g2) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TMultiGraph *gn) |
Make x-axis of given multi-graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TMultiGraph *gn) |
Make y-axis of given multi-graph logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TLine *line) |
Make x-axis of given line logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TLine *line) |
Make y-axis of given line logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicX (TEllipse *ellipse) |
Make x-axis of given ellipse logarithmic (e.g. after using log10() ). More... | |
void | setLogarithmicY (TEllipse *ellipse) |
Make y-axis of given ellipse logarithmic (e.g. after using log10() ). More... | |
void | convertToPDF (TH1 &h1, const std::string &option="NW", const double factor=1.0) |
Convert 1D histogram to PDF. More... | |
void | convertToPDF (TH2 &h2, const std::string &option="NXYW", const double factor=1.0) |
Convert 2D histogram to PDF. More... | |
void | convertToPDF (TH3 &h3, const std::string &option="NXYW", const double factor=1.0) |
Convert 3D histogram to PDF. More... | |
void | setLimits (TGraph &g1) |
Set limits of TGraph. More... | |
void | setLimits (TGraph2D &g2) |
Set limits of TGraph2D. More... | |
void | setRange (double &xmin, double &xmax, const bool logx) |
Set axis range. More... | |
void | setAxisLabels (TAxis *axis, const JModuleAddressMap &memo) |
Set axis with PMT address labels. More... | |
void | setAxisLabels (TH1 &h1, const std::string axis, const JModuleAddressMap &memo) |
Set axis labels with PMT addresses. More... | |
bool | isTObject (const TKey *key) |
Check if given key corresponds to a TObject. More... | |
Variables | |
static const char *const | TIMESTAMP = "#splitline{}{#splitline{%d:%m:%y}{ %H:%M}}%F1970-01-01 00:00:00" |
Time stamp of earliest UTC time. More... | |
static const char | LABEL_TERMINATOR = '&' |
label terminator More... | |
Auxiliary applications for use of ROOT and more.
|
inline |
Get TFile pointer corresponding to give file name.
The TFile pointer of an already opened file is recovered, else a new file is opened.
Note that the closure of the opened files should be done by the caller of this method.
file_name | file name |
option | TFile::Open option |
Definition at line 103 of file JGizmoToolkit.hh.
|
inline |
Get TDirectory pointer.
The TFile pointer of an already opened file is recovered, else a new file is opened.
id | identifier |
Definition at line 136 of file JGizmoToolkit.hh.
|
inline |
Get first TObject with given identifier.
id | identifier |
Definition at line 157 of file JGizmoToolkit.hh.
|
inline |
Get drawing option of TH1.
object | pointer to TObject |
Definition at line 189 of file JGizmoToolkit.hh.
|
inline |
Get result of given textual formula.
The formula may contain names of member methods of the object pointed to.
These methods should return a value that is compatible with Double_t
and could have arguments.
For example:
getResult("1.0 / GetEntries", TH1*);
text | text |
object | pointer to object |
Definition at line 245 of file JGizmoToolkit.hh.
|
inline |
Get result of given textual formula.
The formula may contain names of member methods of the object pointed to.
These methods should return a value that is compatible with Double_t
and could have arguments.
For example:
getResult("1.0 / GetEntries", TH1*);
text | text |
object | pointer to object |
Definition at line 318 of file JGizmoToolkit.hh.
|
inline |
Get parameter number from text string.
The number corresponds to the value [0-9]*
in the expression "p[0-9]* = .."
.
text | text |
Definition at line 332 of file JGizmoToolkit.hh.
|
inline |
Get parameter value from text string.
The formula may contain names of member methods of the object pointed to.
These methods should return a value that is compatible with Double_t
and could have arguments.
For example:
getValue("p[..] = 2 * GetMaximum", TH1*);
text | text |
object | pointer to object |
Definition at line 363 of file JGizmoToolkit.hh.
|
inline |
Get parameter value from text string.
The formula may contain names of member methods of the object pointed to.
These methods should return a value that is compatible with Double_t
and could have arguments.
For example:
getValue("p[..] = 1.0 2.0 3.0", 1);
will return 2.0
.
text | text |
index | index |
Definition at line 391 of file JGizmoToolkit.hh.
|
inline |
Make histogram axis logarithmic (e.g. after using log10()
).
axis | axis |
Definition at line 421 of file JGizmoToolkit.hh.
|
inline |
Make given parameter in formula logarithmic (e.g. after using log10()
).
formula | formula |
parameter | parameter |
Definition at line 456 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 492 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 510 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of objects in list logarithmic (e.g. after using log10()
).
list | list |
Definition at line 918 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of objects in list logarithmic (e.g. after using log10()
).
list | list |
Definition at line 932 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given function logarithmic (e.g. after using log10()
).
f1 | function |
Definition at line 541 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given function logarithmic (e.g. after using log10()
).
f1 | function |
Definition at line 565 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given function logarithmic (e.g. after using log10()
).
f2 | function |
Definition at line 587 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given function logarithmic (e.g. after using log10()
).
f2 | function |
Definition at line 615 of file JGizmoToolkit.hh.
|
inline |
Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10()
).
h1 | histogram |
Definition at line 643 of file JGizmoToolkit.hh.
|
inline |
Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10()
).
h2 | histogram |
Definition at line 659 of file JGizmoToolkit.hh.
|
inline |
Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10()
).
h2 | histogram |
Definition at line 677 of file JGizmoToolkit.hh.
|
inline |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g1 | graph |
Definition at line 693 of file JGizmoToolkit.hh.
|
inline |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g1 | graph |
Definition at line 711 of file JGizmoToolkit.hh.
|
inline |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g1 | graph |
Definition at line 729 of file JGizmoToolkit.hh.
|
inline |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g1 | graph |
Definition at line 748 of file JGizmoToolkit.hh.
|
inline |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g2 | graph |
Definition at line 767 of file JGizmoToolkit.hh.
|
inline |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g2 | graph |
Definition at line 785 of file JGizmoToolkit.hh.
|
inline |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g2 | graph |
Definition at line 803 of file JGizmoToolkit.hh.
|
inline |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()
).
g2 | graph |
Definition at line 822 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given multi-graph logarithmic (e.g. after using log10()
).
gn | multi graph |
Definition at line 841 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given multi-graph logarithmic (e.g. after using log10()
).
gn | multi graph |
Definition at line 854 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given line logarithmic (e.g. after using log10()
).
line | line |
Definition at line 867 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given line logarithmic (e.g. after using log10()
).
line | line |
Definition at line 881 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given ellipse logarithmic (e.g. after using log10()
).
ellipse | ellipse |
Definition at line 895 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given ellipse logarithmic (e.g. after using log10()
).
ellipse | ellipse |
Definition at line 906 of file JGizmoToolkit.hh.
|
inline |
Convert 1D histogram to PDF.
Possible options are:
h1 | histogram |
option | option |
factor | scaling factor |
Definition at line 952 of file JGizmoToolkit.hh.
|
inline |
Convert 2D histogram to PDF.
Possible options are:
h2 | histogram |
option | option |
factor | scaling factor |
Definition at line 1001 of file JGizmoToolkit.hh.
|
inline |
Convert 3D histogram to PDF.
Possible options are:
h3 | histogram |
option | option |
factor | scaling factor |
Definition at line 1116 of file JGizmoToolkit.hh.
|
inline |
|
inline |
|
inline |
Set axis range.
xmin | lower limit (I/O) |
xmax | upper limit (I/O) |
logx | logarithmic |
Definition at line 1408 of file JGizmoToolkit.hh.
|
inline |
Set axis with PMT address labels.
This methods sets the labels of the given axis to the sorted values of the PMT ring and position.
It should normally be called before filling of the corresponding histogram.
The filling should then be made with the textual representation of the PMT ring and position (i.e. JDETECTOR::JPMTPhysicalAddress::toString).
Alternatively, the filling can be made with the index of the PMT in the address map of the corresponding module (i.e. JDETECTOR::JModuleAddressMap::getIndex).
In that case, the method can be called before or after filling of the histogram.
axis | axis |
memo | module address map |
Definition at line 1447 of file JGizmoToolkit.hh.
|
inline |
Set axis labels with PMT addresses.
This methods sets the labels of the given axis to the sorted values of the PMT ring and position.
It should be called after filling of the corresponding histogram.
The filling should have been made with the PMT number (e.g. KM3NETDAQ::JDAQHit::getPMT).
h1 | histogram |
axis | axis (x, X, y, Y, z, Z) |
memo | module address map |
Definition at line 1478 of file JGizmoToolkit.hh.
|
inline |
Check if given key corresponds to a TObject.
key | ROOT key |
Definition at line 1517 of file JGizmoToolkit.hh.
|
static |
Time stamp of earliest UTC time.
Definition at line 90 of file JGizmoToolkit.hh.
|
static |
label terminator
Definition at line 23 of file JRootObject.hh.