#include <LArCellContHVCorrTool.h>
Definition at line 18 of file LArCellContHVCorrTool.h.
◆ ~LArCellContHVCorrTool()
LArCellContHVCorrTool::~LArCellContHVCorrTool |
( |
| ) |
|
|
default |
◆ initialize()
StatusCode LArCellContHVCorrTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ process()
StatusCode LArCellContHVCorrTool::process |
( |
CaloCellContainer * |
cellCollection, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
finaloverridevirtual |
Definition at line 19 of file LArCellContHVCorrTool.cxx.
23 const LArHVCorr *oflHVCorr = *oflHVCorrHdl;
25 ATH_MSG_ERROR(
"Do not have ofline HV corr. conditions object !!!!");
26 return StatusCode::FAILURE;
29 if (!cellCollection) {
30 ATH_MSG_ERROR(
"Cell Correction tool receives invalid cell Collection" );
31 return StatusCode::FAILURE;
35 for (
CaloCell* theCell : *cellCollection) {
36 const float hvcorr = oflHVCorr->
HVScaleCorr(theCell->ID());
37 theCell->setEnergy(theCell->energy()*hvcorr);
39 return StatusCode::SUCCESS;
◆ m_offlineHVScaleCorrKey
SG::ReadCondHandleKey<LArHVCorr> LArCellContHVCorrTool::m_offlineHVScaleCorrKey {this, "keyOfflineHVCorr", "LArHVScaleCorrRecomputed","Key for LArHVScaleCorr"} |
|
private |
The documentation for this class was generated from the following files: