Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
JGIZMO Namespace Reference

Auxiliary applications for use of ROOT and more. More...

Classes

class  JCanvas
 Data structure for size of TCanvas. More...
 
struct  JOpera
 Auxiliary data structure for JOpera1D.cc and JOpera2D.cc applications. More...
 
class  JLineAttributes
 Auxiliary class to set line attributes. More...
 
class  JManager
 Auxiliary class to manage set of compatible ROOT objects (e.g. More...
 
class  JMarkerAttributes
 Auxiliary class to set marker attributes. 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...
 
class  JStyle
 Wrapper class around ROOT TStyle. More...
 
struct  JVolume
 Auxiliary class for histogramming of effective volume. More...
 

Functions

TFile * getFile (const std::string &file_name, const std::string &option="exist")
 Get TFile pointer. More...
 
TDirectory * getDirectory (const JRootObjectID &id)
 Get TDirectory pointer. More...
 
TObjectgetObject (const JRootObjectID &id)
 Get TObject. 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 setLogarithm (TAxis *axis)
 Make axis logarithmic (e.g. 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)
 initialize axis with PMT address labels More...
 
TLegend * getLegend (const Int_t width, const Int_t height, const std::string option="TR")
 Get legend. More...
 
template<class JKey_t , class JValue_t >
bool resetObject (JManager< JKey_t, JValue_t > *object, const bool reset=false)
 Reset JManager object. 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...
 

Detailed Description

Auxiliary applications for use of ROOT and more.

Author
mdejong

Function Documentation

TFile* JGIZMO::getFile ( const std::string &  file_name,
const std::string &  option = "exist" 
)
inline

Get TFile pointer.


The TFile pointer of an already opened file is recovered, else a new file is opened.

Parameters
file_namefile name
optionTFile::Open option
Returns
pointer to TFile

Definition at line 89 of file JGizmoToolkit.hh.

90  {
91  using namespace std;
92 
93  gErrorIgnoreLevel = kError;
94 
95  static map<string, TFile*> zmap;
96 
97  map<string, TFile*>::iterator i = zmap.find(file_name);
98 
99  if (i == zmap.end() || i->second == NULL || !i->second->IsOpen()) {
100 
101  TFile* file = TFile::Open(file_name.c_str(), option.c_str());
102 
103  zmap[file_name] = file;
104 
105  return file;
106 
107  } else {
108 
109  return i->second;
110  }
111  }
TDirectory* JGIZMO::getDirectory ( const JRootObjectID id)
inline

Get TDirectory pointer.


The TFile pointer of an already opened file is recovered, else a new file is opened.

Parameters
ididentifier
Returns
pointer to TDirectory

Definition at line 121 of file JGizmoToolkit.hh.

122  {
123  TFile* in = getFile(id.getFilename().c_str(), "exist");
124 
125  if (in == NULL || !in->IsOpen()) {
126  return NULL;
127  }
128 
129  if (id.getDirectory() != "")
130  return in->GetDirectory(id.getDirectory());
131  else
132  return in;
133  }
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
TFile * getFile(const std::string &file_name, const std::string &option="exist")
Get TFile pointer.
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer.
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
Definition: JeepToolkit.hh:88
TObject* JGIZMO::getObject ( const JRootObjectID id)
inline

Get TObject.

Parameters
ididentifier
Returns
pointer to TObject (or NULL)

Definition at line 142 of file JGizmoToolkit.hh.

143  {
144  TDirectory* dir = getDirectory(id);
145 
146  if (dir != NULL) {
147 
148  const TRegexp regexp(id.getObjectName());
149 
150  TIter iter(dir->GetListOfKeys());
151 
152  for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
153 
154  const TString tag(key->GetName());
155 
156  // option match
157 
158  if (tag.Index(regexp) != -1) {
159  return key->ReadObj();
160  }
161  }
162  }
163 
164  return NULL;
165  }
TDirectory * getDirectory(const JRootObjectID &id)
Get TDirectory pointer.
bool JGIZMO::isTAttLine ( const TObject object)
inline

