Skip to content

Commit

Permalink
Merge pull request #30793 from cms-sw/apply-new-ct-checks-for-dqm-geo…
Browse files Browse the repository at this point in the history
…metry

[Clang tidy] Apply checks for dqm-geometry
  • Loading branch information
cmsbuild authored Jul 21, 2020
2 parents 339e5db + 29839a5 commit 19cfe7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Validation/Geometry/src/MaterialBudgetHcal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "G4Track.hh"

#include <iostream>
#include <memory>

MaterialBudgetHcal::MaterialBudgetHcal(const edm::ParameterSet& p) {
edm::ParameterSet m_p = p.getParameter<edm::ParameterSet>("MaterialBudgetHcal");
Expand All @@ -25,11 +26,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<MaterialBudgetHcalHistos>(m_p);
theHistoCastor_.reset(nullptr);
} else {
theHistoHcal_.reset(nullptr);
theHistoCastor_.reset(new MaterialBudgetCastorHistos(m_p));
theHistoCastor_ = std::make_unique<MaterialBudgetCastorHistos>(m_p);
}
}

Expand Down

0 comments on commit 19cfe7e

Please sign in to comment.