From 74e3488db9030dd1f78b11745a13545f4ec5cd94 Mon Sep 17 00:00:00 2001 From: Mircho Rodozov Date: Fri, 17 Jul 2020 17:35:10 +0200 Subject: [PATCH] clang checks --- Validation/Geometry/src/MaterialBudgetHcal.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } }