16 return StatusCode::SUCCESS;
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->scaleEnergy(hvcorr);
39 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Container class for CaloCell.
Data object for each calorimeter readout cell.
virtual const float & HVScaleCorr(const HWIdentifier &chid) const override final