Skip to content
Snippets Groups Projects

Add atomic to mutable counters of TrackSelectionTool in InDetPhysValMonitoring

Merged Susumu Oda requested to merge oda/athena:master-TrackSelectionTool into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -10,6 +10,7 @@
#include "xAODTracking/TrackParticle.h"
#include "AsgTools/AsgTool.h"
#include <atomic>
class TrackSelectionTool:
public virtual ::IAsgSelectionTool,
@@ -28,8 +29,8 @@ public:
private:
asg::AcceptInfo m_accept;
std::vector<std::pair<std::string, std::string> > m_cuts;
mutable ULong64_t m_numProcessed; // !< a counter of the number of tracks proccessed
mutable ULong64_t m_numPassed; // !< a counter of the number of tracks that passed all cuts
mutable std::atomic<ULong64_t> m_numProcessed; // !< a counter of the number of tracks proccessed
mutable std::atomic<ULong64_t> m_numPassed; // !< a counter of the number of tracks that passed all cuts
mutable std::vector<ULong64_t> m_numPassedCuts; // !< tracks the number of tracks that passed each cut family
// Cut vales;
Loading