9 #include "Compression.h"
12 #include "boost/lexical_cast.hpp"
25 : m_compSettings ( settings ),
26 m_level (
ROOT::CompressionSettings(
ROOT::kZLIB,1) )
30 if ( idx != std::string::npos )
34 ROOT::ECompressionAlgorithm alg_code = ROOT::kUseGlobalSetting;
35 if ( alg ==
"ZLIB" ) { alg_code = ROOT::kZLIB; }
36 else if ( alg ==
"LZMA" ) { alg_code = ROOT::kLZMA; }
39 throw std::runtime_error(
"ERROR: Unknown ROOT compression algorithm:"+alg);
44 const int ilev = boost::lexical_cast<
int>(slev);
47 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.