|
||||
File indexing completed on 2025-01-18 10:12:22
0001 // @(#)root/tree:$Id$ 0002 // Author: Timur Pocheptsov 30/01/2014 0003 0004 /************************************************************************* 0005 * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. * 0006 * All rights reserved. * 0007 * * 0008 * For the licensing terms see $ROOTSYS/LICENSE. * 0009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 0010 *************************************************************************/ 0011 0012 ////////////////////////////////////////////////////////////////////////// 0013 // // 0014 // TreeUtils // 0015 // // 0016 // Different standalone functions to work with trees and tuples, // 0017 // not required to be a member of any class. // 0018 // // 0019 ////////////////////////////////////////////////////////////////////////// 0020 0021 0022 #ifndef ROOT_TreeUtils 0023 #define ROOT_TreeUtils 0024 0025 #include <iosfwd> 0026 0027 #include "RtypesCore.h" 0028 0029 namespace ROOT { 0030 namespace TreeUtils { 0031 0032 /// Function to fill tuples (TNtuple/TNtupleD) from 0033 /// a simple ASCII data file. With auto and decltype - we can 0034 /// get rid of DataType parameter :) (or with a simple typedef inside ntuple class). 0035 /// An input file consists of non-empty lines (separated by newline-characters), possibly empty lines, 0036 /// and comments (treated as empty lines). Each non-empty line should contain N numbers - entry for a tuple. 0037 /// Non-strict mode lets you to have newline-characters inside a tuple's row (as it worked 0038 /// in ROOT prior to v5.3xxx). 0039 0040 template<class DataType, class Tuple> 0041 Long64_t FillNtupleFromStream(std::istream &inputStream, Tuple &tuple, char delimiter, bool strictMode); 0042 0043 } 0044 } 0045 0046 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |