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(); + } } //____________________________________________________