Get drawing option of TH1.

Parameters
objectpointer to TObject
Returns
true if TH1 looks a line; else false

Definition at line 174 of file JGizmoToolkit.hh.

175  {
176  const TH1* h1 = dynamic_cast<const TH1*>(object);
177 
178  if (h1 != NULL) {
179 
180  if (h1->GetSumw2N()) {
181 
182  for (Int_t i = 1; i <= h1->GetNbinsX(); ++i) {
183 
184  if (h1->GetBinError(i) != 0.0) {
185  return false;
186  }
187  }
188  }
189 
190  return true;
191 
192  } else {
193 
194  return false;
195  }
196  }
then for HISTOGRAM in h0 h1
Definition: JMatrixNZ.sh:69
Double_t JGIZMO::getResult ( const TString &  text,
TObject object = NULL 
)
inline

Get result of given textual formula.


The formula may contain names of member methods of the object pointed to. These methods should have no arguments and the return type Double_t. Example:

        getResult("1.0/GetEntries", TH1*);
Parameters
texttext
objectpointer to object
Returns
value

Definition at line 212 of file JGizmoToolkit.hh.

213  {
214  TString buffer(text);
215 
216  if (object != NULL) {
217 
218  TClass* p = TClass::GetClass(object->ClassName());
219 
220  if (p != NULL) {
221 
222  TIterator* iter = p->GetListOfAllPublicMethods()->MakeIterator();
223 
224  for (TMethod* method; (method = (TMethod*) iter->Next()) != NULL; ) {
225 
226  for (Ssiz_t index; (index = buffer.Index(method->GetName())) != -1; ) {
227 
228  const TRegexp fp("([^)]*)"); // function call
229 
230  Ssiz_t len;
231  Ssiz_t pos = buffer.Index(fp, &len, index);
232 
233  Double_t value;
234 
235  if (pos == -1) {
236 
237  TMethodCall(p, method->GetName(), NULL).Execute(object, value);
238 
239  len = strlen(method->GetName());
240 
241  } else if (pos == index + (Ssiz_t) strlen(method->GetName())) {
242 
243  TMethodCall(p, method->GetName(), NULL).Execute(object, TString(buffer(pos + 1, len - 2)), value);
244 
245  len += strlen(method->GetName());
246 
247  } else {
248 
249  continue;
250  }
251 
252  buffer.Replace(index, len, TString::Format("%f", value));
253  }
254  }
255  }
256  }
257 
258  return TFormula("/tmp", buffer.Data()).Eval(0.0);
259  }
char text[TEXT_SIZE]
Definition: elog.cc:72
Double_t JGIZMO::getResult ( const std::string &  text,
TObject object = NULL 
)
inline

Get result of given textual formula.


The formula may contain names of member methods of the object pointed to. These methods should have no arguments and the return type Double_t. Example:

        getResult("1.0/GetEntries", TH1*);
Parameters
texttext
objectpointer to object
Returns
value

Definition at line 275 of file JGizmoToolkit.hh.

276  {
277  return getResult(TString(text.c_str()), object);
278  }
char text[TEXT_SIZE]
Definition: elog.cc:72
Double_t getResult(const TString &text, TObject *object=NULL)
Get result of given textual formula.
int JGIZMO::getParameter ( const std::string &  text)
inline

Get parameter number from text string.


The number corresponds to the value [0-9]* in the expression "p[0-9]* = ..".

Parameters
texttext
Returns
parameter number

Definition at line 288 of file JGizmoToolkit.hh.

289  {
290  const char* regexp("p[0-9]* *=");
291 
292  TString buffer(text.c_str());
293 
294  buffer = buffer(TRegexp(regexp));
295  buffer = buffer(1, buffer.Length() - 2);
296 
297  if (!buffer.IsDigit()) {
298  THROW(JParseError, "Text is not a number " << text << ' ' << regexp);
299  }
300 
301  return buffer.Atoi();
302  }
char text[TEXT_SIZE]
Definition: elog.cc:72
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
Double_t JGIZMO::getValue ( const std::string &  text,
TObject object = NULL 
)
inline

