Jpp 20.0.0-rc.2
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. | |
TDirectory * | getDirectory (const JRootObjectID &id) |
Get TDirectory pointer. | |
TObject * | getObject (const JRootObjectID &id) |
Get first TObject with given identifier. | |
bool | isTAttLine (const TObject *object) |
Get drawing option of object. | |
bool | isTAttFill (const TObject *object) |
Get drawing option of object. | |
Double_t | getResult (const TString &text, TObject *object=NULL) |
Get result of given textual formula. | |
Double_t | getResult (const std::string &text, TObject *object=NULL) |
Get result of given textual formula. | |
int | getParameter (const std::string &text) |
Get parameter number from text string. | |
Double_t | getValue (const std::string &text, TObject *object=NULL) |
Get parameter value from text string. | |
Double_t | getValue (const std::string &text, const int index) |
Get parameter value from text string. | |
void | setLogarithmic (TAxis *axis) |
Make histogram axis logarithmic (e.g. after using log10() ). | |
TString | getLogarithmic (const TString &formula, const char parameter) |
Make given parameter in formula logarithmic (e.g. after using log10() ). | |
void | copy (const TF1 &from, TF1 &to) |
Copy function parameters. | |
void | copy (const TF2 &from, TF2 &to) |
Copy function parameters. | |
template<class T > | |
void | setLogarithmicX (TList *list) |
Make x-axis of objects in list logarithmic (e.g. after using log10() ). | |
template<class T > | |
void | setLogarithmicY (TList *list) |
Make y-axis of objects in list logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TF1 *f1) |
Make x-axis of given function logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TF1 *f1) |
Make y-axis of given function logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TF2 *f2) |
Make x-axis of given function logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TF2 *f2) |
Make y-axis of given function logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TH1 *h1) |
Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TH1 *h1) |
Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TH2 *h2) |
Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TH2 *h2) |
Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TGraph *g1) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TGraph *g1) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TGraphErrors *g1) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TGraphErrors *g1) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TGraph2D *g2) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TGraph2D *g2) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TGraph2DErrors *g2) |
Make x-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TGraph2DErrors *g2) |
Make y-axis and associated functions of given graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TMultiGraph *gn) |
Make x-axis of given multi-graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TMultiGraph *gn) |
Make y-axis of given multi-graph logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TLine *line) |
Make x-axis of given line logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TLine *line) |
Make y-axis of given line logarithmic (e.g. after using log10() ). | |
void | setLogarithmicX (TEllipse *ellipse) |
Make x-axis of given ellipse logarithmic (e.g. after using log10() ). | |
void | setLogarithmicY (TEllipse *ellipse) |
Make y-axis of given ellipse logarithmic (e.g. after using log10() ). | |
double | convertToCDF (TH1 &h1, const bool reverse=false) |
Convert 1D histogram to CDF. | |
void | convertToPDF (TH1 &h1, const std::string &option="NW", const double factor=1.0) |
Convert 1D histogram to PDF. | |
void | convertToPDF (TH2 &h2, const std::string &option="NXYW", const double factor=1.0) |
Convert 2D histogram to PDF. | |
void | convertToPDF (TH3 &h3, const std::string &option="NXYW", const double factor=1.0) |
Convert 3D histogram to PDF. | |
void | setLimits (TGraph &g1) |
Set limits of TGraph. | |
void | setLimits (TGraph2D &g2) |
Set limits of TGraph2D. | |
void | setRange (double &xmin, double &xmax, const bool logx) |
Set axis range. | |
void | setAxisLabels (TAxis *axis, const JModuleAddressMap &memo) |
Set axis with PMT address labels. | |
void | setAxisLabels (TH1 &h1, const std::string axis, const JModuleAddressMap &memo) |
Set axis labels with PMT addresses. | |
bool | isTObject (const TKey *key) |
Check if given key corresponds to a TObject. | |
TObject * | getObject (TList *ls, const char *const name) |
Get first object of which name matches given reguar expression. | |
TF1 * | getFunction (TH1 *h1, const char *const fcn) |
Get function. | |
TF1 * | getFunction (TGraph *g1, const char *const fcn) |
Get function. | |
TF1 * | getFunction (TGraph2D *g2, const char *const fcn) |
Get function. | |
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. | |
static const char | LABEL_TERMINATOR = '&' |
label terminator | |
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 111 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 144 of file JGizmoToolkit.hh.
|
inline |
Get first TObject with given identifier.
id | identifier |
Definition at line 165 of file JGizmoToolkit.hh.
|
inline |
Get drawing option of object.
object | pointer to TObject |
Definition at line 197 of file JGizmoToolkit.hh.
|
inline |
Get drawing option of object.
object | pointer to TObject |
Definition at line 273 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 301 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 373 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 387 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 418 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 446 of file JGizmoToolkit.hh.
|
inline |
Make histogram axis logarithmic (e.g. after using log10()
).
axis | axis |
Definition at line 476 of file JGizmoToolkit.hh.
|
inline |
Make given parameter in formula logarithmic (e.g. after using log10()
).
formula | formula |
parameter | parameter |
Definition at line 516 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 552 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 570 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of objects in list logarithmic (e.g. after using log10()
).
list | list |
Definition at line 1013 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of objects in list logarithmic (e.g. after using log10()
).
list | list |
Definition at line 1027 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given function logarithmic (e.g. after using log10()
).
f1 | function |
Definition at line 601 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given function logarithmic (e.g. after using log10()
).
f1 | function |
Definition at line 622 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given function logarithmic (e.g. after using log10()
).
f2 | function |
Definition at line 647 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given function logarithmic (e.g. after using log10()
).
f2 | function |
Definition at line 675 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 703 of file JGizmoToolkit.hh.
|
inline |
Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10()
).
h1 | histogram |
Definition at line 719 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 740 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 756 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 772 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 792 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 812 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 833 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 854 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 874 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 894 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 915 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given multi-graph logarithmic (e.g. after using log10()
).
gn | multi graph |
Definition at line 936 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given multi-graph logarithmic (e.g. after using log10()
).
gn | multi graph |
Definition at line 949 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given line logarithmic (e.g. after using log10()
).
line | line |
Definition at line 962 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given line logarithmic (e.g. after using log10()
).
line | line |
Definition at line 976 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given ellipse logarithmic (e.g. after using log10()
).
ellipse | ellipse |
Definition at line 990 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given ellipse logarithmic (e.g. after using log10()
).
ellipse | ellipse |
Definition at line 1001 of file JGizmoToolkit.hh.
|
inline |
Convert 1D histogram to CDF.
h1 | histogram |
reverse | reverse |
Definition at line 1042 of file JGizmoToolkit.hh.
|
inline |
Convert 1D histogram to PDF.
Possible options are:
h1 | histogram |
option | option |
factor | scaling factor |
Definition at line 1087 of file JGizmoToolkit.hh.
|
inline |
Convert 2D histogram to PDF.
Possible options are:
h2 | histogram |
option | option |
factor | scaling factor |
Definition at line 1136 of file JGizmoToolkit.hh.
|
inline |
Convert 3D histogram to PDF.
Possible options are:
h3 | histogram |
option | option |
factor | scaling factor |
Definition at line 1251 of file JGizmoToolkit.hh.
|
inline |
Set limits of TGraph.
g1 | graph |
Definition at line 1491 of file JGizmoToolkit.hh.
|
inline |
Set limits of TGraph2D.
g2 | graph |
Definition at line 1516 of file JGizmoToolkit.hh.
|
inline |
Set axis range.
xmin | lower limit (I/O) |
xmax | upper limit (I/O) |
logx | logarithmic |
Definition at line 1543 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 1582 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 1613 of file JGizmoToolkit.hh.
|
inline |
Check if given key corresponds to a TObject.
key | ROOT key |
Definition at line 1652 of file JGizmoToolkit.hh.
|
inline |
Get first object of which name matches given reguar expression.
ls | pointer to list of objects |
name | regular expression |
Definition at line 1665 of file JGizmoToolkit.hh.
|
inline |
Get function.
h1 | histogram |
fcn | function name |
Definition at line 1691 of file JGizmoToolkit.hh.
|
inline |
Get function.
g1 | graph |
fcn | function name |
Definition at line 1704 of file JGizmoToolkit.hh.
|
inline |
Get function.
g2 | graph |
fcn | function name |
Definition at line 1717 of file JGizmoToolkit.hh.
|
static |
Time stamp of earliest UTC time.
Definition at line 98 of file JGizmoToolkit.hh.
|
static |
label terminator
Definition at line 23 of file JRootObject.hh.