diff --git a/LArCalorimeter/LArCalibUtils/src/LArOFCAlg.cxx b/LArCalorimeter/LArCalibUtils/src/LArOFCAlg.cxx index 23815d0c52fbe5c6e03f2d1ee16789b33437afa8..9ef9be59bfdfffd43e0b82a1f29bcbb29d1eb3d7 100644 --- a/LArCalorimeter/LArCalibUtils/src/LArOFCAlg.cxx +++ b/LArCalorimeter/LArCalibUtils/src/LArOFCAlg.cxx @@ -1,7 +1,7 @@ //Dear emacs, this is -*- c++ -*- /* - Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ // LArOFC: Algorithm to calculate optimal filtering constants. @@ -354,6 +354,11 @@ StatusCode LArOFCAlg::stop() if (nFailed) ATH_MSG_ERROR( "Number of channels * gains with failed OFC verification: " << nFailed ); + if ( m_dumpOFCfile.size()) { + ATH_MSG_INFO( "Dumping OFCs to file " << m_dumpOFCfile ) ; + larOFCComplete->dumpOFC(m_dumpOFCfile) ; + } + // record and symlink LArOFCComplete object LArOFCComplete* larOFCCompletePtr=larOFCComplete.get(); sc = detStore()->record(std::move(larOFCComplete),m_ofcKey); @@ -389,11 +394,6 @@ StatusCode LArOFCAlg::stop() ATH_MSG_INFO( "Symlink with ILArOFC done" ) ; } - if ( m_dumpOFCfile.size()) { - ATH_MSG_INFO( "Dumping OFCs to file " << m_dumpOFCfile ) ; - larOFCComplete->dumpOFC(m_dumpOFCfile) ; - } - if (larOFCBinComplete) { sc = detStore()->record(std::move(larOFCBinComplete),m_ofcBinKey); if (sc.isFailure()) {