2#include <unordered_map>
11 unsigned int active_status=0;
19 return StatusCode::FAILURE;
21 if (active_status>31) {
22 ATH_MSG_FATAL(
"Logic error: status id too large. Cannot be represented by a bit");
23 return StatusCode::FAILURE;
27 return StatusCode::SUCCESS;
31 inline void andStatus(
const std::unordered_map<int, int> &status_map,
unsigned int status_mask, std::vector<bool> &module_status) {
32 for (
const std::pair<const int, int> &elm : status_map ) {
34 module_status.at(elm.first) = module_status.at(elm.first) && (status_mask & (1<<elm.second));
39std::unique_ptr<InDet::SiDetectorElementStatus>
43 std::vector<bool> &status=element_status->getElementStatus();
45 status.resize(
m_pixelID->wafer_hash_max(),
49 std::vector<InDet::ChipFlags_t> &chip_status=element_status->getElementChipStatus();
50 if (chip_status.empty()) {
51 chip_status.resize(status.size(),0xffff);
60 return element_status;
#define ATH_CHECK
Evaluate an expression and check for errors.
void addDependency(const EventIDRange &range)