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

Merge branch 'const62.HIJetRec-20190731' into 'master'

HIJetRec: const workaround.

See merge request atlas/athena!25250
parents 97c89537 979060f7
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,13 @@ StatusCode HISubtractedCellMakerTool::process (CaloCellContainer* theCells,
return StatusCode::SUCCESS;
}
CHECK(m_modulator_tool->retrieveShape());
// FIXME: m_modulator_tool->retrieveShape() is non-const.
// It should be made const in order to be able to safely call it from here.
// However, this method already needs updating to work in MT (and is checked
// above), so just use a const_cast for now to allow this to compile
// when ToolHandle restrictions are enabled.
IHIUEModulatorTool* modtool_nc = const_cast<IHIUEModulatorTool*> (m_modulator_tool.get());
CHECK(modtool_nc->retrieveShape());
for(auto pCell : *theCells)
{
......
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