/usr/include/root/TreeUtils.h is in libroot-tree-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | // @(#)root/tree:$Id$
// Author: Timur Pocheptsov 30/01/2014
/*************************************************************************
* Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
//////////////////////////////////////////////////////////////////////////
// //
// TreeUtils //
// //
// Different standalone functions to work with trees and tuples, //
// not reqiuired to be a member of any class. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TreeUtils
#define ROOT_TreeUtils
#include <iosfwd>
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
namespace ROOT {
namespace TreeUtils {
//1. Function to fill tuples (TNtuple/TNtupleD) from
//a simple ASCII data file. With auto and decltype - we can
//get rid of DataType parameter :) (or with a simple typedef inside ntuple class).
//An input file consists of non-empty lines (separated by newline-characters), possibly empty lines,
//and comments (treated as empty lines). Each non-empty line should contain N numbers - entry for a tuple.
//Non-strict mode lets you to have newline-characters inside a tuple's row (as it worked
//in ROOT prior to v5.3xxx).
template<class DataType, class Tuple>
Long64_t FillNtupleFromStream(std::istream &inputStream, Tuple &tuple, char delimiter, bool strictMode);
}
}
#endif
|