Get parameter value from text string.


The formula may contain names of member methods of the object pointed to. These methods should have no arguments and the return type Double_t. Example:

        getValue("p[..] = 2*GetMaximum", TH1*);
Parameters
texttext
objectpointer to object
Returns
value

Definition at line 318 of file JGizmoToolkit.hh.

319  {
320  const char* regexp("=.*");
321 
322  TString buffer(text.c_str());
323 
324  buffer = buffer(TRegexp(regexp));
325  buffer = buffer(1, buffer.Length() - 1);
326 
327  return getResult(std::string(buffer), object);
328  }
char text[TEXT_SIZE]
Definition: elog.cc:72
Double_t getResult(const TString &text, TObject *object=NULL)
Get result of given textual formula.
void JGIZMO::setLogarithm ( TAxis *  axis)
inline

Make axis logarithmic (e.g.

after filling with log10()).

Parameters
axisaxis

Definition at line 336 of file JGizmoToolkit.hh.

337  {
338  if (axis != NULL) {
339 
340  const int N = axis->GetNbins();
341  Double_t buffer[N+1];
342 
343  buffer[0] = TMath::Power(10.0, axis->GetBinLowEdge(1));
344 
345  for (int i = 1; i <= N; ++i) {
346  buffer[i] = TMath::Power(10.0, axis->GetBinLowEdge(i) + axis->GetBinWidth(i));
347  }
348 
349  axis->Set(N, buffer);
350  }
351  }
then usage $script[input file[working directory[option]]] nWhere option can be N
Definition: JMuonPostfit.sh:37
void JGIZMO::convertToPDF ( TH1 &  h1,
const std::string &  option = "NW",
const double  factor = 1.0 
)
inline

Convert 1D histogram to PDF.

Possible options are:

  • N normalise to histogram contents;
  • W divide by bin width;
  • E convert also bin errors.
Parameters
h1histogram
optionoption
factorscaling factor

Definition at line 366 of file JGizmoToolkit.hh.

367  {
368  using namespace std;
369 
370  const bool normalise = (option.find('N') != string::npos || option.find('n') != string::npos);
371  const bool bin_width = (option.find('W') != string::npos || option.find('w') != string::npos);
372  const bool use_error = (option.find('E') != string::npos || option.find('e') != string::npos);
373 
374  Double_t W = 1.0;
375 
376  if (normalise) {
377 
378  W = 0.0;
379 
380  for (Int_t i = 1; i <= h1.GetXaxis()->GetNbins(); ++i) {
381  W += h1.GetBinContent(i);
382  }
383  }
384 
385  if (W != 0.0) {
386 
387  for (Int_t i = 1; i <= h1.GetXaxis()->GetNbins(); ++i) {
388 
389  const Double_t w = W * (bin_width ? h1.GetXaxis()->GetBinWidth(i) : 1.0);
390 
391  h1.SetBinContent(i, h1.GetBinContent(i) * factor / w);
392 
393  if (use_error) {
394  h1.SetBinError(i, h1.GetBinError(i) * factor / w);
395  }
396  }
397  }
398  }
data_type w[N+1][M+1]
Definition: JPolint.hh:708
then for HISTOGRAM in h0 h1
Definition: JMatrixNZ.sh:69
void JGIZMO::convertToPDF ( TH2 &  h2,
const std::string &  option = "NXYW",
const double  factor = 1.0 
)
inline

Convert 2D histogram to PDF.

Possible options are:

  • N normalise to histogram contents;
  • X convert x-axis to PDF;
  • Y convert y-axis to PDF;
  • W divide by bin width;
  • E convert also bin errors.
Parameters
h2histogram
optionoption
factorscaling factor

