10 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Creating transient NSW_TrigRawDataContainer from persistent with size " << persCont->size() <<
endmsg;
11 auto transCont = std::make_unique<Muon::NSW_TrigRawDataContainer>();
13 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Created transient NSW_TrigRawDataContainer with " << transCont->size() <<
" entries" <<
endmsg;
14 return(transCont.release());
18 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Converting persistent NSW_TrigRawDataContainer_p1 to transient NSW_TrigRawDataContainer" <<
endmsg;
20 for (
const auto &raw : *persCont) {
21 auto rawData = std::make_unique<NSW_TrigRawData>(raw.m_sectorId, raw.m_sectorSide, raw.m_bcId);
22 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Created empty NSW_TrigRawData contaier, to be filled with " << raw.size() <<
" segments" <<
endmsg;
23 for (
unsigned int i = 0; i < raw.size(); ++i) {
25 auto transObj = std::make_unique<NSW_TrigRawDataSegment>();
27 rawData->push_back(std::move(transObj));
31 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Created transient NSW_TrigRawDataContainer representation with " << transCont->
size() <<
" entries" <<
endmsg;
35 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Converting transient NSW_TrigRawDataContainer to persistent NSW_TrigRawDataContainer_p1" <<
endmsg;
37 for (
const auto *
const raw : *transCont) {
38 auto persRawData = std::make_unique<NSW_TrigRawData_p1>();
39 persRawData->m_sectorId = raw->sectorId();
40 persRawData->m_sectorSide = raw->sectorSide();
41 persRawData->m_bcId = raw->bcId();
42 for (
const auto *
const segment : *raw) {
43 auto persRawSegm = std::make_unique<NSW_TrigRawDataSegment_p1>();
45 persRawData->push_back(*persRawSegm);
47 persCont->push_back(*persRawData);
49 if (log.level() <= MSG::DEBUG) log << MSG::DEBUG <<
"Created persistent NSW_TrigRawDataContainer representation with " << persCont->size() <<
" entries" <<
endmsg;