20#include "Identifier/Identifier.h"
27#include "GaudiKernel/ThreadLocalContext.h"
69 return StatusCode::SUCCESS;
75 ATH_MSG_INFO (
" ---- Summary from LArBadFebMaskingTool ");
80 ATH_MSG_INFO (
" Number of masked Feb per event " << ratio);
82 return StatusCode::SUCCESS;
86 const EventContext& ctx)
const
90 const std::map<unsigned int,uint16_t>* febMap = &
m_dummyFebMap;
94 if (!larFebErrorSummary.
isValid()) {
96 return StatusCode::SUCCESS;
100 febMap = &larFebErrorSummary->get_all_febs();
128 bool toMask1 =
false;
129 bool inError =
false;
132 unsigned int ifeb = febId.get_identifier32().get_compact();
135 std::map<unsigned int,uint16_t>::const_iterator it1 = febMap->find(ifeb);
136 if (it1 != febMap->end()) {
137 uint16_t ierror = (*it1).second;
139 ATH_MSG_DEBUG (
" ierror,toMask " << ierror <<
" " << toMask1 <<
" ");
146 if (toMask1 || inError) {
148 const int nChanPerFeb=
m_onlineID->channelInSlotMax(febId);
149 for (
int ch=0; ch<nChanPerFeb; ++ch) {
151 if (cabling->isOnlineConnected(hwid)) {
152 Identifier id = cabling->cnvToIdentifier( hwid);
178 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
LArBadXCont< LArBadFeb > LArBadFebCont
Handle class for adding a decoration to an object.
Container class for CaloCell.
int findIndex(const IdentifierHash theHash) const
Return index of the cell with a given hash.
int nCellsCalo(const CaloCell_ID::SUBCALO caloNum) const
get number of cels of given calorimeter
Data object for each calorimeter readout cell.
virtual void setTime(float time)
set time
uint16_t provenance() const
get provenance (data member)
virtual void setEnergy(float energy)
set energy
void setQuality(uint16_t quality)
set quality
void setProvenance(uint16_t prov)
set Provenance
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
const T * at(size_type n) const
Access an element, as an rvalue.
This is a "hash" representation of an Identifier.
value_type get_compact() const
Get the compact id.
bool deadAll() const
FEB is completely missing, e.g. powered off.
bool inError() const
FEB has readout errors, cannot be used.
LArBC_t status(const HWIdentifier channel) const
Query the status of a particular channel or FEB This is the main client access method.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
@ LAr
The LAr calorimeter.
@ Error
The sub-detector issued an error.