|
ATLAS Offline Software
|
Go to the documentation of this file.
28 const std::string&
type,
29 const std::string&
name,
32 m_cellCorrectionTools(this),
33 m_caloSelection(false) {
62 msg(MSG::WARNING) <<
" no calo specified for correction. Will do nothing. " <<
endmsg;
63 return StatusCode::SUCCESS;
65 msg(MSG::ERROR) <<
" More than "
66 << nSubCalo <<
" calo specified. Must be wrong. Stop." <<
endmsg;
67 return StatusCode::FAILURE;
75 return StatusCode::FAILURE;
84 return StatusCode::SUCCESS;
90 const EventContext& ctx)
const
99 msg(MSG::WARNING) <<
"Failure from processOnCellIterators" <<
endmsg ;
103 for (std::vector<int>::const_iterator itrCalo=
m_caloNums.begin();itrCalo!=
m_caloNums.end();++itrCalo){
110 if (!theCont->
hasCalo(caloNum))
112 msg(MSG::WARNING) <<
" Attempt to apply correction but CaloCellContainer has not been filled for this calo : "
118 msg(MSG::WARNING) <<
"Failure from processOnCellIterators for calo "
119 <<
static_cast<int> (caloNum)
131 return StatusCode::SUCCESS ;
138 const EventContext& ctx)
const
146 for (itrCell=itrCellBeg;itrCell!=itrCellEnd;++itrCell) {
147 tool->MakeCorrection (*itrCell, ctx);
150 for (itrCell=itrCellBeg;itrCell!=itrCellEnd;++itrCell) {
152 tool->MakeCorrection (*itrCell, ctx);
157 return StatusCode::SUCCESS;
CaloCellContainer::iterator endCalo(CaloCell_ID::SUBCALO caloNum)
(Non-const) Iterator class for DataVector/DataList.
::StatusCode StatusCode
StatusCode definition for legacy code.
SUBCALO
enumeration of sub calorimeters
Container class for CaloCell.
CaloCellContainer::iterator beginCalo(CaloCell_ID::SUBCALO caloNum)
get non const iterators on cell of just one calo
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
bool hasCalo(const CaloCell_ID::SUBCALO caloNum) const
tell wether it has been filled with cells (maybe none) of a given calo
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.