12#include "CaloDetDescr/CaloDetDescrElement.h"
19#include "GaudiKernel/EventContext.h"
28 : base_class(
type, name, parent)
70 return StatusCode::SUCCESS;
78 return StatusCode::SUCCESS;
113 if (channel1_status.
isBad() && channel2_status.
isBad()) {
128 return badChannels->getAdcStatus(adc_id);
137 const EventContext& ctx{Gaudi::Hive::currentContext()};
151 return badChannels->getAdcStatus(adc_id);
167 return badChannels->getChannelStatus(channel_id);
180 return badChannels->getChannelStatus(channel_id);
189 const EventContext& ctx{Gaudi::Hive::currentContext()};
202 return badChannels->getChannelStatus(channel_id);
211 const EventContext& ctx{Gaudi::Hive::currentContext()};
224 return badChannels->getAdcStatus(adc_id);
233 const EventContext& ctx{Gaudi::Hive::currentContext()};
247 const std::vector<std::vector<float>>& tripsProbs = badChannels->getTripsProbabilities();
249 if (!tripsProbs.empty()) {
250 return tripsProbs.at(ros - 1);
258 const EventContext& ctx{Gaudi::Hive::currentContext()};
267 const std::vector<int>& maskedDrawers = badChannels->getMaskedDrawers();
269 return std::binary_search (maskedDrawers.begin(),
276 const EventContext& ctx{Gaudi::Hive::currentContext()};
#define ATH_CHECK
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
std::pair< std::vector< unsigned int >, bool > res
static void setBit(ProblemType pb, BitWord &word, bool value=true)
Sets the bit corresponding to "pb" inside the word passed as second argument to "value".
This class groups all DetDescr information related to a CaloCell.
This is a "hash" representation of an Identifier.
static uint32_t encodeStatus(const TileBchStatus &status)
Class holding bad channel problems.
Static class providing several utility functions and constants.
static const unsigned int MAX_DRAWERIDX
Maximal drawer index.
static const unsigned int MAX_ROS
Number of ROSs.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
static unsigned int getMaxDrawer(unsigned int ros)
Returns the maximal channel number for a given drawer.