8 #ifdef DO_VALIDATE_STATUS_ARRAY
9 #include "GaudiKernel/ThreadLocalContext.h"
12 void break_point(
bool input1,
bool input2,
const char *
label) {
13 const EventContext& ctx = Gaudi::Hive::currentContext();
14 std::cout <<
"DEBUG " << ctx.evt() <<
" " <<
"inconsistent information:" <<
input1 <<
" != " << input2 <<
" = " <<
label << std::endl;
16 void break_point(
double input1,
double input2,
const char *
label) {
17 const EventContext& ctx = Gaudi::Hive::currentContext();
18 std::cout <<
"DEBUG " << ctx.evt() <<
" " <<
"inconsistent information:" <<
input1 <<
" != " << input2 <<
" = " <<
label << std::endl;
21 const EventContext& ctx = Gaudi::Hive::currentContext();
22 std::cout <<
"DEBUG " << ctx.evt() <<
" " <<
"inconsistent information:" <<
input1 <<
" != " << input2 <<
" = " <<
label << std::endl;
31 std::stringstream
msg;
32 msg <<
"Status array sizes do not match:"
35 throw std::runtime_error(
msg.str());
43 else if (!
b.getElementStatus().empty()) {
52 else if (!
b.getElementChipStatus().empty()) {
58 unsigned int element_i=0;
59 for (
const std::vector<unsigned short> &bad_module_strips :
b.getBadCells()) {
60 std::vector<unsigned short> &
dest = (*m_badCells)[element_i];
62 dest=bad_module_strips;
65 for (
unsigned int bad_strip : bad_module_strips) {
66 std::vector<unsigned short>::const_iterator iter = std::lower_bound(
dest.begin(),
dest.end(),bad_strip);
67 if (iter ==
dest.end() || *iter != bad_strip) {
68 dest.insert( iter, bad_strip);
75 else if (!
b.getBadCells().empty()){