Skip to content

Commit

Permalink
fix pat::MET variations (uncertainties and flavors) reading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu committed Mar 2, 2015
1 parent 155b51f commit 65bcdca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DataFormats/PatCandidates/src/MET.cc
Expand Up @@ -43,7 +43,10 @@ PATObject<reco::MET>(iOther),
genMET_(iOther.genMET_),
caloMET_(iOther.caloMET_),
pfMET_(iOther.pfMET_),
uncorInfo_(nullptr)
uncorInfo_(nullptr),
uncertaintiesRaw_(iOther.uncertaintiesRaw_),
uncertaintiesType1_(iOther.uncertaintiesType1_),
uncertaintiesType1p2_(iOther.uncertaintiesType1p2_)
{
auto tmp = iOther.uncorInfo_.load(std::memory_order_acquire);
if(tmp != nullptr) {
Expand All @@ -63,6 +66,9 @@ MET& MET::operator=(MET const& iOther) {
genMET_ = iOther.genMET_;
caloMET_ =iOther.caloMET_;
pfMET_ =iOther.pfMET_;
uncertaintiesRaw_ =iOther.uncertaintiesRaw_;
uncertaintiesType1_ =iOther.uncertaintiesType1_;
uncertaintiesType1p2_ =iOther.uncertaintiesType1p2_;
auto tmp = iOther.uncorInfo_.load(std::memory_order_acquire);
if(tmp != nullptr) {
//Only thread-safe to read iOther.nCorrections_ if iOther.uncorInfo_ != nullptr
Expand Down

0 comments on commit 65bcdca

Please sign in to comment.