17#include "CaloDetDescr/CaloDetDescrElement.h"
20#include "CoralBase/Blob.h"
34 const std::string&
type,
35 const std::string& name,
36 const IInterface* parent)
38 declareInterface<ICaloCellMakerTool>(
this);
46 ATH_MSG_INFO(
" in CaloCellPedestalCorr::initialize() " );
57 return StatusCode::SUCCESS;
67 pedShifts=*pedShiftHdl;
73 bcidavgshift=&(*bcidavgshiftHdl);
78 for (
CaloCell* theCell : *theCellContainer) {
86 pedestal = pedShifts->
pedShift(cellHash,dbGain);
93 theCell->addEnergy(-pedestal);
96 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
const ServiceHandle< StoreGateSvc > & detStore() const
float averageOflHash(const IdentifierHash h) const
Container class for CaloCell.
float pedShift(const IdentifierHash hash, const int gain) const
IdentifierHash m_larHashMax
SG::ReadHandleKey< CaloBCIDAverage > m_caloBCIDAvg
CaloCellPedestalCorr(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
const CaloCell_ID * m_cellId
Gaudi::Property< bool > m_isMC
virtual StatusCode initialize() override
SG::ReadCondHandleKey< CaloCellPedShift > m_pedShiftKey
Data object for each calorimeter readout cell.
static unsigned int getDbCaloGain(int caloGain)
Returns the non-negative gainId to be used with the COOL DB.
This is a "hash" representation of an Identifier.
bool test(const uint16_t prov, const LArProvenance check)