#include <CaloCellContainerCorrectorTool.h>
◆ CellCorrectionToolIterator
◆ CaloCellContainerCorrectorTool()
CaloCellContainerCorrectorTool::CaloCellContainerCorrectorTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ initialize()
StatusCode CaloCellContainerCorrectorTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 49 of file CaloCellContainerCorrectorTool.cxx.
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;
◆ process()
StatusCode CaloCellContainerCorrectorTool::process |
( |
CaloCellContainer * |
theCellContainer, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Definition at line 89 of file CaloCellContainerCorrectorTool.cxx.
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 ;
◆ processOnCellIterators()
Definition at line 136 of file CaloCellContainerCorrectorTool.cxx.
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;
◆ m_caloNums
std::vector<int> CaloCellContainerCorrectorTool::m_caloNums |
|
private |
◆ m_caloSelection
bool CaloCellContainerCorrectorTool::m_caloSelection |
|
private |
◆ m_cellCorrectionTools
The documentation for this class was generated from the following files: