From 51236e2d60c8fc5c2db793b351953cf6f5b8f622 Mon Sep 17 00:00:00 2001 From: wmtan Date: Tue, 20 Oct 2015 22:52:16 +0200 Subject: [PATCH] Use macros to avoid compilation warnings --- DataFormats/PatCandidates/interface/PackedCandidate.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DataFormats/PatCandidates/interface/PackedCandidate.h b/DataFormats/PatCandidates/interface/PackedCandidate.h index 03f28c04962d1..38801e0628eec 100644 --- a/DataFormats/PatCandidates/interface/PackedCandidate.h +++ b/DataFormats/PatCandidates/interface/PackedCandidate.h @@ -9,6 +9,8 @@ #include "DataFormats/VertexReco/interface/VertexFwd.h" #include "DataFormats/VertexReco/interface/Vertex.h" #include "DataFormats/Math/interface/deltaPhi.h" +#include "FWCore/Utilities/interface/thread_safety_macros.h" + /* #include "DataFormats/Math/interface/PtEtaPhiMass.h" */ //forward declare testing structure @@ -585,7 +587,7 @@ namespace pat { mutable std::atomic p4c_; /// vertex position mutable std::atomic vertex_; - [[cms::thread_guard("vertex_")]] mutable float dxy_, dz_, dphi_; + CMS_THREAD_GUARD(vertex_) mutable float dxy_, dz_, dphi_; /// reco::Track mutable std::atomic track_; /// PDG identifier @@ -596,7 +598,7 @@ namespace pat { reco::VertexRef::key_type pvRefKey_; /// IP covariance - [[cms::thread_guard("vertex_")]] mutable float dxydxy_, dzdz_, dxydz_,dlambdadz_,dphidxy_,dptdpt_,detadeta_,dphidphi_; + CMS_THREAD_GUARD(vertex_) mutable float dxydxy_, dzdz_, dxydz_,dlambdadz_,dphidxy_,dptdpt_,detadeta_,dphidphi_; uint8_t packedHits_; /// track quality information uint8_t normalizedChi2_;