Logo ROOT  
Reference Guide
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::RNTupleWriteOptions
27\ingroup NTuple
28\brief Common user-tunable settings for storing ntuples
29
30All page sink classes need to support the common options.
31*/
32// clang-format on
35public:
36 RNTupleWriteOptions() : fCompression(RCompressionSetting::EDefaults::kUseAnalysis) {}
37 int GetCompression() const { return fCompression; }
38 void SetCompression(int val) { fCompression = val; }
39 void SetCompression(RCompressionSetting::EAlgorithm algorithm, int compressionLevel) {
40 fCompression = CompressionSettings(algorithm, compressionLevel);
41 }
42};
43
44
45// clang-format off
46/**
47\class ROOT::Experimental::RNTupleReadOptions
48\ingroup NTuple
49\brief Common user-tunable settings for reading ntuples
50
51All page source classes need to support the common options.
52*/
53// clang-format on
55};
56
57} // namespace Experimental
58} // namespace ROOT
59
60#endif
Common user-tunable settings for reading ntuples.
Common user-tunable settings for storing ntuples.
void SetCompression(RCompressionSetting::EAlgorithm algorithm, int compressionLevel)
VSD Structures.
Definition: StringConv.hxx:21
int CompressionSettings(RCompressionSetting::EAlgorithm algorithm, int compressionLevel)
The global settings depend on a global variable named R__ZipMode which can be modified by a global fu...
Definition: Compression.h:43