|
32 | 32 | #include "ROOT/RResultPtr.hxx"
|
33 | 33 | #include "ROOT/RSnapshotOptions.hxx"
|
34 | 34 | #include <string_view>
|
| 35 | +#include "ROOT/RLogger.hxx" |
35 | 36 | #include "ROOT/RVec.hxx"
|
36 | 37 | #include "ROOT/TypeTraits.hxx"
|
37 | 38 | #include "RtypesCore.h" // for ULong64_t
|
|
44 | 45 | #include "TProfile2D.h"
|
45 | 46 | #include "TStatistic.h"
|
46 | 47 |
|
| 48 | +#include "ROOT/RVersion.hxx" |
| 49 | + |
47 | 50 | #include <algorithm>
|
48 | 51 | #include <cstddef>
|
| 52 | +#include <cstdlib> |
| 53 | +#include <cstring> |
49 | 54 | #include <initializer_list>
|
50 | 55 | #include <iterator> // std::back_insterter
|
51 | 56 | #include <limits>
|
@@ -1331,6 +1336,22 @@ public:
|
1331 | 1336 | const ColumnNames_t &columnList,
|
1332 | 1337 | const RSnapshotOptions &options = RSnapshotOptions())
|
1333 | 1338 | {
|
| 1339 | + // TODO: Remove before releasing 6.40.00 |
| 1340 | +#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 40, 0) |
| 1341 | + static_assert(false && "Remove information about change of Snapshot defaut compression settings."); |
| 1342 | +#endif |
| 1343 | + [[maybe_unused]] static bool once = []() { |
| 1344 | + if (const char *suppress = std::getenv("ROOT_RDF_SILENCE_SNAPSHOT_INFO")) |
| 1345 | + if (std::strcmp(suppress, "1") == 0) |
| 1346 | + return true; |
| 1347 | + RLogScopedVerbosity showInfo{ROOT::Detail::RDF::RDFLogChannel(), ROOT::ELogLevel::kInfo}; |
| 1348 | + R__LOG_INFO(ROOT::Detail::RDF::RDFLogChannel()) |
| 1349 | + << "In ROOT 6.38, the default compression settings of Snapshot have been changed from 101 (ZLIB with " |
| 1350 | + "compression level 1, the TTree default) to 505 (ZSTD with compression level 5). This change may result " |
| 1351 | + "in smaller Snapshot output dataset size by default. In order to suppress this message, set " |
| 1352 | + "ROOT_RDF_SILENCE_SNAPSHOT_INFO=1 in your environment."; |
| 1353 | + return true; |
| 1354 | + }(); |
1334 | 1355 | // like columnList but with `#var` columns removed
|
1335 | 1356 | auto colListNoPoundSizes = RDFInternal::FilterArraySizeColNames(columnList, "Snapshot");
|
1336 | 1357 | // like columnListWithoutSizeColumns but with aliases resolved
|
|
0 commit comments