diff --git a/PhysicsTools/NanoAODTools/python/postprocessing/framework/postprocessor.py b/PhysicsTools/NanoAODTools/python/postprocessing/framework/postprocessor.py index 3fd0c0a55bd43..cd731e6812cce 100755 --- a/PhysicsTools/NanoAODTools/python/postprocessing/framework/postprocessor.py +++ b/PhysicsTools/NanoAODTools/python/postprocessing/framework/postprocessor.py @@ -105,11 +105,11 @@ def run(self): (algo, level) = self.compression.split(":") compressionLevel = int(level) if algo == "LZMA": - compressionAlgo = ROOT.ROOT.kLZMA + compressionAlgo = ROOT.RCompressionSetting.EAlgorithm.kLZMA elif algo == "ZLIB": - compressionAlgo = ROOT.ROOT.kZLIB + compressionAlgo = ROOT.RCompressionSetting.EAlgorithm.kZLIB elif algo == "LZ4": - compressionAlgo = ROOT.ROOT.kLZ4 + compressionAlgo = ROOT.RCompressionSetting.EAlgorithm.kLZ4 else: raise RuntimeError("Unsupported compression %s" % algo) else: