8 const std::string& name,
9 const IInterface* parent) :
11 declareInterface<ILArHVFraction>(
this);
18 return StatusCode::SUCCESS;
31 unsigned numCellsHVaff=0;
34 if(cell->caloDDE()->is_tile())
continue;
35 HWIdentifier hwid=cabling->createSignalChannelID(cell->ID());
38 if (corr<=0. || corr>=100.)
continue;
41 energyHVaff+=fabs(cell->e());
46 return {energyHVaff,numCellsHVaff};
#define ATH_CHECK
Evaluate an expression and check for errors.
Data object for each calorimeter readout cell.
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
virtual const float & HVScaleCorr(const HWIdentifier &id) const =0
SG::ReadCondHandleKey< ILArHVScaleCorr > m_hvScaleKey
std::pair< double, unsigned > getLArHVFrac(const CaloClusterCellLink *cclc, const EventContext &ctx) const override
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
StatusCode initialize() override
Gaudi::Property< float > m_threshold
LArHVFraction(const std::string &type, const std::string &name, const IInterface *parent)