Skip to content

Commit

Permalink
fix: "Immutable objects can only be added to subset collections" exce…
Browse files Browse the repository at this point in the history
…ption
  • Loading branch information
wdconinc committed May 23, 2024
1 parent f9677c2 commit 47d17d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JugReco/src/components/CalorimeterHitsMerger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class CalorimeterHitsMerger : public GaudiAlgorithm {
auto& outputs = *m_outputHitCollection.createAndPut();

// find the hits that belong to the same group (for merging)
std::unordered_map<long long, std::vector<edm4eic::CalorimeterHit>> merge_map;
std::unordered_map<long long, std::vector<edm4eic::MutableCalorimeterHit>> merge_map;
for (const auto& h : inputs) {
int64_t id = h.getCellID() & id_mask;
// use the reference field position
Expand Down

0 comments on commit 47d17d6

Please sign in to comment.