diff --git a/Modules/EMCAL/src/NumPatchesPerFastORCheck.cxx b/Modules/EMCAL/src/NumPatchesPerFastORCheck.cxx index 0ee7c4b761..c65ffa8259 100644 --- a/Modules/EMCAL/src/NumPatchesPerFastORCheck.cxx +++ b/Modules/EMCAL/src/NumPatchesPerFastORCheck.cxx @@ -169,8 +169,8 @@ Quality NumPatchesPerFastORCheck::check(std::mapmCounts, i->mFastORID, i->mPosGlobalPhi, i->mPosGlobalEta, i->mRejected }; - finalBadFastORs.push_back(final); + FastORNoiseLevel finalFastOR{ i->mCounts, i->mFastORID, i->mPosGlobalPhi, i->mPosGlobalEta, i->mRejected }; + finalBadFastORs.push_back(finalFastOR); } // Save the positions of the final Bad FastORs and display the error message @@ -212,8 +212,8 @@ Quality NumPatchesPerFastORCheck::check(std::mapmCounts, i->mFastORID, i->mPosGlobalPhi, i->mPosGlobalEta, i->mRejected }; - finalMedFastORs.push_back(final); + FastORNoiseLevel finalFastOR{ i->mCounts, i->mFastORID, i->mPosGlobalPhi, i->mPosGlobalEta, i->mRejected }; + finalMedFastORs.push_back(finalFastOR); } // Save the positions of the final Med FastORs and display the error message