Skip to content
Snippets Groups Projects
Commit bf7b3a2d authored by scott snyder's avatar scott snyder
Browse files

HIJetRec: Give an error if HISubtractedCellMaker is used in a MT job.

This is in preparation for making ICaloCellMakerTool::process const,
for use in MT.  This particular tool hasn't been converted to work
reentrantly, so give an error if someone attempts to do that.
parent 6dc6fe2d
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#include "HISubtractedCellMakerTool.h"
......@@ -30,6 +30,12 @@ StatusCode HISubtractedCellMakerTool::initialize()
StatusCode HISubtractedCellMakerTool::process(CaloCellContainer* theCells)
{
const EventContext& ctx = Gaudi::Hive::currentContext();
if (ctx.slot() > 1) {
ATH_MSG_ERROR("This tool hasn't been converted for MT.");
return StatusCode::FAILURE;
}
const xAOD::HIEventShapeContainer* shape=0;
CHECK(evtStore()->retrieve(shape,m_event_shape_key));
const HIEventShapeIndex* index=HIEventShapeMap::getIndex(m_event_shape_key);
......
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