|
ATLAS Offline Software
|
Go to the documentation of this file.
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)) {
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;
def retrieve(aClass, aKey=None)
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
virtual StatusCode initialize() override
initialize the tool
virtual void setTime(float time)
set time
const std::string & name() const
Return the StoreGate ID for the referenced object.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
virtual double e() const override final
get energy (data member) (synonym to method energy()
virtual void setEnergy(float energy)
set energy
value_type get_compact() const
Get the compact id.
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
update theCellContainer
const CaloCell_ID * m_calo_id
virtual StatusCode finalize() override
finalize the tool
virtual void setQuality(uint16_t quality)
set quality
Liquid Argon ROD output object base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< LArRawChannelContainer > m_rawChannelContainerName
key for raw channel container to merge to cells
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
void setProvenance(uint16_t prov)
set Provenance
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode initialize(bool used=true)
Container class for CaloCell.
Identifier cell_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL,...
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
handle to LAr cabling
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
int findIndex(const IdentifierHash theHash) const
Return index of the cell with a given hash.
const T * at(size_type n) const
Access an element, as an rvalue.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type size() const noexcept
Returns the number of elements in the collection.
const LArOnlineID * m_onlineID