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 22, 2024
1 parent 741dbcc commit f014396
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions JugReco/src/components/CalorimeterHitsMerger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,18 @@ class CalorimeterHitsMerger : public GaudiAlgorithm {
pos.x(), pos.y(), pos.z()
);

outputs.push_back(
edm4eic::CalorimeterHit{href.getCellID(),
energy,
energyError,
time,
timeError,
position,
href.getDimension(),
href.getSector(),
href.getLayer(),
local}); // Can do better here? Right now position is mapped on the central hit
outputs.create(
href.getCellID(),
energy,
energyError,
time,
timeError,
position,
href.getDimension(),
href.getSector(),
href.getLayer(),
local
); // Can do better here? Right now position is mapped on the central hit
}

if (msgLevel(MSG::DEBUG)) {
Expand Down

0 comments on commit f014396

Please sign in to comment.