21#include "Identifier/Identifier.h"
41 return StatusCode::SUCCESS;
45 return StatusCode::SUCCESS;
49 const EventContext& ctx)
const
55 ATH_MSG_ERROR(
"Failed to retrieve LArRawChannelContainer with key " <<
57 return StatusCode::FAILURE;
71 if( cabling->isOnlineConnectedFromHash(onlHash)) {
72 const IdentifierHash theCellHashID= cabling->oflHashFromOnlHash(onlHash);
83 <<
" offlineid = " <<
id.get_identifier32().get_compact()
84 <<
" old energy " << aCell->
e() <<
" new energy " << theRawChannel.energy());
86 aCell->
setEnergy((
float)(theRawChannel.energy()));
87 aCell->
setTime((
float)(theRawChannel.time())*0.001);
95 if (nReplaced*5>theCont->
size()) {
96 ATH_MSG_WARNING(
"Replaced more than 20% of channels reco'ed online by channels reco'ed offline");
98 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Container class for CaloCell.
int findIndex(const IdentifierHash theHash) const
Return index of the cell with a given hash.
Data object for each calorimeter readout cell.
virtual double e() const override final
get energy (data member) (synonym to method energy()
virtual void setTime(float time)
set time
virtual void setEnergy(float energy)
set energy
void setQuality(uint16_t quality)
set quality
void setProvenance(uint16_t prov)
set Provenance
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
value_type get_compact() const
Get the compact id.
This is a "hash" representation of an Identifier.
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
handle to LAr cabling
virtual StatusCode initialize() override
initialize the tool
SG::ReadHandleKey< LArRawChannelContainer > m_rawChannelContainerName
key for raw channel container to merge to cells
const LArOnlineID * m_onlineID
const CaloCell_ID * m_calo_id
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
update theCellContainer
virtual StatusCode finalize() override
finalize the tool
Liquid Argon ROD output object base class.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const std::string & name() const
Return the StoreGate ID for the referenced object.