21#include "Identifier/Identifier.h"
34 const std::string&
type,
35 const std::string& name,
36 const IInterface* parent)
37 : base_class (
type, name, parent),
52 ATH_CHECK( detStore()->retrieve( caloIdMgr ) );
58 return StatusCode::SUCCESS;
64 return StatusCode::SUCCESS;
68 const EventContext& ctx)
const
77 std::vector<HWIdentifier>::const_iterator feb =
m_onlineID->feb_begin();
78 std::vector<HWIdentifier>::const_iterator feb_end =
m_onlineID->feb_end();
81 for ( ; feb != feb_end; ++feb) {
84 feb->get_identifier32().get_compact());
88 for (
int i=0;i<2;i++) {
97 return StatusCode::SUCCESS;
106 if (!cell1 || !cell2)
return;
111 if (cell1->
gain() == cell2->
gain())
return;
128 double eold = cell1->
energy();
138 if (cabling->isOnlineConnected(
id)) {
139 Identifier id_off = cabling->cnvToIdentifier(
id);
#define ATH_CHECK
Evaluate an expression and check for errors.
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.
double energy() const
get energy (data member)
void setGain(CaloGain::CaloGain gain=CaloGain::INVALIDGAIN)
set gain
virtual void setEnergy(float energy)
set energy
CaloGain::CaloGain gain() const
get gain (data member )
This class initializes the Calo (LAr and Tile) offline identifiers.
const CaloCell_ID * getCaloCell_ID(void) const
Access to IdHelper.
const T * at(size_type n) const
Access an element, as an rvalue.
This is a "hash" representation of an Identifier.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
handle to LAr cabling service
CaloCell * GetCell(CaloCellContainer *theCont, HWIdentifier id, const LArOnOffIdMapping *cabling) const
method to find cell from hardware id
void ApplyPathology(CaloCellContainer *theCont, HWIdentifier id1, HWIdentifier id, const LArOnOffIdMapping *cabling) const
method to apply pathology between a couple of cells
LArCellGainPathology(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
update theCellContainer, masking Feb with errors
virtual StatusCode initialize() override
initialize the tool
virtual StatusCode finalize() override
finalize the tool
const LArOnlineID * m_onlineID
const CaloCell_ID * m_calo_id
pointers to storegateSvc and identifier helpers