File indexing completed on 2025-09-16 09:08:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef ROOT_RNTupleReadOptions
0015 #define ROOT_RNTupleReadOptions
0016
0017 namespace ROOT {
0018
0019 class RNTupleReadOptions;
0020
0021 namespace Internal {
0022
0023 class RNTupleReadOptionsManip final {
0024 public:
0025 static unsigned int GetClusterBunchSize(const RNTupleReadOptions &options);
0026 static void SetClusterBunchSize(RNTupleReadOptions &options, unsigned int val);
0027 };
0028
0029 }
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078 class RNTupleReadOptions {
0079 friend class Internal::RNTupleReadOptionsManip;
0080
0081 public:
0082 enum class EClusterCache {
0083 kOff,
0084 kOn,
0085 kDefault = kOn,
0086 };
0087
0088 enum class EImplicitMT {
0089 kOff,
0090 kDefault,
0091 };
0092
0093 private:
0094 EClusterCache fClusterCache = EClusterCache::kDefault;
0095
0096
0097 unsigned int fClusterBunchSize = 1;
0098 EImplicitMT fUseImplicitMT = EImplicitMT::kDefault;
0099 bool fEnableMetrics = false;
0100
0101 public:
0102 EClusterCache GetClusterCache() const { return fClusterCache; }
0103 void SetClusterCache(EClusterCache val) { fClusterCache = val; }
0104
0105 EImplicitMT GetUseImplicitMT() const { return fUseImplicitMT; }
0106 void SetUseImplicitMT(EImplicitMT val) { fUseImplicitMT = val; }
0107
0108 bool GetEnableMetrics() const { return fEnableMetrics; }
0109 void SetEnableMetrics(bool val) { fEnableMetrics = val; }
0110 };
0111
0112 namespace Internal {
0113
0114 inline unsigned int RNTupleReadOptionsManip::GetClusterBunchSize(const RNTupleReadOptions &options)
0115 {
0116 return options.fClusterBunchSize;
0117 }
0118
0119 inline void RNTupleReadOptionsManip::SetClusterBunchSize(RNTupleReadOptions &options, unsigned int val)
0120 {
0121 options.fClusterBunchSize = val;
0122 }
0123
0124 }
0125 }
0126
0127 #endif