Skip to content
Snippets Groups Projects
Commit 2e4e73ca authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'fix_lumikey' into 'master'

Fix lumi folder key init

See merge request atlas/athena!42170
parents a18364e1 88eed776
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
#include "CaloNoiseCondAlg.h"
......@@ -36,10 +36,9 @@ StatusCode CaloNoiseCondAlg::initialize() {
ATH_CHECK( m_hvCorrKey.initialize(m_useHVCorr) );
if (m_lumi0<0) {
if (m_lumiFolderKey.initialize().isFailure()) {
const bool doLumiFolderInit = m_lumi0 < 0;
if (m_lumiFolderKey.initialize(doLumiFolderInit).isFailure()) {
ATH_MSG_ERROR("Luminosity set to < 0 but failed to initialize LumiFolder");
}
}
ATH_CHECK( m_cablingKey.initialize() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment