Use unique_ptr for the owned links of the CaloCluster.
-
Use unique_ptr for the owned links of the CaloCluster. Replace
m_cellLinks
andm_ownCellLinks
with aunique_ptr
as at the end the semantics seem the same. -
Be explicit on when only non-const and owned links can be returned i.e
getOwnCellLinks
. -
vs const cells links that can be either owned by the cluster or from a collection
getCellLinks
.
Edited by Christos Anastopoulos