Skip to content

Commit c0970db

Browse files
authored
Update postprocessor.py
1 parent 2453221 commit c0970db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PhysicsTools/NanoAODTools/python/postprocessing/framework/postprocessor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)