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

Merge branch 'master-MuidCaloEnergyTool' into 'master'

Add atomic to mutable counters of MuidCaloEnergyTool

See merge request atlas/athena!24243
parents 5258dae2 3ead1ca4
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
......@@ -25,6 +25,8 @@
#include "CaloEvent/CaloCellContainer.h"
#include "CaloConditions/CaloNoise.h"
#include <atomic>
//<<<<<< CLASS DECLARATIONS >>>>>>
class CaloCellContainer;
......@@ -108,12 +110,12 @@ private:
double m_sigmasAboveNoise; // The minimum sigmas above the noise tool rms
double m_sigmasAboveNoiseCore; // The minimum sigmas above the noise tool rms
mutable int m_totalCoreCellsEM;
mutable int m_totalCoreCellsHEC;
mutable int m_totalCoreCellsTile;
mutable int m_totalSelectedEM;
mutable int m_totalSelectedHEC;
mutable int m_totalSelectedTile;
mutable std::atomic_int m_totalCoreCellsEM;
mutable std::atomic_int m_totalCoreCellsHEC;
mutable std::atomic_int m_totalCoreCellsTile;
mutable std::atomic_int m_totalSelectedEM;
mutable std::atomic_int m_totalSelectedHEC;
mutable std::atomic_int m_totalSelectedTile;
};
} // end of namespace
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
//////////////////////////////////////////////////////////////////////////////
......@@ -28,6 +28,8 @@
#include "GaudiKernel/ToolHandle.h"
#include "MuidInterfaces/IMuidCaloEnergy.h"
#include <atomic>
//<<<<<< CLASS DECLARATIONS >>>>>>
namespace Rec
......@@ -104,9 +106,9 @@ private:
double m_minMuonPt; // minimum pt of the muon
// counters (for finalize)
mutable int m_countMean; //number of tracks using mean
mutable int m_countMeasurement; //number of tracks using measurement
mutable int m_countMop; //number of tracks using mop
mutable std::atomic_int m_countMean; //number of tracks using mean
mutable std::atomic_int m_countMeasurement; //number of tracks using measurement
mutable std::atomic_int m_countMop; //number of tracks using mop
};
} // end of namespace
......
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