From 1a82e90ed8e26a7215ff0a71e8fd24970b2340db Mon Sep 17 00:00:00 2001 From: Izaak Date: Tue, 16 Mar 2021 09:35:49 +0100 Subject: [PATCH] Fix firstEntry bug The tree is already filtered just before writing, so `firstEntry>0` causes loss of events. See https://github.com/cms-nanoAOD/nanoAOD-tools/issues/269 --- python/postprocessing/framework/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/postprocessing/framework/output.py b/python/postprocessing/framework/output.py index 222f2ddbc8e..fd79d1daabc 100644 --- a/python/postprocessing/framework/output.py +++ b/python/postprocessing/framework/output.py @@ -173,7 +173,7 @@ def write(self): if self.outputbranchSelection: self.outputbranchSelection.selectBranches(self._tree) self._tree = self.tree().CopyTree('1', "", - self.maxEntries if self.maxEntries else ROOT.TVirtualTreePlayer.kMaxEntries, self.firstEntry) + self.maxEntries if self.maxEntries else ROOT.TVirtualTreePlayer.kMaxEntries, 0) OutputTree.write(self) for t in self._otherTrees.values():