43 const uint32_t onlHashMax=
m_onlineID-> febHashMax();
45 coral::AttributeListSpecification* spec_febrod =
new coral::AttributeListSpecification();
46 spec_febrod->extend(
"FebHashToRODs",
"blob");
47 spec_febrod->extend<
unsigned>(
"version");
49 (*al_febrod)[
"version"].setValue(0U);
50 coral::Blob& blobFebRod=(*al_febrod)[
"FebHashToRODs"].data<coral::Blob>();
51 blobFebRod.resize(onlHashMax*
sizeof(uint32_t));
52 uint32_t* pBlobFebRod=
static_cast<uint32_t*
>(blobFebRod.startingAddress());
54 spec_febrod->release();
56 spec_febrod =
nullptr;
60 std::ofstream outfile(
"febrod.txt");
63 return StatusCode::FAILURE;
66 outfile <<
"hash id rodid" << std::endl;
72 return StatusCode::FAILURE;
75 for (uint32_t onlHash=0;onlHash<onlHashMax;++onlHash) {
77#ifdef LARREADOUTMODULEID_H
78 const uint32_t rodid=cabling->getReadoutModuleID(hwid).id();
80 const uint32_t rodid=cabling->getReadoutModuleID(hwid).get_identifier32().get_compact();
82 pBlobFebRod[
index++]=rodid;
83 outfile << onlHash <<
" 0x" << std:: hex << hwid.
get_compact() <<
" 0x"<< rodid << std::dec << std::endl;
92 return StatusCode::SUCCESS;