Skip to content
Snippets Groups Projects
Commit 95bcac0c authored by Walter Lampl's avatar Walter Lampl
Browse files

Add depecation warning to legacy methods of CaloClusterStoreHelper

Former-commit-id: 68a0f68d
parent 3ac15034
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ xAOD::CaloCluster* CaloClusterStoreHelper::makeCluster(xAOD::CaloClusterContaine
xAOD::CaloClusterContainer* CaloClusterStoreHelper::makeContainer(StoreGateSvc* pStoreGate,
const std::string& clusCollKey,
MsgStream& msg) {
msg << MSG::WARNING << "CaloClusterStoreHelper::makeContainer(StoreGateSvc* pStoreGate, ...) is deprecated. Use DataHandles!" << endmsg;
// Create the xAOD container and its auxiliary store:
xAOD::CaloClusterContainer* clusColl = new xAOD::CaloClusterContainer();
if (pStoreGate->overwrite(clusColl, clusCollKey).isFailure()) {
......@@ -76,6 +77,8 @@ StatusCode CaloClusterStoreHelper::finalizeClusters(StoreGateSvc* pStoreGate,
const std::string& clusCollKey,
MsgStream& msg)
{
msg << MSG::WARNING << "CaloClusterStoreHelper::finalizeClusters(StoreGateSvc* pStoreGate, ...) is deprecated. Use DataHandles!" << endmsg;
CaloClusterCellLinkContainer* cellLinks= new CaloClusterCellLinkContainer();
if(pStoreGate->overwrite(cellLinks, clusCollKey + "_links").isFailure()) {
msg << MSG::ERROR << "Failed to record CaloClusterCellLinkContainer with key " << clusCollKey + "Links" << endmsg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment