Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RSnapshotOptions.hxx
Go to the documentation of this file.
1// Author: Guilherme Amadio, Enrico Guiraud, Danilo Piparo CERN 2/2018
2
3/*************************************************************************
4 * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_RSNAPSHOTOPTIONS
12#define ROOT_RSNAPSHOTOPTIONS
13
14#include <Compression.h>
15#include <optional>
16#include <string_view>
17#include <string>
18
19namespace ROOT {
20
21namespace RDF {
24 kTTree,
26};
27
28/// A collection of options to steer the creation of the dataset on file
31 RSnapshotOptions() = default;
49 std::string fMode = "RECREATE"; ///< Mode of creation of output file
51 ROOT::RCompressionSetting::EAlgorithm::kZLIB; ///< Compression algorithm of output file
52 int fCompressionLevel = 1; ///< Compression level of output file
53 int fAutoFlush = 0; ///< AutoFlush value for output tree
54 int fSplitLevel = 99; ///< Split level of output tree
55 bool fLazy = false; ///< Do not start the event loop when Snapshot is called
56 bool fOverwriteIfExists = false; ///< If fMode is "UPDATE", overwrite object in output file if it already exists
57 bool fVector2RVec = true; ///< If set to true will convert std::vector columns to RVec when saving to disk
58 int fBasketSize = -1; ///< Set a custom basket size option. For more details, see
59 ///< https://root.cern/manual/trees/#baskets-clusters-and-the-tree-header
61};
62} // namespace RDF
63} // namespace ROOT
64
65#endif
Option_t Option_t TPoint TPoint const char mode
@ kDefault
Definition TSystem.h:243
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
EValues
Note: this is only temporarily a struct and will become a enum class hence the name convention used.
Definition Compression.h:88
A collection of options to steer the creation of the dataset on file.
int fAutoFlush
AutoFlush value for output tree.
ESnapshotOutputFormat fOutputFormat
Which data format to write to.
std::string fMode
Mode of creation of output file.
bool fVector2RVec
If set to true will convert std::vector columns to RVec when saving to disk.
RSnapshotOptions(const RSnapshotOptions &)=default
ECAlgo fCompressionAlgorithm
Compression algorithm of output file.
int fSplitLevel
Split level of output tree.
RSnapshotOptions(RSnapshotOptions &&)=default
int fBasketSize
Set a custom basket size option.
RSnapshotOptions(std::string_view mode, ECAlgo comprAlgo, int comprLevel, int autoFlush, int splitLevel, bool lazy, bool overwriteIfExists=false, bool vector2RVec=true, int basketSize=-1, ESnapshotOutputFormat outputFormat=ESnapshotOutputFormat::kDefault)
bool fLazy
Do not start the event loop when Snapshot is called.
int fCompressionLevel
Compression level of output file.
bool fOverwriteIfExists
If fMode is "UPDATE", overwrite object in output file if it already exists.