Definition at line 415 of file JGizmoToolkit.hh.

416  {
417  using namespace std;
418 
419  const bool normalise = (option.find('N') != string::npos || option.find('n') != string::npos);
420  const bool X = (option.find('X') != string::npos || option.find('x') != string::npos);
421  const bool Y = (option.find('Y') != string::npos || option.find('y') != string::npos);
422  const bool bin_width = (option.find('W') != string::npos || option.find('w') != string::npos);
423  const bool use_error = (option.find('E') != string::npos || option.find('e') != string::npos);
424 
425  Double_t W = 1.0;
426 
427  if (X && Y) {
428 
429  if (normalise) {
430 
431  W = 0.0;
432 
433  for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
434  for (Int_t j = 1; j <= h2.GetYaxis()->GetNbins(); ++j) {
435  W += h2.GetBinContent(i,j);
436  }
437  }
438  }
439 
440  if (W != 0.0) {
441 
442  for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
443  for (Int_t j = 1; j <= h2.GetYaxis()->GetNbins(); ++j) {
444 
445  const Double_t w = W * (bin_width ? h2.GetXaxis()->GetBinWidth(i) * h2.GetYaxis()->GetBinWidth(j) : 1.0);
446 
447  h2.SetBinContent(i, j, h2.GetBinContent(i,j) * factor / w);
448 
449  if (use_error) {
450  h2.SetBinError(i, j, h2.GetBinError(i,j) * factor / w);
451  }
452  }
453  }
454  }
455 
456  } else if (X) {
457 
458  for (Int_t j = 1; j <= h2.GetYaxis()->GetNbins(); ++j) {
459 
460  if (normalise) {
461 
462  W = 0.0;
463 
464  for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
465  W += h2.GetBinContent(i,j);
466  }
467  }
468 
469  if (W != 0.0) {
470 
471  for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
472 
473  const Double_t w = W * (bin_width ? h2.GetXaxis()->GetBinWidth(i) : 1.0);
474 
475  h2.SetBinContent(i, j, h2.GetBinContent(i,j) * factor / w);
476 
477  if (use_error) {
478  h2.SetBinError(i, j, h2.GetBinError(i,j) * factor / w);
479  }
480  }
481  }
482  }
483 
484  } else if (Y) {
485 
486  for (Int_t i = 1; i <= h2.GetXaxis()->GetNbins(); ++i) {
487 
488  if (normalise) {
489 
490  W = 0.0;
491 
492  for (Int_t j = 1; j <= h2.GetYaxis()->GetNbins(); ++j) {
493  W += h2.GetBinContent(i,j);
494  }
495  }
496 
497  if (W != 0.0) {
498 
499  for (Int_t j = 1; j <= h2.GetYaxis()->GetNbins(); ++j) {
500 
501  const Double_t w = W * (bin_width ? h2.GetYaxis()->GetBinWidth(j) : 1.0);
502 
503  h2.SetBinContent(i, j, h2.GetBinContent(i,j) / w);
504 
505  if (use_error) {
506  h2.SetBinError(i, j, h2.GetBinError(i,j) / w);
507  }
508  }
509  }
510  }
511  }
512  }
data_type w[N+1][M+1]
Definition: JPolint.hh:708
int j
Definition: JPolint.hh:634
void JGIZMO::setLimits ( TGraph &  g1)
inline

Set limits of TGraph.

Parameters
g1graph

Definition at line 520 of file JGizmoToolkit.hh.

521  {
522  using namespace std;
523 
524  Double_t ymin = +numeric_limits<Double_t>::max();
525  Double_t ymax = -numeric_limits<Double_t>::max();
526 
527  for (Int_t i = 0; i != g1.GetN(); ++i) {
528 
529  const Double_t y = g1.GetY()[i];
530 
531  if (y > ymax) { ymax = y; }
532  if (y < ymin) { ymin = y; }
533  }
534 
535  g1.SetMinimum(ymin);
536  g1.SetMaximum(ymax);
537  }
Double_t g1(const Double_t x)
Function.
Definition: JQuantiles.cc:25
void JGIZMO::setLimits ( TGraph2D &  g2)
inline

