|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "CaloDetDescr/CaloDetDescrElement.h"
20 #include "CoralBase/Blob.h"
32 const std::string&
type,
33 const std::string&
name,
36 declareInterface<ICaloCellMakerTool>(
this);
44 ATH_MSG_INFO(
" in CaloCellPedestalCorr::initialize() " );
52 return StatusCode::SUCCESS;
62 pedShifts=*pedShiftHdl;
68 bcidavgshift=&(*bcidavgshiftHdl);
73 for (
CaloCell* theCell : *theCellContainer) {
85 theCell->addEnergy(-pedestal);
88 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
const std::string & key() const
Return the StoreGate ID for the referenced object.
float averageOflHash(const IdentifierHash h) const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Gaudi::Property< bool > m_isMC
::StatusCode StatusCode
StatusCode definition for legacy code.
const CaloCell_ID * m_cellId
CaloCellPedestalCorr(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
StatusCode initialize(bool used=true)
Container class for CaloCell.
static unsigned int getDbCaloGain(int caloGain)
Returns the non-negative gainId to be used with the COOL DB.
virtual StatusCode initialize() override
Data object for each calorimeter readout cell.
SG::ReadCondHandleKey< CaloCellPedShift > m_pedShiftKey
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
float pedShift(const IdentifierHash hash, const int gain) const
SG::ReadHandleKey< CaloBCIDAverage > m_caloBCIDAvg