41 msg(MSG::WARNING) <<
" no calo specified for correction. Will do nothing. " <<
endmsg;
42 return StatusCode::SUCCESS;
44 msg(MSG::ERROR) <<
" More than "
45 << nSubCalo <<
" calo specified. Must be wrong. Stop." <<
endmsg;
46 return StatusCode::FAILURE;
54 return StatusCode::FAILURE;
63 return StatusCode::SUCCESS;
69 const EventContext& ctx)
const
78 msg(MSG::WARNING) <<
"Failure from processOnCellIterators" <<
endmsg ;
82 for (std::vector<int>::const_iterator itrCalo=
m_caloNums.begin();itrCalo!=
m_caloNums.end();++itrCalo){
91 msg(MSG::WARNING) <<
" Attempt to apply correction but CaloCellContainer has not been filled for this calo : "
97 msg(MSG::WARNING) <<
"Failure from processOnCellIterators for calo "
98 <<
static_cast<int> (caloNum)
110 return StatusCode::SUCCESS ;
117 const EventContext& ctx)
const
125 for (itrCell=itrCellBeg;itrCell!=itrCellEnd;++itrCell) {
126 tool->MakeCorrection (*itrCell, ctx);
129 for (itrCell=itrCellBeg;itrCell!=itrCellEnd;++itrCell) {
131 tool->MakeCorrection (*itrCell, ctx);
136 return StatusCode::SUCCESS;
Container class for CaloCell.
CaloCellContainer::iterator beginCalo(CaloCell_ID::SUBCALO caloNum)
get non const iterators on cell of just one calo
bool hasCalo(const CaloCell_ID::SUBCALO caloNum) const
tell wether it has been filled with cells (maybe none) of a given calo
CaloCellContainer::iterator endCalo(CaloCell_ID::SUBCALO caloNum)
CaloCell_Base_ID::SUBCALO SUBCALO
DataModel_detail::iterator< DataVector > iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.