Set limits of TGraph2D.

Parameters
g2graph

Definition at line 545 of file JGizmoToolkit.hh.

546  {
547  using namespace std;
548 
549  Double_t zmin = +numeric_limits<Double_t>::max();
550  Double_t zmax = -numeric_limits<Double_t>::max();
551 
552  for (Int_t i = 0; i != g2.GetN(); ++i) {
553 
554  const Double_t z = g2.GetZ()[i];
555 
556  if (z > zmax) { zmax = z; }
557  if (z < zmin) { zmin = z; }
558  }
559 
560  g2.SetMinimum(zmin);
561  g2.SetMaximum(zmax);
562  }
void JGIZMO::setRange ( double &  xmin,
double &  xmax,
const bool  logx 
)
inline

Set axis range.

Parameters
xminlower limit (I/O)
xmaxupper limit (I/O)
logxlogarithmic

Definition at line 572 of file JGizmoToolkit.hh.

575  {
576  if (logx) {
577  xmin = log(xmin);
578  xmax = log(xmax);
579  }
580 
581  double dx = (xmax - xmin) * 0.1;
582 
583  if (xmin > dx || xmin < 0.0)
584  xmin -= dx;
585  else
586  xmin = 0.0;
587 
588  xmax += dx;
589 
590  if (logx) {
591  xmin = exp(xmin);
592  xmax = exp(xmax);
593  }
594  }
then set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable OUTPUT_FILE histogram.root JHistogram1D -o $WORKDIR/$OUTPUT_FILE -F "$FORMULA" -
void JGIZMO::setAxisLabels ( TAxis *  axis,
const JModuleAddressMap &  memo 
)
inline

initialize axis with PMT address labels

Parameters
axisaxis
memodefault module address map

Definition at line 603 of file JGizmoToolkit.hh.

