Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
JRootToolkit.hh File Reference
#include <string>
#include <istream>
#include <ostream>
#include <limits>
#include <cctype>
#include <vector>
#include "TString.h"
#include "TRegexp.h"
#include "TPRegexp.h"
#include "TFormula.h"
#include "TFile.h"
#include "TStreamerInfo.h"
#include "TList.h"
#include "TIterator.h"
#include "TF1.h"
#include "TH1.h"
#include "TH2.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TNtuple.h"
#include "JLang/JType.hh"
#include "JLang/JLangToolkit.hh"
#include "JROOT/JRootFile.hh"
#include "JROOT/JRootDictionary.hh"
#include "JROOT/JRootPrinter.hh"
#include "JTools/JRange.hh"

Go to the source code of this file.

Classes

struct  JROOT::JFitParameter_t
 Auxiliary data structure for a parameter index and its value. More...
 

Namespaces

 JROOT
 Auxiliary classes and methods for ROOT I/O.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

template<class T >
const char * JROOT::getName ()
 Get ROOT name of given data type. More...
 
template<class T >
const char * JROOT::getName (const JType< T > &type)
 Get ROOT name of given data type. More...
 
bool JROOT::resetObject (TH1 *object, const bool reset=false)
 Reset TH1 object. More...
 
bool JROOT::resetObject (TGraph *object, const bool reset=false)
 Reset TGraph object. More...
 
bool JROOT::resetObject (TGraphErrors *object, const bool reset=false)
 Reset TGraphErrors object. More...
 
bool JROOT::resetObject (TNtuple *object, const bool reset=false)
 Reset TNtuple object. More...
 
TFile & JROOT::operator<< (TFile &file, const TObject &object)
 Write object to ROOT file. More...
 
const TStreamerInfo * JROOT::getStreamerInfo (TFile *file, const char *name)
 Get ROOT streamer information of class with given name. More...
 
const TStreamerInfo * JROOT::getStreamerInfo (const char *file_name, const char *name)
 Get ROOT streamer information of class with given name. More...
 
int JROOT::getStreamerVersion (TFile *file, const char *name)
 Get ROOT streamer version of class with given name. More...
 
int JROOT::getStreamerVersion (const char *file_name, const char *name)
 Get ROOT streamer version of class with given name. More...
 
TString JROOT::parse (const TPRegexp &regexp, const TString &string, const int index=1)
 Match a regular expression with given string and return the specified matched parts. More...
 
bool JROOT::setParameter (TF1 &f1, const JFitParameter_t &parameter)
 Set fit parameter. More...
 
bool JROOT::fixParameter (TF1 &f1, const JFitParameter_t &parameter)
 Fix fit parameter. More...
 
bool JROOT::releaseParameter (TF1 &f1, const Int_t index)
 Release fit parameter. More...
 
bool JROOT::setParLimits (TF1 &f1, const Int_t index, Double_t xmin, Double_t xmax)
 Set fit parameter limits. More...
 
bool JROOT::isParameterFixed (TF1 &f1, const Int_t index)
 Check if fit parameter is fixed. More...
 
template<class T >
Double_t JROOT::getResult (const TString &text, const T &object, const JRootDictionary_t &dictionary=JRootDictionary::getInstance())
 Get result of given textual formula. More...
 
TGraph * JROOT::histogramToGraph (const TH1 &in)
 Converts a 1D histogram to a TGraph with: More...
 
TH1 * JROOT::projectHistogram (const TH2 &in, const JTOOLS::JRange< int > R, const char coordinate= 'x')
 Helper method for ROOT Projection(X|Y) based on a JRange object and a coordinate. More...
 
std::istream & operator>> (std::istream &in, TRegexp &object)
 Read regular expression from input stream. More...
 
std::ostream & operator<< (std::ostream &out, const TRegexp &object)
 Write regular expression to output stream. More...
 

Function Documentation

std::istream& operator>> ( std::istream &  in,
TRegexp &  object 
)

Read regular expression from input stream.

Parameters
ininput stream
objectregular expression
Returns
output stream

Definition at line 561 of file JRootToolkit.hh.

562 {
563  std::string buffer;
564 
565  if (in >> buffer) {
566  object = TRegexp(buffer.c_str());
567  }
568 
569  return in;
570 }
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
std::ostream& operator<< ( std::ostream &  out,
const TRegexp &  object 
)

Write regular expression to output stream.

Parameters
outoutput stream
objectregular expression
Returns
output stream

Definition at line 580 of file JRootToolkit.hh.

581 {
582  return out;
583 }