From b43a787783a0b58fb75d55d542567b74c94d5616 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Tue, 12 Nov 2013 14:21:23 -0600 Subject: [PATCH] make static into member data --- RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h | 1 + RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h b/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h index 792a68423c350..7947ed202d12c 100644 --- a/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h +++ b/RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h @@ -106,6 +106,7 @@ 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 31089fbc9a91b..0ec3891bf5dbe 100644 --- a/RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc +++ b/RecoVertex/KalmanVertexFit/src/SimpleVertexTree.cc @@ -172,7 +172,6 @@ void SimpleVertexTree::fill() // // fill entry // - static int nFill(0); vertexTree->GetDirectory()->cd(); vertexTree->Fill(); if ( (++nFill)%1000==0 ) vertexTree->AutoSave();