83 if (attrList[
"BCIDmasks"].isNull()) {
84 error =
"BCIDmasks is NULL!";
89 cool::UInt32 nb1 = attrList[
"Beam1Bunches"].data<cool::UInt32>();
90 cool::UInt32 nb2 = attrList[
"Beam2Bunches"].data<cool::UInt32>();
91 cool::UInt32 ncol = attrList[
"LuminousBunches"].data<cool::UInt32>();
93 const coral::Blob& blob = attrList[
"BCIDmasks"].data<coral::Blob>();
96 if (
static_cast<cool::UInt32
>( blob.size() ) != 2 * (nb1 + nb2 + ncol)) {
98 ss <<
"BCIDmasks length " << blob.size() <<
" != 2 * " << (nb1+nb2+ncol) <<
"!";
105 const uint16_t* p=
static_cast<const uint16_t*
>(blob.startingAddress());
108 for (
unsigned int i = 0; i < nb1; i++, p++) {
114 for (
unsigned int i = 0; i < nb2; i++, p++) {
122 for (
unsigned int i = 0; i < ncol; i++, p++) {
129 for (
unsigned int i = (nb1+nb2+ncol); i < blob.size(); i++, p++) {