Jpp
Classes | Namespaces | Functions
JRootToolkit.hh File Reference
#include <string>
#include <istream>
#include <ostream>
#include <limits>
#include <cctype>
#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 "JLang/JType.hh"
#include "JLang/JLangToolkit.hh"
#include "JROOT/JRootFile.hh"
#include "JROOT/JRootDictionary.hh"
#include "JROOT/JRootPrinter.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...
 
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 (TPRegexp &regexp, const TString &string, int i=1)
 Match a TString to a TPRegexp, and return the chosen match. 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...
 
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

◆ operator>>()

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 399 of file JRootToolkit.hh.

400 {
401  std::string buffer;
402 
403  if (in >> buffer) {
404  object = TRegexp(buffer.c_str());
405  }
406 
407  return in;
408 }

◆ operator<<()

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 418 of file JRootToolkit.hh.

419 {
420  return out;
421 }