Skip to content
Snippets Groups Projects
Commit 02f8967b authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'master-MuonCaloTagTool' into 'master'

Add atomic to mutable counters of MuonCaloTagTool

See merge request atlas/athena!24242
parents 611e2124 85067f53
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONCOMBINEDBASETOOLS_MUONCALOTAGTOOL_H
......@@ -32,6 +32,7 @@
#include "StoreGate/ReadHandleKey.h"
// - STL
#include <atomic>
#include <vector>
......@@ -75,9 +76,9 @@ namespace MuonCombined {
SG::ReadHandleKey<CaloCellContainer> m_caloCellCont{this,"CaloCells","AllCalo","calo cell container"};
// --- Internal cache ---
mutable int m_nTrueMuons; //!< Counts the number true muons
mutable int m_nTracksTagged; //!< Counts the number of tracks tagged
mutable int m_nMuonsTagged; //!< Counts the number of truth muons tagged
mutable std::atomic_int m_nTrueMuons; //!< Counts the number true muons
mutable std::atomic_int m_nTracksTagged; //!< Counts the number of tracks tagged
mutable std::atomic_int m_nMuonsTagged; //!< Counts the number of truth muons tagged
// --- Set up what to do and what not to do ---
bool m_doCaloMuonTag; //!< run CaloMuonTag Tool
......
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