Skip to content

Commit

Permalink
Merge pull request #43157 from iarspider-cmssw/patch-14
Browse files Browse the repository at this point in the history
Replace C-style array with std::array in HLTHPDFilter
  • Loading branch information
cmsbuild authored Nov 17, 2023
2 parents eacae5b + b5952af commit 3ff91d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HLTrigger/JetMET/src/HLTHPDFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include "HLTrigger/JetMET/interface/HLTHPDFilter.h"

#include <array>

#include <cmath>

#include <set>
Expand Down Expand Up @@ -104,7 +106,7 @@ bool HLTHPDFilter::filter(edm::Event& iEvent, const edm::EventSetup& iSetup) {
iEvent.getByToken(m_theRecHitCollectionToken, hbhe);

// collect energies
float hpdEnergy[4][73];
std::array<std::array<float, 73>, 4> hpdEnergy;
for (auto& i : hpdEnergy)
for (size_t j = 0; j < 73; ++j)
i[j] = 0;
Expand Down

0 comments on commit 3ff91d1

Please sign in to comment.