Skip to content

Commit

Permalink
Use macros to avoid compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wmtan committed Oct 20, 2015
1 parent 403e02a commit 51236e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DataFormats/PatCandidates/interface/PackedCandidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -585,7 +587,7 @@ namespace pat {
mutable std::atomic<LorentzVector*> p4c_;
/// vertex position
mutable std::atomic<Point*> vertex_;
[[cms::thread_guard("vertex_")]] mutable float dxy_, dz_, dphi_;
CMS_THREAD_GUARD(vertex_) mutable float dxy_, dz_, dphi_;
/// reco::Track
mutable std::atomic<reco::Track*> track_;
/// PDG identifier
Expand All @@ -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_;
Expand Down

0 comments on commit 51236e2

Please sign in to comment.