Skip to content

Commit 9a52714

Browse files
committed
[io] fix type of RSnapshotOptions::fCompressionAlgorithm
1 parent 60dafbb commit 9a52714

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

root/io/io/TFile_RDFSnapshot.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ auto SetupRDF() {
1515
return tdf_1;
1616
}
1717

18-
auto SetupRDFOptions(ROOT::ECompressionAlgorithm alg, int level) {
18+
auto SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::EValues alg, int level) {
1919
ROOT::RDF::RSnapshotOptions options;
2020
options.fCompressionAlgorithm = alg;
2121
options.fCompressionLevel = level;
@@ -25,7 +25,7 @@ auto SetupRDFOptions(ROOT::ECompressionAlgorithm alg, int level) {
2525

2626
static void BM_TFile_RDFSnapshot_ZLIB(benchmark::State &state) {
2727
auto tdf = SetupRDF();
28-
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kZLIB, 1);
28+
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kZLIB, 1);
2929
for (auto _ : state) {
3030
//And we write out the dataset on disk
3131
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
@@ -36,7 +36,7 @@ BENCHMARK(BM_TFile_RDFSnapshot_ZLIB)->Unit(benchmark::kMicrosecond);
3636

3737
static void BM_TFile_RDFSnapshot_LZ4(benchmark::State &state) {
3838
auto tdf = SetupRDF();
39-
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kLZ4, 4);
39+
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kLZ4, 4);
4040
for (auto _ : state) {
4141
//And we write out the dataset on disk
4242
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
@@ -47,7 +47,7 @@ BENCHMARK(BM_TFile_RDFSnapshot_LZ4)->Unit(benchmark::kMicrosecond);
4747

4848
static void BM_TFile_RDFSnapshot_LZMA (benchmark::State &state) {
4949
auto tdf = SetupRDF();
50-
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kLZMA, 8);
50+
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kLZMA, 8);
5151
for (auto _ : state) {
5252
//And we write out the dataset on disk
5353
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
@@ -57,7 +57,7 @@ BENCHMARK(BM_TFile_RDFSnapshot_LZMA)->Unit(benchmark::kMicrosecond);
5757

5858
static void BM_TFile_RDFSnapshot_ZSTD (benchmark::State &state) {
5959
auto tdf = SetupRDF();
60-
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kZSTD, 6);
60+
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kZSTD, 6);
6161
for (auto _ : state) {
6262
//And we write out the dataset on disk
6363
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);

0 commit comments

Comments
 (0)