Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JGizmoToolkit.hh File Reference
#include <string>
#include <sstream>
#include <map>
#include <cmath>
#include <memory>
#include "TError.h"
#include "TFile.h"
#include "TClass.h"
#include "TObject.h"
#include "TKey.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TAttLine.h"
#include "TAttFill.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TGraphAsymmErrors.h"
#include "TGraph2D.h"
#include "TGraph2DErrors.h"
#include "TMultiGraph.h"
#include "TLine.h"
#include "TEllipse.h"
#include "TString.h"
#include "TRegexp.h"
#include "TFormula.h"
#include "TF1.h"
#include "TF2.h"
#include "TList.h"
#include "TIterator.h"
#include "TMethod.h"
#include "TMethodCall.h"
#include "TAxis.h"
#include "TMath.h"
#include "JLang/JException.hh"
#include "JGizmo/JRootObjectID.hh"
#include "JDetector/JModuleAddressMap.hh"

Go to the source code of this file.

Classes

struct  JGIZMO::JOpera
 Auxiliary data structure for JOpera1D.cc and JOpera2D.cc applications. More...
 

Namespaces

namespace  JGIZMO
 Auxiliary applications for use of ROOT and more.
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

TFile * JGIZMO::getFile (const std::string &file_name, const std::string &option="exist")
 Get TFile pointer corresponding to give file name.
 
TDirectory * JGIZMO::getDirectory (const JRootObjectID &id)
 Get TDirectory pointer.
 
TObjectJGIZMO::getObject (const JRootObjectID &id)
 Get first TObject with given identifier.
 
bool JGIZMO::isTAttLine (const TObject *object)
 Get drawing option of object.
 
bool JGIZMO::isTAttFill (const TObject *object)
 Get drawing option of object.
 
Double_t JGIZMO::getResult (const TString &text, TObject *object=NULL)
 Get result of given textual formula.
 
Double_t JGIZMO::getResult (const std::string &text, TObject *object=NULL)
 Get result of given textual formula.
 
int JGIZMO::getParameter (const std::string &text)
 Get parameter number from text string.
 
Double_t JGIZMO::getValue (const std::string &text, TObject *object=NULL)
 Get parameter value from text string.
 
Double_t JGIZMO::getValue (const std::string &text, const int index)
 Get parameter value from text string.
 
void JGIZMO::setLogarithmic (TAxis *axis)
 Make histogram axis logarithmic (e.g. after using log10()).
 
TString JGIZMO::getLogarithmic (const TString &formula, const char parameter)
 Make given parameter in formula logarithmic (e.g. after using log10()).
 
void JGIZMO::copy (const TF1 &from, TF1 &to)
 Copy function parameters.
 
void JGIZMO::copy (const TF2 &from, TF2 &to)
 Copy function parameters.
 
template<class T >
void JGIZMO::setLogarithmicX (TList *list)
 Make x-axis of objects in list logarithmic (e.g. after using log10()).
 
template<class T >
void JGIZMO::setLogarithmicY (TList *list)
 Make y-axis of objects in list logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TF1 *f1)
 Make x-axis of given function logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TF1 *f1)
 Make y-axis of given function logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TF2 *f2)
 Make x-axis of given function logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TF2 *f2)
 Make y-axis of given function logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TH1 *h1)
 Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TH1 *h1)
 Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TH2 *h2)
 Make x-axis and associated functions of given histogram logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TH2 *h2)
 Make y-axis and associated functions of given histogram logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TGraph *g1)
 Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TGraph *g1)
 Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TGraphErrors *g1)
 Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TGraphErrors *g1)
 Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TGraph2D *g2)
 Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TGraph2D *g2)
 Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TGraph2DErrors *g2)
 Make x-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TGraph2DErrors *g2)
 Make y-axis and associated functions of given graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TMultiGraph *gn)
 Make x-axis of given multi-graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TMultiGraph *gn)
 Make y-axis of given multi-graph logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TLine *line)
 Make x-axis of given line logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TLine *line)
 Make y-axis of given line logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicX (TEllipse *ellipse)
 Make x-axis of given ellipse logarithmic (e.g. after using log10()).
 
void JGIZMO::setLogarithmicY (TEllipse *ellipse)
 Make y-axis of given ellipse logarithmic (e.g. after using log10()).
 
void JGIZMO::convertToPDF (TH1 &h1, const std::string &option="NW", const double factor=1.0)
 Convert 1D histogram to PDF.
 
void JGIZMO::convertToPDF (TH2 &h2, const std::string &option="NXYW", const double factor=1.0)
 Convert 2D histogram to PDF.
 
void JGIZMO::convertToPDF (TH3 &h3, const std::string &option="NXYW", const double factor=1.0)
 Convert 3D histogram to PDF.
 
void JGIZMO::setLimits (TGraph &g1)
 Set limits of TGraph.
 
void JGIZMO::setLimits (TGraph2D &g2)
 Set limits of TGraph2D.
 
void JGIZMO::setRange (double &xmin, double &xmax, const bool logx)
 Set axis range.
 
void JGIZMO::setAxisLabels (TAxis *axis, const JModuleAddressMap &memo)
 Set axis with PMT address labels.
 
void JGIZMO::setAxisLabels (TH1 &h1, const std::string axis, const JModuleAddressMap &memo)
 Set axis labels with PMT addresses.
 
bool JGIZMO::isTObject (const TKey *key)
 Check if given key corresponds to a TObject.
 
TObjectJGIZMO::getObject (TList *ls, const char *const name)
 Get first object of which name matches given reguar expression.
 
TF1 * JGIZMO::getFunction (TH1 *h1, const char *const fcn)
 Get function.
 
TF1 * JGIZMO::getFunction (TGraph *g1, const char *const fcn)
 Get function.
 
TF1 * JGIZMO::getFunction (TGraph2D *g2, const char *const fcn)
 Get function.
 

Variables

static const char *const JGIZMO::TIMESTAMP = "#splitline{}{#splitline{%d:%m:%y}{ %H:%M}}%F1970-01-01 00:00:00"
 Time stamp of earliest UTC time.