Skip to content
Snippets Groups Projects

Add atomic to mutable counters of MuonCaloTagTool

Merged Susumu Oda requested to merge oda/athena:master-MuonCaloTagTool into master
1 file
+ 5
4
Compare changes
  • Side-by-side
  • Inline
/*
/*
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
#ifndef MUONCOMBINEDBASETOOLS_MUONCALOTAGTOOL_H
@@ -32,6 +32,7 @@
@@ -32,6 +32,7 @@
#include "StoreGate/ReadHandleKey.h"
#include "StoreGate/ReadHandleKey.h"
// - STL
// - STL
 
#include <atomic>
#include <vector>
#include <vector>
@@ -75,9 +76,9 @@ namespace MuonCombined {
@@ -75,9 +76,9 @@ namespace MuonCombined {
SG::ReadHandleKey<CaloCellContainer> m_caloCellCont{this,"CaloCells","AllCalo","calo cell container"};
SG::ReadHandleKey<CaloCellContainer> m_caloCellCont{this,"CaloCells","AllCalo","calo cell container"};
// --- Internal cache ---
// --- Internal cache ---
mutable int m_nTrueMuons; //!< Counts the number true muons
mutable std::atomic_int m_nTrueMuons; //!< Counts the number true muons
mutable int m_nTracksTagged; //!< Counts the number of tracks tagged
mutable std::atomic_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_nMuonsTagged; //!< Counts the number of truth muons tagged
// --- Set up what to do and what not to do ---
// --- Set up what to do and what not to do ---
bool m_doCaloMuonTag; //!< run CaloMuonTag Tool
bool m_doCaloMuonTag; //!< run CaloMuonTag Tool
Loading