Skip to content

Commit

Permalink
scouting egamma matrix size corresponds to size of matrix returned by…
Browse files Browse the repository at this point in the history
… matrixDetId
  • Loading branch information
jsalfeld committed Nov 24, 2020
1 parent b94a3f6 commit 16d8138
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ void HLTScoutingEgammaProducer::produce(edm::StreamID sid, edm::Event& iEvent, e

std::vector<DetId> mDetIds = EcalClusterTools::matrixDetId((topology), (*SCseed).seed(), rechitMatrixSize);

int size = pow(2 * rechitMatrixSize + 1, 2);
int detSize = mDetIds.size();
std::vector<float> mEnergies(size, 0.);
std::vector<float> mTimes(size, 0.);
std::vector<float> mEnergies(detSize, 0.);
std::vector<float> mTimes(detSize, 0.);

for (int i = 0; i < detSize; i++) {
mEnergies[i] =
Expand Down

0 comments on commit 16d8138

Please sign in to comment.