Jpp - 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... | |
void | setLogarithmic (TAxis *axis) |
Make histogram axis logarithmic (e.g. after filling with log10()). More... | |
TString | getLogarithmic (const TString &formula, const char parameter) |
Make given parameter in formula logarithmic (e.g. after filling with log10()). More... | |
void | copy (const TF1 &from, TF1 &to) |
Copy function parameters. More... | |
void | copy (const TF2 &from, TF2 &to) |
Copy function parameters. More... | |
void | setLogarithmicX (TF1 *f1) |
Make parameter x of function logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicX (TF2 *f2) |
Make parameter x of function logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicY (TF2 *f2) |
Make parameter y of function logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicX (TH1 *h1) |
Make X-axis and associated functions of given histogram logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicX (TH2 *h2) |
Make X-axis and associated functions of given histogram logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicY (TH2 *h2) |
Make Y-axis and associated functions of given histogram logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicX (TGraph *g1) |
Make parameter x of graph logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicX (TGraph2D *g2) |
Make parameter x of graph logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicY (TGraph2D *g2) |
Make parameter y of graph logarithmic (e.g. after filling with log10()). More... | |
void | setLogarithmicX (TMultiGraph *m1) |
Make parameter x of multi graph logarithmic (e.g. after filling with 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 | 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... | |
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 96 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 129 of file JGizmoToolkit.hh.
|
inline |
Get first TObject with given identifier.
id | identifier |
Definition at line 150 of file JGizmoToolkit.hh.
|
inline |
Get drawing option of TH1.
object | pointer to TObject |
Definition at line 182 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 could have arguments and the return type should be compatible with Double_t
.
Example:
getResult("1.0/GetEntries", TH1*);
text | text |
object | pointer to object |
Definition at line 221 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 could have arguments and the return type should be compatible with Double_t
.
Example:
getResult("1.0/GetEntries", TH1*);
text | text |
object | pointer to object |
Definition at line 294 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 308 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 could have arguments and the return type should be compatible with Double_t
.
Example:
getValue("p[..] = 2*GetMaximum", TH1*);
text | text |
object | pointer to object |
Definition at line 339 of file JGizmoToolkit.hh.
|
inline |
Make histogram axis logarithmic (e.g. after filling with log10()).
axis | axis |
Definition at line 357 of file JGizmoToolkit.hh.
|
inline |
Make given parameter in formula logarithmic (e.g. after filling with log10()).
formula | formula |
parameter | parameter |
Definition at line 392 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 427 of file JGizmoToolkit.hh.
|
inline |
Copy function parameters.
from | function |
to | function |
Definition at line 445 of file JGizmoToolkit.hh.
|
inline |
Make parameter x
of function logarithmic (e.g. after filling with log10()).
f1 | function |
Definition at line 458 of file JGizmoToolkit.hh.
|
inline |
Make parameter x
of function logarithmic (e.g. after filling with log10()).
f2 | function |
Definition at line 482 of file JGizmoToolkit.hh.
|
inline |
Make parameter y
of function logarithmic (e.g. after filling with log10()).
f2 | function |
Definition at line 510 of file JGizmoToolkit.hh.
|
inline |
Make X-axis and associated functions of given histogram logarithmic (e.g. after filling with log10()).
h1 | histogram |
Definition at line 538 of file JGizmoToolkit.hh.
|
inline |
Make X-axis and associated functions of given histogram logarithmic (e.g. after filling with log10()).
h2 | histogram |
Definition at line 556 of file JGizmoToolkit.hh.
|
inline |
Make Y-axis and associated functions of given histogram logarithmic (e.g. after filling with log10()).
h2 | histogram |
Definition at line 576 of file JGizmoToolkit.hh.
|
inline |
Make parameter x
of graph logarithmic (e.g. after filling with log10()).
g1 | graph |
Definition at line 594 of file JGizmoToolkit.hh.
|
inline |
Make parameter x
of graph logarithmic (e.g. after filling with log10()).
g2 | graph |
Definition at line 614 of file JGizmoToolkit.hh.
|
inline |
Make parameter y
of graph logarithmic (e.g. after filling with log10()).
g2 | graph |
Definition at line 634 of file JGizmoToolkit.hh.
|
inline |
Make parameter x
of multi graph logarithmic (e.g. after filling with log10()).
m1 | multi graph |
Definition at line 654 of file JGizmoToolkit.hh.
|
inline |
Convert 1D histogram to PDF.
Possible options are:
h1 | histogram |
option | option |
factor | scaling factor |
Definition at line 677 of file JGizmoToolkit.hh.
|
inline |
Convert 2D histogram to PDF.
Possible options are:
h2 | histogram |
option | option |
factor | scaling factor |
Definition at line 726 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 883 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 922 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 953 of file JGizmoToolkit.hh.
|
static |
Time stamp of earliest UTC time.
Definition at line 83 of file JGizmoToolkit.hh.
|
static |
label terminator
Definition at line 23 of file JRootObject.hh.