21 const EventContext& ctx,
27 if (!mapIdentifierToCalibHitsReadHandle.
isValid()) {
28 ATH_MSG_WARNING(
"Could not retrieve map between Identifier and calibraiton hits from Storegae");
29 return StatusCode::FAILURE;
33 std::vector<std::pair<unsigned int, double> > >
34 caloClusterWriteDecorHandleNLeadingTruthParticles(
37 for (
const auto* thisCaloCluster : *caloClusterWriteDecorHandleNLeadingTruthParticles) {
39 std::vector<std::pair<unsigned int, double> > newTruthIDTruthPairs;
45 *mapIdentifierToCalibHitsReadHandle,
46 newTruthIDTruthPairs));
48 for (
const auto& thisPair : newTruthIDTruthPairs) {
50 "Cluster Final loop: Particle with truthID " << thisPair.first
51 <<
" has truth energy of " << thisPair.second
52 <<
" for cluster with e, eta " << thisCaloCluster->e()
53 <<
" and " << thisCaloCluster->eta());
56 caloClusterWriteDecorHandleNLeadingTruthParticles(*thisCaloCluster)
57 = std::move(newTruthIDTruthPairs);
60 return StatusCode::SUCCESS;