Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TreeUtils.h
Go to the documentation of this file.
1// @(#)root/tree:$Id$
2// Author: Timur Pocheptsov 30/01/2014
3
4/*************************************************************************
5 * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12//////////////////////////////////////////////////////////////////////////
13// //
14// TreeUtils //
15// //
16// Different standalone functions to work with trees and tuples, //
17// not required to be a member of any class. //
18// //
19//////////////////////////////////////////////////////////////////////////
20
21
22#ifndef ROOT_TreeUtils
23#define ROOT_TreeUtils
24
25#if !defined(ROOT_TreeUtils_cxx) && !defined(G__DICTIONARY) && !defined(__ROOTCLING__) && !defined(__CLING__)
26#warning "This header is deprecated and will be removed in ROOT 6.44, use instead TNtuple::ReadStream or TNtupleD::ReadStream"
27#endif
28
29#include <iosfwd>
30
31#include "RtypesCore.h"
32
33namespace ROOT {
34namespace TreeUtils {
35
36/// Function to fill tuples (TNtuple/TNtupleD) from
37/// a simple ASCII data file. With auto and decltype - we can
38/// get rid of DataType parameter :) (or with a simple typedef inside ntuple class).
39/// An input file consists of non-empty lines (separated by newline-characters), possibly empty lines,
40/// and comments (treated as empty lines). Each non-empty line should contain N numbers - entry for a tuple.
41/// Non-strict mode lets you to have newline-characters inside a tuple's row (as it worked
42/// in ROOT prior to v5.3xxx).
43
44template<class DataType, class Tuple>
46
47}
48}
49
50#endif
Basic types used by ROOT and required by TInterpreter.
long long Long64_t
Portable signed long integer 8 bytes.
Definition RtypesCore.h:84
Different standalone functions to work with trees and tuples, not required to be a member of any clas...
Long64_t FillNtupleFromStream(std::istream &inputStream, Tuple &tuple, char delimiter, bool strictMode)
Function to fill tuples (TNtuple/TNtupleD) from a simple ASCII data file.
Definition TreeUtils.cxx:81