From 258cfddb520556a68c5a8e2e0761910f59e93313 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Tue, 12 Nov 2013 14:48:59 -0600 Subject: [PATCH] make nFill static std::atomic --- RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h | 1 - RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h b/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h index 7947ed202d12c..792a68423c350 100644 --- a/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h +++ b/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h @@ -106,7 +106,6 @@ class SimpleVertexTree { int maxTrack; TString* parameterNames[5]; TrackAssociatorByChi2 * associatorForParamAtPca; - std::atomic nFill{0}; }; #endif diff --git a/RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc b/RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc index 0ec3891bf5dbe..c3eceb53954c8 100644 --- a/RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc +++ b/RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc @@ -167,7 +167,7 @@ void SimpleVertexTree::fill(const TrackingVertex * simv) void SimpleVertexTree::fill() { ++numberOfVertices; - + static std::atomic nFill{0}; TDirectory* rootDir = gDirectory; // // fill entry