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

Merge branch 'cppcheck.xAODJiveXML-20241209' into 'main'

xAODJiveXML: Fix cppcheck warning.

See merge request !76510
parents acc8b63c b856616f
No related branches found
No related tags found
6 merge requests!77731Draft: Updates to ZDC reconstruction,!77728Draft: updates to ZDC reconstruction,!77522Draft: sTGC Pad Trigger Emulator,!76725ZdcNtuple: Fix cppcheck warning.,!76611L1CaloFEXByteStream: Fix out-of-bounds array accesses.,!76510xAODJiveXML: Fix cppcheck warning.
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#include "xAODJiveXML/xAODJetRetriever.h"
......@@ -135,7 +135,7 @@ namespace JiveXML {
* Retrieve basic parameters, mainly four-vectors, for each collection.
* Also association with clusters and tracks (ElementLink).
*/
const DataMap xAODJetRetriever::getData(const xAOD::JetContainer* jetCont, std::string jetkey) {
const DataMap xAODJetRetriever::getData(const xAOD::JetContainer* jetCont, const std::string& jetkey) {
ATH_MSG_DEBUG( "in getData()" );
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef JIVEXML_XAODJETRETRIEVER_H
......@@ -42,7 +42,7 @@ namespace JiveXML{
/// Retrieve all the data
virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
const DataMap getData(const xAOD::JetContainer*, std::string jetkey);
const DataMap getData(const xAOD::JetContainer*, const std::string& jetkey);
/// Return the name of the data type
virtual std::string dataTypeName() const { return "Jet"; };
......
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