Skip to content
Snippets Groups Projects
Commit a88576e1 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'warn.MuonCondAlg-20241105' into 'main'

MuonCondAlg: Fix compilation warning.

See merge request atlas/athena!75606
parents f31501c0 ff2749c4
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONCONDALG_RPCCONDDBALG_H
......@@ -34,9 +34,9 @@ public:
private:
template <class WriteCont>
StatusCode addDependency(const EventContext& ctx,
const SG::ReadCondHandleKey<CondAttrListCollection>& key,
SG::WriteCondHandle<WriteCont>& writeHandle) const;
StatusCode addCondDependency(const EventContext& ctx,
const SG::ReadCondHandleKey<CondAttrListCollection>& key,
SG::WriteCondHandle<WriteCont>& writeHandle) const;
StatusCode loadMcElementStatus(const EventContext & ctx, RpcCondDbData& condData) const;
......
......@@ -20,9 +20,9 @@ StatusCode RpcCondDbAlg::initialize() {
}
template <class WriteCont>
StatusCode RpcCondDbAlg::addDependency(const EventContext& ctx,
const SG::ReadCondHandleKey<CondAttrListCollection>& key,
SG::WriteCondHandle<WriteCont>& writeHandle) const {
StatusCode RpcCondDbAlg::addCondDependency(const EventContext& ctx,
const SG::ReadCondHandleKey<CondAttrListCollection>& key,
SG::WriteCondHandle<WriteCont>& writeHandle) const {
if (key.empty()) {
return StatusCode::SUCCESS;
}
......@@ -45,7 +45,7 @@ StatusCode RpcCondDbAlg::execute(const EventContext& ctx) const {
return StatusCode::SUCCESS;
}
writeHandle.addDependency(IOVInfiniteRange::infiniteMixed());
ATH_CHECK(addDependency(ctx, m_readKey_folder_mc_deadElements, writeHandle));
ATH_CHECK(addCondDependency(ctx, m_readKey_folder_mc_deadElements, writeHandle));
std::unique_ptr<RpcCondDbData> writeCdo{std::make_unique<RpcCondDbData>()};
// data and MC
......
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