9 #include "Compression.h"
22 : m_compSettings ( settings ),
23 m_level (
ROOT::CompressionSettings(
ROOT::kZLIB,1) )
27 if ( idx != std::string::npos )
31 ROOT::ECompressionAlgorithm alg_code = ROOT::kUseGlobalSetting;
32 if ( alg ==
"ZLIB" ) { alg_code = ROOT::kZLIB; }
33 else if ( alg ==
"LZMA" ) { alg_code = ROOT::kLZMA; }
36 throw std::runtime_error(
"ERROR: Unknown ROOT compression algorithm:"+alg);
41 const int ilev = std::stoi(slev);
44 m_level = ROOT::CompressionSettings(alg_code,ilev);
std::string m_compSettings
The compression settings string.
RootCompressionSettings(const std::string &settings)
Standard constructor.
int m_level
The cached ROOT compression level int.