File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
NanoAODTools/python/postprocessing/framework Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,13 @@ namespace edm {
125125 }
126126
127127 if (om_->compressionAlgorithm () == std::string (" ZLIB" )) {
128- filePtr_->SetCompressionAlgorithm (ROOT::kZLIB );
128+ filePtr_->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kZLIB );
129129 } else if (om_->compressionAlgorithm () == std::string (" LZMA" )) {
130- filePtr_->SetCompressionAlgorithm (ROOT::kLZMA );
130+ filePtr_->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kLZMA );
131131 } else if (om_->compressionAlgorithm () == std::string (" ZSTD" )) {
132- filePtr_->SetCompressionAlgorithm (ROOT::kZSTD );
132+ filePtr_->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kZSTD );
133133 } else if (om_->compressionAlgorithm () == std::string (" LZ4" )) {
134- filePtr_->SetCompressionAlgorithm (ROOT::kLZ4 );
134+ filePtr_->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kLZ4 );
135135 } else {
136136 throw Exception (errors::Configuration)
137137 << " PoolOutputModule configured with unknown compression algorithm '" << om_->compressionAlgorithm () << " '\n "
Original file line number Diff line number Diff line change @@ -299,13 +299,13 @@ void NanoAODOutputModule::openFile(edm::FileBlock const&) {
299299 std::vector<std::string>());
300300
301301 if (m_compressionAlgorithm == std::string (" ZLIB" )) {
302- m_file->SetCompressionAlgorithm (ROOT::kZLIB );
302+ m_file->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kZLIB );
303303 } else if (m_compressionAlgorithm == std::string (" LZMA" )) {
304- m_file->SetCompressionAlgorithm (ROOT::kLZMA );
304+ m_file->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kLZMA );
305305 } else if (m_compressionAlgorithm == std::string (" ZSTD" )) {
306- m_file->SetCompressionAlgorithm (ROOT::kZSTD );
306+ m_file->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kZSTD );
307307 } else if (m_compressionAlgorithm == std::string (" LZ4" )) {
308- m_file->SetCompressionAlgorithm (ROOT::kLZ4 );
308+ m_file->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kLZ4 );
309309 } else {
310310 throw cms::Exception (" Configuration" )
311311 << " NanoAODOutputModule configured with unknown compression algorithm '" << m_compressionAlgorithm << " '\n "
Original file line number Diff line number Diff line change @@ -161,9 +161,9 @@ void NanoAODRNTupleOutputModule::openFile(edm::FileBlock const&) {
161161 std::vector<std::string>());
162162
163163 if (m_compressionAlgorithm == " ZLIB" ) {
164- m_file->SetCompressionAlgorithm (ROOT::kZLIB );
164+ m_file->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kZLIB );
165165 } else if (m_compressionAlgorithm == " LZMA" ) {
166- m_file->SetCompressionAlgorithm (ROOT::kLZMA );
166+ m_file->SetCompressionAlgorithm (ROOT::RCompressionSetting::EAlgorithm:: kLZMA );
167167 } else {
168168 throw cms::Exception (" Configuration" )
169169 << " NanoAODOutputModule configured with unknown compression algorithm '" << m_compressionAlgorithm << " '\n "
Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ def run(self):
105105 (algo , level ) = self .compression .split (":" )
106106 compressionLevel = int (level )
107107 if algo == "LZMA" :
108- compressionAlgo = ROOT .ROOT .kLZMA
108+ compressionAlgo = ROOT .RCompressionSetting . EAlgorithm .kLZMA
109109 elif algo == "ZLIB" :
110- compressionAlgo = ROOT .ROOT .kZLIB
110+ compressionAlgo = ROOT .RCompressionSetting . EAlgorithm .kZLIB
111111 elif algo == "LZ4" :
112- compressionAlgo = ROOT .ROOT .kLZ4
112+ compressionAlgo = ROOT .RCompressionSetting . EAlgorithm .kLZ4
113113 else :
114114 raise RuntimeError ("Unsupported compression %s" % algo )
115115 else :
You can’t perform that action at this time.
0 commit comments