7 #include "CoralBase/Blob.h"
8 #include "CoralBase/Attribute.h"
45 const std::vector<unsigned int> &
50 const std::vector<unsigned int> &
55 const std::vector<unsigned int> &
70 return setValue(rec.attributeList());
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>();
96 if (
static_cast<cool::UInt32
>(
blob.size() ) != 2 * (nb1 + nb2 + ncol)) {
98 ss <<
"BCIDmasks length " <<
blob.size() <<
" != 2 * " << (nb1+nb2+ncol) <<
"!";
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++) {