Jpp
19.0.0
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... | |
TObject * | getObject (TList *ls, const char *const name) |
Get first object of which name matches given reguar expression. More... | |
TF1 * | getFunction (TH1 *h1, const char *const fcn) |
Get function. More... | |
TF1 * | getFunction (TGraph *g1, const char *const fcn) |
Get function. More... | |
TF1 * | getFunction (TGraph2D *g2, const char *const fcn) |
Get function. 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 108 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 141 of file JGizmoToolkit.hh.
|
inline |
Get first TObject with given identifier.
id | identifier |
Definition at line 162 of file JGizmoToolkit.hh.
|
inline |
Get drawing option of TH1.
object | pointer to TObject |
Definition at line 194 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 250 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 322 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 336 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 367 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 395 of file JGizmoToolkit.hh.
|
inline |
Make histogram axis logarithmic (e.g. after using log10()
).
axis | axis |
Definition at line 425 of file JGizmoToolkit.hh.
|
inline |
Make given parameter in formula logarithmic (e.g. after using log10()
).
formula | formula |
parameter | parameter |
Definition at line 465 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 501 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 519 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of objects in list logarithmic (e.g. after using log10()
).
list | list |
Definition at line 927 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of objects in list logarithmic (e.g. after using log10()
).
list | list |
Definition at line 941 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given function logarithmic (e.g. after using log10()
).
f1 | function |
Definition at line 550 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given function logarithmic (e.g. after using log10()
).
f1 | function |
Definition at line 574 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given function logarithmic (e.g. after using log10()
).
f2 | function |
Definition at line 596 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given function logarithmic (e.g. after using log10()
).
f2 | function |
Definition at line 624 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 652 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 668 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 686 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 702 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 720 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 738 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 757 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 776 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 794 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 812 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 831 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given multi-graph logarithmic (e.g. after using log10()
).
gn | multi graph |
Definition at line 850 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given multi-graph logarithmic (e.g. after using log10()
).
gn | multi graph |
Definition at line 863 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given line logarithmic (e.g. after using log10()
).
line | line |
Definition at line 876 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given line logarithmic (e.g. after using log10()
).
line | line |
Definition at line 890 of file JGizmoToolkit.hh.
|
inline |
Make x-axis of given ellipse logarithmic (e.g. after using log10()
).
ellipse | ellipse |
Definition at line 904 of file JGizmoToolkit.hh.
|
inline |
Make y-axis of given ellipse logarithmic (e.g. after using log10()
).
ellipse | ellipse |
Definition at line 915 of file JGizmoToolkit.hh.
|
inline |
Convert 1D histogram to PDF.
Possible options are:
h1 | histogram |
option | option |
factor | scaling factor |
Definition at line 961 of file JGizmoToolkit.hh.
|
inline |
Convert 2D histogram to PDF.
Possible options are:
h2 | histogram |
option | option |
factor | scaling factor |
Definition at line 1010 of file JGizmoToolkit.hh.
|
inline |
Convert 3D histogram to PDF.
Possible options are:
h3 | histogram |
option | option |
factor | scaling factor |
Definition at line 1125 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 1417 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 1456 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 1487 of file JGizmoToolkit.hh.
|
inline |
Check if given key corresponds to a TObject.
key | ROOT key |
Definition at line 1526 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 1539 of file JGizmoToolkit.hh.
|
inline |
Get function.
h1 | histogram |
fcn | function name |
Definition at line 1565 of file JGizmoToolkit.hh.
|
inline |
Get function.
g1 | graph |
fcn | function name |
Definition at line 1578 of file JGizmoToolkit.hh.
|
inline |
Get function.
g2 | graph |
fcn | function name |
Definition at line 1591 of file JGizmoToolkit.hh.
|
static |
Time stamp of earliest UTC time.
Definition at line 95 of file JGizmoToolkit.hh.
|
static |
label terminator
Definition at line 23 of file JRootObject.hh.