#include <CaloCellContainerCorrectorTool.h>
◆ initialize()
| StatusCode CaloCellContainerCorrectorTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 28 of file CaloCellContainerCorrectorTool.cxx.
28 {
29
30
34 }
35
37
38
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;
50 } else {
54 return StatusCode::FAILURE;
55 } else {
57 }
58 }
59 }
60
61
63 return StatusCode::SUCCESS;
64
65}
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ process()
| StatusCode CaloCellContainerCorrectorTool::process |
( |
CaloCellContainer * | theCellContainer, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 68 of file CaloCellContainerCorrectorTool.cxx.
70{
72
75
78 msg(MSG::WARNING) <<
"Failure from processOnCellIterators" <<
endmsg ;
79 }else {
80
81
82 for (std::vector<int>::const_iterator itrCalo=
m_caloNums.begin();itrCalo!=
m_caloNums.end();++itrCalo){
83
85
88
89 if (!theCont->hasCalo(caloNum))
90 {
91 msg(MSG::WARNING) <<
" Attempt to apply correction but CaloCellContainer has not been filled for this calo : "
93 } else
94 {
97 msg(MSG::WARNING) <<
"Failure from processOnCellIterators for calo "
98 << static_cast<int> (caloNum)
100
101 }
102
103
104 }
105
106 }
107
108
109
110 return StatusCode::SUCCESS ;
111}
CaloCell_Base_ID::SUBCALO SUBCALO
DataModel_detail::iterator< DataVector > iterator
◆ processOnCellIterators()
Definition at line 115 of file CaloCellContainerCorrectorTool.cxx.
118{
119
121
122
125 for (itrCell=itrCellBeg;itrCell!=itrCellEnd;++itrCell) {
126 tool->MakeCorrection (*itrCell, ctx);
127 }
128 }else {
129 for (itrCell=itrCellBeg;itrCell!=itrCellEnd;++itrCell) {
131 tool->MakeCorrection (*itrCell, ctx);
132 }
133 }
134 }
135
136 return StatusCode::SUCCESS;
137}
◆ m_caloNums
| Gaudi::Property<std::vector<int> > CaloCellContainerCorrectorTool::m_caloNums {this,"CaloNums",{1,static_cast<int>(CaloCell_ID::NSUBCALO)} } |
|
private |
◆ m_caloSelection
| bool CaloCellContainerCorrectorTool::m_caloSelection =false |
|
private |
◆ m_cellCorrectionTools
| ToolHandleArray<CaloCellCorrection> CaloCellContainerCorrectorTool::m_cellCorrectionTools {this,"CellCorrectionToolNames",{}} |
|
private |
The documentation for this class was generated from the following files: