Skip to content
Snippets Groups Projects
Commit a1f91491 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'nomt.HIJetRec-20190118' into 'master'

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

See merge request atlas/athena!20437
parents ffd91dcd bf7b3a2d
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" #include "HISubtractedCellMakerTool.h"
...@@ -30,6 +30,12 @@ StatusCode HISubtractedCellMakerTool::initialize() ...@@ -30,6 +30,12 @@ StatusCode HISubtractedCellMakerTool::initialize()
StatusCode HISubtractedCellMakerTool::process(CaloCellContainer* theCells) 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; const xAOD::HIEventShapeContainer* shape=0;
CHECK(evtStore()->retrieve(shape,m_event_shape_key)); CHECK(evtStore()->retrieve(shape,m_event_shape_key));
const HIEventShapeIndex* index=HIEventShapeMap::getIndex(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