diff --git a/Validation/Geometry/src/MaterialBudgetHcal.cc b/Validation/Geometry/src/MaterialBudgetHcal.cc index e8cd451a221a8..757e7cde00cdc 100644 --- a/Validation/Geometry/src/MaterialBudgetHcal.cc +++ b/Validation/Geometry/src/MaterialBudgetHcal.cc @@ -16,6 +16,8 @@ #include "G4Track.hh" #include +#include + MaterialBudgetHcal::MaterialBudgetHcal(const edm::ParameterSet& p) { edm::ParameterSet m_p = p.getParameter("MaterialBudgetHcal"); @@ -25,11 +27,11 @@ MaterialBudgetHcal::MaterialBudgetHcal(const edm::ParameterSet& p) { edm::LogVerbatim("MaterialBudget") << "MaterialBudgetHcal initialized with rMax " << rMax_ << " mm and zMax " << zMax_ << " mm doHcal is set to " << doHcal; if (doHcal) { - theHistoHcal_.reset(new MaterialBudgetHcalHistos(m_p)); + theHistoHcal_ = std::make_unique(m_p); theHistoCastor_.reset(nullptr); } else { theHistoHcal_.reset(nullptr); - theHistoCastor_.reset(new MaterialBudgetCastorHistos(m_p)); + theHistoCastor_ = std::make_unique(m_p); } }