Skip to content

Commit

Permalink
Keep cell relation in corrected clusters (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF authored Mar 28, 2023
1 parent b5b0d2b commit f8d3ad8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions RecCalorimeter/src/components/CorrectCaloClusters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,12 @@ edm4hep::ClusterCollection* CorrectCaloClusters::initializeOutputClusters(
edm4hep::ClusterCollection* outClusters = m_outClusters.createAndPut();

for (auto const& inCluster: *inClusters) {
auto outCluster = outClusters->create();

outCluster.setPosition(inCluster.getPosition());
auto outCluster = inCluster.clone();
verbose() << "Cluster position:" << endmsg;
verbose() << " x: " << outCluster.position().x << endmsg;
verbose() << " y: " << outCluster.position().y << endmsg;
verbose() << " z: " << outCluster.position().z << endmsg;
outCluster.setEnergy(inCluster.getEnergy());
outClusters->push_back(outCluster);
}

return outClusters;
Expand Down

0 comments on commit f8d3ad8

Please sign in to comment.