#include "MDfragmentDBBChain.h" using namespace std; MDfragmentDBBChain::MDfragmentDBBChain(void *d) : MDfragment(d) { Init(); for (int i=0; iGetSize(); int adr(0); if (size == 0) return; if (size >8) { uint32_t* ptr = this->Get32bWordPtr(0); for (int i=0; igetDBBSize(ptr); _dbb[i]->SetDataPtr(ptr, this_dbb_size*4); // _dbb[i]->dumpEventVRB(ptr, this_dbb_size*4); ptr += this_dbb_size; } } } int MDfragmentDBBChain::getDBBSize(uint32_t *ptr) { int size(0); uint32_t *header = ptr; MDdataWordDBB dw(header); if (dw.GetDataType() != MDdataWordDBB::Header ){ // The data doesn't start with a header throw MDexception(" ERROR in MDframentDBBChain::getDBBSize(uint32_t *ptr) : 1st word is not a header") ; } else { int i(0); dw.SetDataPtr(++ptr); while (1) { dw.SetDataPtr(ptr); if (dw.GetDataType() == MDdataWordDBB::Trailer) break; else ptr++; } size = ptr - header + DBB_TRAILER_WORDS; } return size; } void MDfragmentDBBChain::Dump(int atTheTime) {}