604  {
605  using namespace JPP;
606 
607  if (axis->GetNbins() == (int) memo.size()) {
608 
609  for (int i = 0; i < axis->GetNbins(); i++) {
610 
611  const JPMTPhysicalAddress& pmtAddress = memo[i];
612 
613  axis->SetBinLabel(i + 1, TString(pmtAddress.toString()));
614  }
615 
616  } else {
617 
618  THROW(JValueOutOfRange, "Number of bins " << axis->GetNbins() << " != " << memo.size());
619  }
620  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:670
TLegend* JGIZMO::getLegend ( const Int_t  width,
const Int_t  height,
const std::string  option = "TR" 
)
inline

Get legend.

Parameters
widthwidth [characters]
heightheight [lines]
optionposition [TR TL BL BR]
Returns
legend

Definition at line 28 of file JLegend.hh.

31  {
32  using namespace std;
33 
34  gPad->Update();
35 
36  const Double_t X1 = 0.0 + gPad->GetLeftMargin();
37  const Double_t X2 = 1.0 - gPad->GetRightMargin();
38  const Double_t Y1 = 0.0 + gPad->GetBottomMargin();
39  const Double_t Y2 = 1.0 - gPad->GetTopMargin();
40 
41  const Double_t w = gPad->XtoPixel(gPad->GetX2());
42  const Double_t h = gPad->YtoPixel(gPad->GetY1());
43  const Double_t ch = gStyle->GetStatFontSize() * (w < h ? w : h);
44 
45  const Double_t fx = 0.70 * ch/w; // estimated fonst size [NDC]
46  const Double_t fy = 1.10 * ch/h; // estimated fonst size [NDC]
47  const Double_t eps = 0.002; // extra space [NDC]
48  const Int_t nc = 3; // number of characters reserved for margin
49 
50  Int_t wd = width;
51 
52  if (wd < 2) {
53  wd = 2;
54  }
55 
56  Double_t W = (wd + nc) * fx; // width [NDC]
57  Double_t H = (height) * fy; // height [NDC]
58 
59  Double_t fc = 1.0; // scaling factor
60 
61  if (fc * W > X2 - X1 - 2*eps) {
62  fc *= (X2 - X1 - 2*eps) / W;
63  }
64 
65  if (fc * H > Y2 - Y1 - 2*eps) {
66  fc *= (Y2 - Y1 - 2*eps) / H;
67  }
68 
69  W *= fc;
70  H *= fc;
71 
72  // default position is top-right
73 
74  Double_t x1 = X2 - W - eps;
75  Double_t y1 = Y2 - H - eps;
76  Double_t x2 = X2 - eps;
77  Double_t y2 = Y2 - eps;
78 
79  int halign = 2;
80  int valign = 2;
81 
82  if (option.find('T') != string::npos && option.find('B') == string::npos) { // top
83 
84  y1 = Y2 - H - eps;
85  y2 = Y2 - eps;
86 
87  //valign = 1;
88  }
89 
90  if (option.find('B') != string::npos && option.find('T') == string::npos) { // bottom
91 
92  y1 = Y1 + eps;
93  y2 = Y1 + H + eps;
94 
95  //valign = 3;
96  }
97 
98  if (option.find('R') != string::npos && option.find('L') == string::npos) { // right
99 
100  x1 = X2 - W - eps;
101  x2 = X2 - eps;
102 
103  halign = 1;
104  }
105 
106  if (option.find('L') != string::npos && option.find('R') == string::npos) { // left
107 
108  x1 = X1 + eps;
109  x2 = X1 + W + eps;
110 
111  halign = 1;
112  }
113 
114  TLegend* lg = new TLegend(x1, y1, x2, y2);
115 
116  lg->SetTextAlign(halign*10 + valign);
117 
118  //lg->SetFillStyle(4000);
119  lg->SetFillColor(kWhite);
120  lg->SetBorderSize(0);
121  lg->SetTextAlign(12);
122  lg->SetTextFont(gStyle->GetStatFont());
123  lg->SetTextSize(gStyle->GetStatFontSize());
124  //lg->SetTextSize(lg->GetTextSize() * fc);
125  lg->SetMargin((Double_t) nc / (Double_t) (wd + nc));
126 
127  return lg;
128  }
static const double H
Planck constant [eV s].
Definition: JConstants.hh:25
data_type w[N+1][M+1]
Definition: JPolint.hh:708
template<class JKey_t , class JValue_t >
bool JGIZMO::resetObject ( JManager< JKey_t, JValue_t > *  object,
const bool  reset = false 
)
inline

Reset JManager object.

Parameters
objectROOT TH1 object
resetreset contents if true
Returns
true if successful; else false

Definition at line 365 of file JManager.hh.

366  {
367  if (object->is_valid()) {
368  JROOT::resetObject(object->get());
369  }
370 
371  for (typename JManager<JKey_t, JValue_t>::iterator i = object->begin(); i != object->end(); ++i) {
372  JROOT::resetObject(i->second.get());
373  }
374 
375  return true;
376  }
bool is_valid() const
Check validity of pointer.
Auxiliary class to manage set of compatible ROOT objects (e.g.
Definition: JManager.hh:42
virtual JClass_t * get() const
Get pointer.
Definition: JPointer.hh:64
bool resetObject(TH1 *object, const bool reset=false)
Reset TH1 object.
Definition: JRootToolkit.hh:79

Variable Documentation

const char* const JGIZMO::TIMESTAMP = "#splitline{}{#splitline{%d:%m:%y}{ %H:%M}}%F1970-01-01 00:00:00"
static

Time stamp of earliest UTC time.

Definition at line 79 of file JGizmoToolkit.hh.

const char JGIZMO::LABEL_TERMINATOR = '&'
static

label terminator

Definition at line 21 of file JRootObject.hh.