Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RNTupleOptions.hxx
Go to the documentation of this file.
1/// \file ROOT/RNTupleOptions.hxx
2/// \ingroup NTuple ROOT7
3/// \author Jakob Blomer <jblomer@cern.ch>
4/// \date 2019-08-25
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-2019, 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#ifndef ROOT7_RNTupleOptions
17#define ROOT7_RNTupleOptions
18
19#include <Compression.h>
20
21namespace ROOT {
22namespace Experimental {
23
24// clang-format off
25/**
26\class ROOT::Experimental::ENTupleContainerFormat
27\ingroup NTuple
28\brief Describes the options for wrapping RNTuple data in files
29*/
30// clang-format on
32 kTFile, // ROOT TFile
33 kBare, // A thin envelope supporting a single RNTuple only
34};
35
36
37// clang-format off
38/**
39\class ROOT::Experimental::RNTupleWriteOptions
40\ingroup NTuple
41\brief Common user-tunable settings for storing ntuples
42
43All page sink classes need to support the common options.
44*/
45// clang-format on
49
50public:
51 int GetCompression() const { return fCompression; }
52 void SetCompression(int val) { fCompression = val; }
53 void SetCompression(RCompressionSetting::EAlgorithm algorithm, int compressionLevel) {
54 fCompression = CompressionSettings(algorithm, compressionLevel);
55 }
56
59};
60
61
62// clang-format off
63/**
64\class ROOT::Experimental::RNTupleReadOptions
65\ingroup NTuple
66\brief Common user-tunable settings for reading ntuples
67
68All page source classes need to support the common options.
69*/
70// clang-format on
72public:
77 };
78
79private:
81
82public:
85};
86
87} // namespace Experimental
88} // namespace ROOT
89
90#endif
Common user-tunable settings for reading ntuples.
Common user-tunable settings for storing ntuples.
void SetContainerFormat(ENTupleContainerFormat val)
ENTupleContainerFormat GetContainerFormat() const
void SetCompression(RCompressionSetting::EAlgorithm algorithm, int compressionLevel)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
int CompressionSettings(RCompressionSetting::EAlgorithm algorithm, int compressionLevel)
@ kUseAnalysis
Use the default analysis setting; fast reading but poor compression ratio.
Definition Compression.h:52