diff --git a/Reconstruction/HeavyIonRec/HIJetRec/src/HISubtractedCellMakerTool.cxx b/Reconstruction/HeavyIonRec/HIJetRec/src/HISubtractedCellMakerTool.cxx index f0295bf5327716eab1da165e02799a0eae2bc51f..c9190e714e9e163956c3c89cca5ad5e2b4c403eb 100644 --- a/Reconstruction/HeavyIonRec/HIJetRec/src/HISubtractedCellMakerTool.cxx +++ b/Reconstruction/HeavyIonRec/HIJetRec/src/HISubtractedCellMakerTool.cxx @@ -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) {