Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RNTupleReadOptions.hxx
Go to the documentation of this file.
1/// \file ROOT/RNTupleReadOptions.hxx
2/// \ingroup NTuple ROOT7
3/// \author Jakob Blomer <jblomer@cern.ch>
4/// \date 2024-02-22
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-2024, 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_RNTupleReadOptions
17#define ROOT7_RNTupleReadOptions
18
19namespace ROOT {
20namespace Experimental {
21
22// clang-format off
23/**
24\class ROOT::Experimental::RNTupleReadOptions
25\ingroup NTuple
26\brief Common user-tunable settings for reading ntuples
27
28All page source classes need to support the common options.
29*/
30// clang-format on
32public:
33 enum class EClusterCache {
34 kOff,
35 kOn,
36 kDefault = kOn,
37 };
38 enum class EImplicitMT {
39 kOff,
41 };
42
43private:
45 unsigned int fClusterBunchSize = 1;
47 /// If true, the RNTupleReader will track metrics straight from its construction, as
48 /// if calling `RNTupleReader::EnableMetrics()` before having created the object.
49 bool fEnableMetrics = false;
50
51public:
54
55 unsigned int GetClusterBunchSize() const { return fClusterBunchSize; }
56 void SetClusterBunchSize(unsigned int val) { fClusterBunchSize = val; }
57
60
61 bool HasMetricsEnabled() const { return fEnableMetrics; }
62 void SetMetricsEnabled(bool enable) { fEnableMetrics = enable; }
63};
64
65} // namespace Experimental
66} // namespace ROOT
67
68#endif
Common user-tunable settings for reading ntuples.
bool fEnableMetrics
If true, the RNTupleReader will track metrics straight from its construction, as if calling RNTupleRe...
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...