32 sc = m_weightTools.retrieve();
33 if ( !
sc.isSuccess() ) {
38 unsigned int ntool = m_weightTools.size();
40 for (
size_t itool = 0; itool < ntool; ++itool ) {
42 if(msgLvl(
MSG::DEBUG)) m_weightTools[itool]->print();
46 ATH_MSG_ERROR(
"The received tool is not an WeightToolBase?!?" );
47 return StatusCode::FAILURE;
50 std::string toolName = m_weightTools[itool]->name();
51 if(toolName.starts_with (
"ToolSvc.")) toolName.replace(0,8,
"");
52 CutIdentifier cID = cutFlowSvc()->registerTopFilter( toolName,
54 xAOD::CutBookkeeper::CutLogic::ALLEVENTSPROCESSED,
57 m_cutIDs.push_back(cID);
60 return StatusCode::SUCCESS;
77 return StatusCode::SUCCESS;
84 return StatusCode::SUCCESS;