diff --git a/Framework/Core/src/StepTHn.cxx b/Framework/Core/src/StepTHn.cxx index a091c304f425a..8463fc233492a 100644 --- a/Framework/Core/src/StepTHn.cxx +++ b/Framework/Core/src/StepTHn.cxx @@ -327,6 +327,8 @@ void StepTHn::createTarget(Int_t step, Bool_t sparse) } THnBase* target = mTarget[step]; + if (mSumw2[step]) + target->Sumw2(); Int_t* binIdx = new Int_t[mNVars]; Int_t* nBins = new Int_t[mNVars];