From 1be9f9dcae5b3c7e0aa2846f300f9bf201d34a98 Mon Sep 17 00:00:00 2001 From: Maximilian Emanuel Goblirsch-Kolb Date: Tue, 17 Mar 2026 16:24:17 +0100 Subject: [PATCH] fix missing GBL flush in MillePedeAlignmentAlgorithm::endLuminosityBlock --- .../plugins/MillePedeAlignmentAlgorithm.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeAlignmentAlgorithm.cc b/Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeAlignmentAlgorithm.cc index 5ffe0431cea6e..44326511e52b6 100644 --- a/Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeAlignmentAlgorithm.cc +++ b/Alignment/MillePedeAlignmentAlgorithm/plugins/MillePedeAlignmentAlgorithm.cc @@ -742,8 +742,11 @@ void MillePedeAlignmentAlgorithm::beginLuminosityBlock(const edm::EventSetup &) void MillePedeAlignmentAlgorithm::endLuminosityBlock(const edm::EventSetup &) { if (!runAtPCL_) return; - if (this->isMode(myMilleBit)) + if (this->isMode(myMilleBit)) { theMille->flushOutputFile(); + // GBL output has to be flushed also at end of LB - otherwise miss final LB of job. + theBinary.reset(); + } } //____________________________________________________