11 const std::string&
type,
12 const std::string& name,
13 const IInterface* parent)
24 return StatusCode::SUCCESS;
28 const EventContext& ctx,
34 if (!mapIdentifierToCalibHitsReadHandle.
isValid()) {
35 ATH_MSG_WARNING(
"Could not retrieve map between Identifier and calibraiton hits from Storegae");
36 return StatusCode::FAILURE;
40 std::vector<std::pair<unsigned int, double> > >
41 caloClusterWriteDecorHandleNLeadingTruthParticles(
46 std::vector<std::pair<unsigned int, double> > newTruthIDTruthPairs;
51 *mapIdentifierToCalibHitsReadHandle,
56 for (
const auto& thisPair : newTruthIDTruthPairs)
58 "Cluster Final loop: Particle with truthID " << thisPair.first
59 <<
" has truth energy of " << thisPair.second
60 <<
" for cluster with e, eta " << thisCaloCluster->e()
61 <<
" and " << thisCaloCluster->eta()
64 caloClusterWriteDecorHandleNLeadingTruthParticles(*thisCaloCluster) = std::move(newTruthIDTruthPairs);
67 return StatusCode::SUCCESS;
71 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for adding a decoration to an object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.