Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TreeUtils.cxx File Reference
#include <istream>
#include <cassert>
#include <cctype>
#include "TreeUtils.h"
#include "TNtupleD.h"
#include "TNtuple.h"
#include "TError.h"
#include "TTree.h"
Include dependency graph for TreeUtils.cxx:

Classes

struct  ROOT::TreeUtils::InvalidTupleType< TNtuple >
 
struct  ROOT::TreeUtils::InvalidTupleType< TNtupleD >
 

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 
namespace  ROOT::TreeUtils
 

Functions

template<class DataType , class Tuple >
Long64_t ROOT::TreeUtils::FillNtupleFromStream (std::istream &inputStream, Tuple &tuple, char delimiter, bool strictMode)
 Function to fill tuples (TNtuple/TNtupleD) from a simple ASCII data file.
 
template Long64_t ROOT::TreeUtils::FillNtupleFromStream< Double_t, TNtupleD > (std::istream &, TNtupleD &, char, bool)
 
template Long64_t ROOT::TreeUtils::FillNtupleFromStream< Float_t, TNtuple > (std::istream &, TNtuple &, char, bool)
 
bool ROOT::TreeUtils::NextCharacterIsEOL (std::istream &input)
 Either '\r' | '\n' or eof of some problem.
 
void ROOT::TreeUtils::SkipComment (std::istream &input)
 Skips everything from '#' to (including) '\r' or '\n'.
 
void ROOT::TreeUtils::SkipEmptyLines (std::istream &input)
 Skips empty lines (newline-characters), ws-lines (consisting only of whitespace characters + newline-characters).
 
void ROOT::TreeUtils::SkipWSCharacters (std::istream &input)
 Skip whitespace characters, but not newline-characters we support ('\r' or '\n').