Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarzocc committed Jan 11, 2020
1 parent c33cbb4 commit 510b5de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimDataFormats/CaloAnalysis/interface/SimCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ class SimCluster {

/** @brief Returns list of rechit IDs and energies for this SimCluster */
std::vector<std::pair<uint32_t, float>> hits_and_energies() const {
assert(hits_.size() == energies_.size());
std::vector<std::pair<uint32_t, float>> result;
result.reserve(hits_.size());
for (size_t i = 0; i < hits_.size(); ++i) {
result.emplace_back(hits_[i], energies_[i]);
}
assert(hits_.size() == energies_.size());
result.reserve(hits_.size());
return result;
}

Expand Down

0 comments on commit 510b5de

Please sign in to comment.