Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RNTupleUtil.cxx
Go to the documentation of this file.
1/// \file RNTupleUtil.cxx
2/// \ingroup NTuple ROOT7
3/// \author Jakob Blomer <jblomer@cern.ch> & Max Orok <maxwellorok@gmail.com>
4/// \date 2020-07-14
5/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6/// is welcome!
7
8/*************************************************************************
9 * Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. *
10 * All rights reserved. *
11 * *
12 * For the licensing terms see $ROOTSYS/LICENSE. *
13 * For the list of contributors see $ROOTSYS/README/CREDITS. *
14 *************************************************************************/
15
16#include "ROOT/RNTupleUtil.hxx"
17
18#include "ROOT/RLogger.hxx"
19#include "ROOT/RMiniFile.hxx"
20
21#include <iostream>
22
24 static RLogChannel sLog("ROOT.NTuple");
25 return sLog;
26}
27
28
29namespace ROOT {
30namespace Experimental {
31namespace Internal {
32
33void PrintRNTuple(const RNTuple& ntuple, std::ostream& output) {
34 output << "RNTuple {\n";
35 output << " fVersion: " << ntuple.fVersion << ",\n";
36 output << " fSize: " << ntuple.fSize << ",\n";
37 output << " fSeekHeader: " << ntuple.fSeekHeader << ",\n";
38 output << " fNBytesHeader: " << ntuple.fNBytesHeader << ",\n";
39 output << " fLenHeader: " << ntuple.fLenHeader << ",\n";
40 output << " fSeekFooter: " << ntuple.fSeekFooter << ",\n";
41 output << " fNBytesFooter: " << ntuple.fNBytesFooter << ",\n";
42 output << " fLenFooter: " << ntuple.fLenFooter << ",\n";
43 output << " fReserved: " << ntuple.fReserved << ",\n";
44 output << "}";
45}
46
47} // namespace Internal
48} // namespace Experimental
49} // namespace ROOT
A log configuration for a channel, e.g.
Definition RLogger.hxx:101
void PrintRNTuple(const RNTuple &ntuple, std::ostream &output)
RLogChannel & NTupleLog()
Log channel for RNTuple diagnostics.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Entry point for an RNTuple in a ROOT file.
Definition RMiniFile.hxx:55
std::uint64_t fSeekFooter
The file offset of the footer excluding the TKey part.
Definition RMiniFile.hxx:67
std::uint32_t fLenHeader
The size of the uncompressed ntuple header.
Definition RMiniFile.hxx:65
std::uint64_t fReserved
Currently unused, reserved for later use.
Definition RMiniFile.hxx:73
std::uint32_t fVersion
Allows for evolving the struct in future versions.
Definition RMiniFile.hxx:57
std::uint32_t fNBytesHeader
The size of the compressed ntuple header.
Definition RMiniFile.hxx:63
std::uint32_t fSize
Allows for skipping the struct.
Definition RMiniFile.hxx:59
std::uint32_t fNBytesFooter
The size of the compressed ntuple footer.
Definition RMiniFile.hxx:69
std::uint32_t fLenFooter
The size of the uncompressed ntuple footer.
Definition RMiniFile.hxx:71
std::uint64_t fSeekHeader
The file offset of the header excluding the TKey part.
Definition RMiniFile.hxx:61
static void output(int code)
Definition gifencode.c:226